6 ms·
this is quite remarkable
by fritz_vd 13y ago
this is quite remarkable
- camus2 13y agothis is C++. now all javascript folks need to learn C and C++.
- AndrewDucker 13y agoOnly if they want ultra-high performance, for writing games and suchlike. Otherwise they can stick to javascript. (And, of course, anything else that compiles to javascript)
- azakai 13y agoYou can also mix the two, write typical JS and use a high-performance library from JS for something specific, like physics http://kripken.github.io/box2d.js/webgl_demo/box2d.html http://kripken.github.io/box2d.js/webgl_demo/box2d.html
- camus2 13y ago> Only if they want ultra-high performance, for writing games and suchlike. CUSTOMERS want ultra high performances, especially on mobile. Therefore businesses will have to deliver these performances. Trust me, in a few years , getting a good client-side gig will mean knowing C/C++ . The limitation today is the size of the "js" code produced, which is way too heavy.
- timje1 13y agoTo be fair, if you want ultra-high performance for high quality 3d games, why did you learn javascript? Go away and learn C or C++ ... This doesn't give anything to web developers. It gives C / C++ developers a way onto the web.
- TazeTSchnitzel 13y agoWell, you can also write asm.js code manually to squeeze out performance, if you need to.
- camus2 13y agoit's faster to learn C and all the toolchain than writing any meaningfull code in asm.js directly, asm.js is not javascript, as strange as it sounds.
- TazeTSchnitzel 13y agoI don't mean to write your app in it, I mean using it for optimising tight loops and such, just as C developers occasionally write some functions in asm for performance.
- chc 13y ago> To be fair, if you want ultra-high performance for high quality 3d games, why did you learn javascript? That's not fair at all, because there are valid answers to that question like "Because I also want my programs to run in the browser."
- corysama 13y agoUntil recently, that was a contradictory set of goals. Now it's pretty feasible to achieve both goals using C++. But, not so much with hand-written JS... (Feasible, not arguing theoretical)
- chc 13y agoKindasorta. They do contradict if you only write one program. But you could write a high-performance 3D game and a web app and achieve both goals, thus justifying learning both JavaScript and C++.
- liviu 13y agoWhat makes you think that many web developers don't already know C/C++? Many developers choose the web because there is their audience, their business, their future. And we know that people don't like to install stuffs, they want to consume a product LIVE.