News for hackers. Stuff that matters.
Re:What asm.js is and isn't by z3phyr on Thursday June 20, 2013 @09:40PM (#5916020)
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 ?

Re:What asm.js is and isn't by Pitarou on Thursday June 20, 2013 @11:21PM (#5916327)
I 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.
Re:What asm.js is and isn't by pjmlp on Friday June 21, 2013 @02:41AM (#5916876)
The compilers I use usually do

    high-level language -> native code
Unless you mean compiler IR as low-level language.
Re:What asm.js is and isn't by Pitarou on Friday June 21, 2013 @10:01AM (#5918042)
Less 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.

Re:What asm.js is and isn't by z3phyr on Friday June 21, 2013 @10:22AM (#5918141)
Yes, I understood allmost all of it :)
Re:What asm.js is and isn't by pjmlp on Friday June 21, 2013 @11:43AM (#5918579)
Faire enough, sorry about that.