3 ms·
One qeustion I would like to ask, Are asm.js and parallel javascript a competing replacements for C/C++ ? C++ compilers get faster too, and leverage even more
by z3phyr 13y ago
One qeustion I would like to ask,
Are asm.js and parallel javascript a competing replacements for C/C++ ?
C++ compilers get faster too, and leverage even more opportunity for the programmer to optimise hard, very hard. On top of that, programmers can leverage SIMD instructions for even more CPU bound optimisations, and use technology like C++AMP or openCL for computing effitiently on multicore GPU's.
Could any asm.js program ever be faster than a hand tuned C++ program ?
- Pitarou 13y agoI think you're missing the point. asm.js does not compete with languages like C++: it complements them. The traditional toolchain (greatly simplified) looks something like this: high-level language -> low-level language -> native code asm.js is a new low-level language that extends this toolchain into the browser runtime.
- pjmlp 13y agoThe compilers I use usually do high-level language -> native code Unless you mean compiler IR as low-level language.
- Pitarou 13y agoLess pedantry, please. I told z3phyr enough to understand the role of asm.js. I'm sure z3phyr is smart enough to appreciate that my one-sentence summary is not the last word on compiler toolchains.