News for hackers. Stuff that matters.
Re:Compiling LLJS to asm.js by srijs on Monday March 25, 2013 @04:38PM (#5439558)
Cool. I recently wrote a low-level sha1 implementation in pure javascript, trying to leverage asm.js (http://github.com/srijs/rusha).

Can you tell me, how did you confirm you wrote valid asm.js and there was no fallback-mechanism kicking in?

I benchmarked my implementation, of course, and noticed a 2x speedup. However, this seems quite less for the this type of low-level algorithm...

Re:Compiling LLJS to asm.js by abecedarius on Monday March 25, 2013 @04:54PM (#5439620)
Open the error console (via the Web Developer menu item) and you'll see messages there. Success shows up as "Error: successfully compiled asm.js code." :-)

P.S. Looking at your code, I can tell it's not asm.js conformant yet, though it should just be a bunch of small tweaks (e.g. an expression like (a+b) will need to be (a+b)|0, etc.).

Re:Compiling LLJS to asm.js by srijs on Monday March 25, 2013 @07:45PM (#5440448)
Thank you. I just updated my code and it's really within half of native speed now... (benchmarks in the README, if any of you are interested)

asm.js is very exciting technology!

Re:Compiling LLJS to asm.js by abecedarius on Monday March 25, 2013 @08:33PM (#5440648)
You're welcome!