|
|
|
|
|
by cyberpunk
3477 days ago
|
|
Are you not easier emulating x86 then trying to reimplement the entire linux syscall table in javascript? Then you can run anything that works on ia32 unmodified -- gcc, linux, X, firefox.. Whaytever... Someone already did it:
http://bellard.org/jslinux/tech.html |
|
If you want to run realistic programs in the browser (and not just technology demos), WebAssembly, asm.js, and compilation to JavaScript in general is the way to go. WebAssembly can easily execute within a factor of 2 of optimized GCC binaries, whereas JSLinux is ~80x slower.
Paired with compilers like Emscripten and GopherJS Browsix has the potential to be a relatively fast and lightweight solution to running legacy code in the browser in a way that integrates with existing tools for web UIs.