3 ms·
Fabrice Bellard's jsLinux and Jeff Parsons's https://www.pcjs.org/ https://www.pcjs.org/ are pretty fascinating. I think Bellard uses emscripten (transpiled ma
by lxe 9y ago
Fabrice Bellard's jsLinux and Jeff Parsons's https://www.pcjs.org/ https://www.pcjs.org/ are pretty fascinating.
I think Bellard uses emscripten (transpiled machine and device emulator code from C to JS), while pcjs is hand-coded JS (which is neat: https://github.com/jeffpar/pcjs/blob/master/modules/pcx86/lib/x86cpu.js https://github.com/jeffpar/pcjs/blob/master/modules/pcx86/li...).
Also is the source for jslinux available anywhere? The emscriptified file at https://bellard.org/jslinux/x86emu.js https://bellard.org/jslinux/x86emu.js is quite compex.
- fermigier 9y agohttps://news.ycombinator.com/item?id=5400185 https://news.ycombinator.com/item?id=5400185 for a previous discussion re source code...
- tbodt 9y agoIt doesn't look like emscripten to me
- duskwuff 9y agoBellard wrote JSLinux in 2011, well before Emscripten was a thing.
- s-macke 9y agoYou don't have to rely on the source code of jslinux. There are a lot of other web emulators and most of them are open source. https://github.com/fcambus/jsemu https://github.com/fcambus/jsemu