35 ms·
Various languages can be compiled to JS, e.g. C/C++ using emscripten. This project implemented POSIX/Linux APIs in JS using browser features, so now you can co
by detaro 10y ago
Various languages can be compiled to JS, e.g. C/C++ using emscripten. This project implemented POSIX/Linux APIs in JS using browser features, so now you can compile applications that depend on those APIs to JS and run them in the browser. At least that's what I got from skimming the paper.
- the_duke 10y agoThat still doesn't explain how syscalls are exposed as webworkers without a modified browser.
- detaro 10y agoThey don't expose syscalls, they implemented replacements for them. There is no access to anything outside the browser environment. Web Workers simulate processes, file system calls access a virtual file system etc.
- ris 10y agoThey aren't real syscalls. From the looks of it this is essentially a mock POSIX-ish "os" for containing webassembly-compiled applications. What will be interesting is to see if anyone ever gets to implementing X11 emulation.