plasma-umass / browsix

Browsix is a Unix-like operating system for the browser.
Other
3.15k stars 181 forks source link

browserify process for running larger node applications #5

Open bpowers opened 8 years ago

bpowers commented 8 years ago

We currently handle node.js and Go applications differently: Go applications are compiled to JS along with a small, inline syscall shim that knows how to talk over the Worker's MessagePort. For node, we have a browser-node binary, that then loads and interprets javascript files. This works well for a demo, but is sub-par for non-toy applications that require() things outside of the stdlib.

There are 2 ways we could go with this that aren't mutually exclusive:

The second one is probably better for all use cases except demos, where people might modify and re-execute node scripts.