Re:How it works: Compiler Explorer
by amelius on Saturday February 03, 2018 @06:09AM
(#16297155)
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.
[ Parent
| on HN ]
Re:How it works: Compiler Explorer
by mattgodbolt on Saturday February 03, 2018 @03:51PM
(#16299569)
Given 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 :-)
Are you suggesting running the compilers in the browser?
Re:How it works: Compiler Explorer
by nerpderp83 on Saturday February 03, 2018 @10:11AM
(#16297895)
But not bare-metal browser (BmB), on Linux of course.
So, transpile 8GB of compiler binaries to JavaScript which will inflate it to ~80GB. Now itβs a bandwidth problem.
That is highly exaggerated. Most Linux distributions don't even have such size.
Also, most users don't need support for all languages.
> 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?