5 ms·
Use any compile-to-JS language, or use any LLVM language (such as C++) to compile to asm.js. I tried kivy with a lot of enthusiasm, and the experience was not
by DiThi 12y ago
Use any compile-to-JS language, or use any LLVM language (such as C++) to compile to asm.js.
I tried kivy with a lot of enthusiasm, and the experience was not good. React native does a better job, I think (or just React in FF OS). I say it as a programmer whose favorite language was Python for many years, I even coded a Python-to-JS compiler with classes, inheritance and stuff where other attempts were very too basic or too slow... Now my favorite language is CoffeeScript.
- teacup50 12y agoRepeat after me: JS is not an ideal compilation target. The sooner this idea dies, the sooner we can solve the actual problem of being locked to an insanely high level VM and calling it a platform -- while writing that platform with much more powerful tools that aren't available to anyone else.
- untog 12y agoRepeat after me: JS is the compilation target we have. The sooner this idea dies, the sooner we can solve the actual problem of being locked to an insanely high level VM So, the sooner we stop making actual things, we can take a step back and start making a thing that makes things? By all means, try to solve this problem. But if the history of the web has shown anything, it's that it's extremely difficult to entirely reboot anything. JavaScript is all pervasive, and an alternative is going to have to come up with something brilliant to displace it. I haven't seen it yet.
- teacup50 12y ago> Repeat after me: JS is the compilation target we have. No, it's the compilation target web developers have. The rest of us don't target the web.
- Zigurd 12y agoWe're going to see a few interesting things play out: GWT got a new user-base within Google because the Inbox team is using GWT for the non-UI part of the Web implementation (and j2objc for iOS).
- fijal 12y agocompile-to-JS languages are generally just syntactic sugar. How do I access DOM from my LLVM language? Seriously, the question was not what's YOUR favorite language, if you happen to be in the JS camp, that's perfectly fine. However, if JS is not your favorite language, you're out of luck. Sucks to be you.
- DiThi 12y agoYou can call JS functions from LLVM code. How else can the asm.js based engines call the canvas functions and emulate a FS with localStorage?