Trygve running on the web

39 views
Skip to first unread message

Matthew Browne

unread,
Feb 9, 2024, 11:56:50 PMFeb 9
to object-co...@googlegroups.com

I thought I would try running trygve in codesandbox.com, and it works!

https://codesandbox.io/p/devbox/trygve-demo-yh2lhq

All you need to run code in it is to sign up for a free CodeSandbox account if you don't already have one (I'm guessing they require an account to run commands in any sandboxes using a docker image—I set this one up using the official openjdk docker image).

For a working example, run this in the terminal:

trygve -c examples/borrow_library_items.k -r

This is just using the JAR file from https://fulloo.info/Downloads/, which I assume isn't the latest version of trygve, so it could certainly be updated, and the readme improved. I also haven't tried to get the trygve GUI running.

The trygve environment is of course plenty easy to install on one's computer, but I figure it can't hurt to make it accessible via the web too, without having to install anything :)

James O Coplien

unread,
Feb 12, 2024, 3:01:36 PMFeb 12
to noreply-spamdigest via object-composition
This is really cool.

If graphics work as well, then this is indeed a big step in making trygve more broadly accessible. Installing it from GitHub is easy for a GitHub wonk, and it’s passibly doable for someone like me (more computer scientist than hacker) but I think there is a huge audience that’s put off by the administrivia of all the crap you need to do to set up the stuff to make it run on one’s PC. So this would be a breakthrough for that audience.

@rpgpoet was right: Java *is* the ultimate computer virus…


--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to object-composit...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/object-composition/28a8943c-1536-4092-ab88-5219abd3783f%40gmail.com.

Matthew Browne

unread,
Feb 12, 2024, 7:00:37 PMFeb 12
to object-co...@googlegroups.com

Thanks! And fortunately the first part wasn't even hard :)

I looked into the graphics a bit, and that would be a bit harder, since it seems that CodeSandbox will only let you show graphics via a webpage. But there are ways to make an X11 interface accessible as a webpage over VNC, so that would be the next thing to try. I will probably tinker with it more at some point to see how far I get and how difficult it is...

Reply all
Reply to author
Forward
0 new messages