Hacker News new | ask | show | jobs
by emillon 4000 days ago
This kind of compiler has already be done: http://gergo.erdi.hu/projects/metafun/
1 comments

Amazing. Maybe we are onto a new kind of Rule 34 here...

"Everything that can be implemented in {c++ templates, javascript} will eventually be implemented in that language"

Atwood's Law: "Any application that can be written in JavaScript, will eventually be written in JavaScript."
That's hilarious -- in fact the full quote is even better. This guy hits it right on the nose:

jeff atwood: "any application that can be written in JavaScript, will eventually be written in JavaScript. Writing Photoshop, Word, or Excel in JavaScript makes zero engineering sense, but it's inevitable. It will happen. In fact, it's already happening"

Good foresight considering he said this 2009.

Of course, it doesn't make "zero" engineering sense in any logical fashion. Only those emotionally distraught by the "imperfection" of JavaScript don't see the utility in applications moving to the web.

Which isn't to say the web is ready. But it will be!

Yeah moving the software in the cloud (the new name for the Web) is the right way to go... well if you want to end up with a terminal in your hand and the whole intelligence upper in the cloud... like an interactive TV from the nineties or a french Minitel from the eighties. :)
Thankfully, "moving to the web" no longer means JavaScript; WebAssembly can support that kind of thing instead, using arbitrary languages.

Also, you say "emotionally distraught" as though there's no technical reason to dislike JavaScript.

There are technical reasons to dislike literally every technology. I say "emotionally distraught" because JavaScript seems to attract detractors who think that strong feelings are a valid substitute for logic.
I was under the impression that asm.js/emscripten are the new hotness these days? Hence not requiring porting everything to JS manually to bring it "to the web" anymore.