This talk just keeps getting more and more relevant: https://www.destroyallsoftware.com/talks/the-birth-and-death...
Emscripten and asm.js: C++'s role in the modern web
31–40 of 100 posts
Re: Emscripten and asm.js: C++'s role in the modern web
#32It's not open, it's locked to legacy languages.
Re: Emscripten and asm.js: C++'s role in the modern web
#33Compiling to Javascript is nothing short of a mental illness. The perversions that the terrible design of the web has driven people to are simply breathtaking...
Nobody would compile to JavaScript if there was an analogous platform on the Web. There isn't one.
Re: Emscripten and asm.js: C++'s role in the modern web
#34There was a recent article on code optimization technique in Safari involving on-the-fly javascript -> LLVM compilation. So the entire chain now will look as C++ -> LLVM -> javascript (asm.js) -> LLVM Things are getting curiouser by the day...
Re: Emscripten and asm.js: C++'s role in the modern web
#35I am really betting on Apps, for setting the web straight for interactive documents.
Re: Emscripten and asm.js: C++'s role in the modern web
#36Re: Emscripten and asm.js: C++'s role in the modern web
#37I really wish we had a proper 'web assembly' instruction set to compile to. JavaScript has proved itself to be a surprisingly adequate language over the years, but there is only so much optimization you can do with its language specification.
Re: Emscripten and asm.js: C++'s role in the modern web
#38> Emscripten and asm.js: C++'s role in the modern web C++'s role in the modern web is that every relevant browser since 1998 is written in it. It does not need JS wankery to be relevant, thank you very much.
I didn't have a clue about Emscripten; looks really really useful so that I don't have to think too much about writing in other languages and can write EVERYTHING in C++. That'd be great.
Re: Emscripten and asm.js: C++'s role in the modern web
#39Or any good examples of writing the whole webpage with C++ somehow? All the current examples I've seen utilize webgl canvas and handle the interaction there. How about interaction with a regular HTML interface ?
Re: Emscripten and asm.js: C++'s role in the modern web
#40I really wish we had a proper 'web assembly' instruction set to compile to. JavaScript has proved itself to be a surprisingly adequate language over the years, but there is only so much optimization you can do with its language specification.
ASM.js might not be the perfect solution, but it has the huge advantage of being compatible with all major browsers. Practicality beating purity is a common pattern in Web's history.
[1] http://www.chromium.org/nativeclient/pnacl/introduction-to-p...