News for hackers. Stuff that matters.
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.
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 :-)
Re:How it works: Compiler Explorer by McP on Saturday February 03, 2018 @06:27AM (#16297205)
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.

https://bellard.org/jslinux/

Re:How it works: Compiler Explorer by dave84 on Saturday February 03, 2018 @07:37AM (#16297375)
So, transpile 8GB of compiler binaries to JavaScript which will inflate it to ~80GB. Now it’s a bandwidth problem.
Re:How it works: Compiler Explorer by amelius on Saturday February 03, 2018 @01:05PM (#16298661)
That is highly exaggerated. Most Linux distributions don't even have such size.

Also, most users don't need support for all languages.

Re:How it works: Compiler Explorer by dave84 on Sunday February 04, 2018 @07:20AM (#16302458)
> 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?