Hacker News new | past | comments | ask | show | jobs | submit login

> It is, but you can also port existing applications to JS.

You can't just port things to JavaScript the same way. JavaScript is a very different sort of language. "porting" something to JavaScript pretty much always means remaking the whole thing from ground up and hoping that your pixel pushing in canvas runs at an acceptable speed.




Actually Emscripten allows you to port an existing native application to JS, and the development effort is comparable to using NaCl.


Yup. They've ported all sorts of things with Emscripten, including, I believe, Ruby, Python and Perl.


Yes. But it's a POC thing that's also some orders of magnitude slower...


It's not orders of magnitude slower, most benchmarks have it 2x-6x slower. It's rarely slower than 10x (one order of magnitude). And that is before JS engines even start to optimize for it.


You might want to read http://mozakai.blogspot.com/2012/05/emscripten-opengl-webgl-... for some eye-opening about what one can do with porting to JS in a _modern_ browser.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: