(Edit: these links are just for curious readers, who often like to look at past discussions. As HN's FAQ says, reposts are fine after a year or so: https://news.ycombinator.com/newsfaq.html)
I did something similar back when NaCl wasn't dead, by running the full qemu (bellards other project) in Chrome. Here's a Screencast (8MB) of it booting Kolibri OS. Needless to say it was slow, but that's mainly down to not having done any optimizations.
You can build it! Although you'd be missing out on V8. V8 is incredible. QuickJS isn't anywhere near as performant.
That's not to say that QuickJS isn't incredible. I never dreamed it would be possible to compile js interop with C into a stand-alone binary. That's freakin awesome.
I wish I could download or at least install stuff from my computer on the JS version of windows 2000. I have a Visual Source Safe archive to open and I guess I'll have to open a VM but that would have been nice to be able to do it in browser.
I loaded Windows 2000 in my phone’s browser and watched the battery percent remaining drop one percent every 15 seconds. That said, I’m running Windows 2000 on a phone browser, which is madness.
Anyone have tips on getting this working with custom images? I tried making my own with TinyEMU and this JsOnline script, but it would never load. Or any suggestions for another project that fits my use case? That is, presenting a very minimal, in browser only, FULL Linux command line, for training purpose. The image can't be client side, and it has to have all 'expected' functionality; IE, not just a simulator for certain commands/paths.
I cannot help but to feel the "just" in "just a virtual machine" is unjustified as it's not super common programming exercise to get a virtual machine to run in a browser. Think I've only seen this being done with QEMU before (another Fabrice project).
I’m pretty sure this is an attempt at humour. But minimal installations of the major distros do not have vim, in face I think Ubuntu makes nano the default $EDITOR (but I am not 100% on that)
But nothing I’ve seen makes me believe that vim isn’t available for this “platform”, nor do I think it’s inherently harmful to have a 500KiB program unused on a drive. (As this statement implies).
Most (if not all) Linux distros come with a “vi” (mandated by Posix) which is a plain, basic, feature-starved build of vim. I believe Posix having included vi as a requirement contributed to the status of vi as the omnipresent text editor.
2015: https://news.ycombinator.com/item?id=10494831
2013: https://news.ycombinator.com/item?id=5400185
2011: https://news.ycombinator.com/item?id=2572915
Discussed at the time: https://news.ycombinator.com/item?id=2555349
(Edit: these links are just for curious readers, who often like to look at past discussions. As HN's FAQ says, reposts are fine after a year or so: https://news.ycombinator.com/newsfaq.html)