28 ms·
You are naive. If you don't understand JS, you can try something else that compiles to JS. There are some cool tools for people like you!
by liviu 13y ago
You are naive. If you don't understand JS, you can try something else that compiles to JS. There are some cool tools for people like you!
- CmonDev 13y agoTranspilers are just a work-around, tooling is not mainstream yet. At the moment debugging the script is easier despite being unpleasant. I work with JS almost daily and understand it's strengths and weaknesses. I do not consider it a silver bullet which seems to be a shared sentiment around HN. A language designed to make documents more interactive should be just that. Especially if it is evolving in 5-year cycles (http://en.wikipedia.org/wiki/ECMAScript#Versions http://en.wikipedia.org/wiki/ECMAScript#Versions).
- stelonix 13y agoI believe you're missing the point: with asm.js, JS isn't being used as a "silver bullet", but merely as a kind of "assembly" of web browsers. It's not that we love JS so much, it's that it's pretty much part of every browser, and as such code compiled for asm.js will run in any browser, albeit without any asm.js specific speedup if a given browser does not support it.
- CmonDev 13y agoCan I run CLR/JVM/Mono in asm.js today? Are there any clear plans for it? Will performance of this scenario equal to that of NaCl? I have my hopes about asm.js but it's good to see that there is an alternative that is evolving in parallel.
- stelonix 13y agoYou could try compiling Mono/Java to asm.js and see for yourself. Of course performance will not be equal to that of NaCl, but portability will. I don't see NaCl as a viable alternative, I see it as an attempt of locking down the user to a specific browser, and also as a potential security worry.
- CmonDev 13y agoThe thing is that NaCl lets e.g. game developers use languages and tools _they_ like _today_ to generate great products that run with reasonable performance and are deployable to a decent app-store, here is a poster child: http://www.tested.com/tech/web/3263-how-bastion-can-run-in-a-web-browser-with-googles-native-client http://www.tested.com/tech/web/3263-how-bastion-can-run-in-a...
- stelonix 13y agoYou can do the same with Emscripten + asm.js. You don't code in Javascript, you just compile to JS. The products will run with less performance than native, I'm sure, but at least they're not dependent on Google's app store. And, for me personally if I'm going to run a native app, I see no reason at all to have it run inside a web browser.