3 ms·
That sounds like a lot of work. My armchair-engineer instinct suspects it would be a lot simpler or at least cheaper to run everything in the browser (Emscripte
by amelius 9y ago
That sounds like a lot of work. My armchair-engineer instinct suspects it would be a lot simpler or at least cheaper to run everything in the browser (Emscripten/WASM), and serve static pages from a single node.
- McP 9y agoAre you suggesting running the compilers in the browser?
- nerpderp83 9y agoBut not bare-metal browser (BmB), on Linux of course. https://bellard.org/jslinux/ https://bellard.org/jslinux/
- dave84 9y agoSo, transpile 8GB of compiler binaries to JavaScript which will inflate it to ~80GB. Now it’s a bandwidth problem.
- amelius 9y agoThat is highly exaggerated. Most Linux distributions don't even have such size. Also, most users don't need support for all languages.
- dave84 9y ago> highly exaggerated The article says 8GB of compiler binaries, asm.js in my experience is 10x the size of the original binary. Obviously not everyone needs to download every compiler but even spreading that number between a few hundered compilers means 200+ mb JavaScript downloads. Am I wrong?
- mattgodbolt 9y agoGiven how much effort it is to compile and maintain 200 different compilers just for Ubuntu (not to mention some closed-source compilers), this probably is not as simple as you'd think :-)