1

I have a high interest about javascript performance. And I know asm.js can give a serious boost for that matter.

asm.js can (indirectly) be generated from C/C++ code but I'm way more used to javascript. But of course Javascript cannot be converted into asm.js (imo: if it could it would mean the conversion tool figured out mechanics browsers couldn't).

So is there a language very close to javascript wich can be transformed/converted into asm.js? (I guess it would be strongly typed one)

My goal here is to come with a asm.js code withouth having a huge learning requirement.

Moppo
  • 18,797
  • 5
  • 65
  • 64
Serge Profafilecebook
  • 1,165
  • 1
  • 14
  • 32
  • Q. Is asm.js a new language? A. No, it's just (a subset of) JavaScript, see http://asmjs.org/faq.html – wero Jul 17 '15 at 14:43
  • Yes indeed [plain JavaScript cannot be compiled to asm.js](http://stackoverflow.com/q/15626611/1048572) – Bergi Jul 17 '15 at 16:10
  • I don't think C++ syntax is that far away from JS. But really, you will have to learn a new language (that works very different from JS) anyway. I don't think there's a language that is that "close" to JS. – Bergi Jul 17 '15 at 16:17
  • What do you mean by "interest about js performance"? Is it academic curiosity, or do you have an actual problem with high performance requirements? – Bergi Jul 17 '15 at 16:18
  • @bergi I plan to write a 3D video game. – Serge Profafilecebook Jul 18 '15 at 19:50
  • @wero And I know asm.js is not a language It doesn't mean writing it directly is the best option (or world would have stick with binary code). – Serge Profafilecebook Jul 18 '15 at 19:50
  • @SergeProfafilecebook: Then I'd suggest to use a 3D library, and not write your engine yourself. For a start, at least. – Bergi Jul 18 '15 at 20:36
  • @Bergi It wouldn't change performance is a big concern. So the quesion remains. – Serge Profafilecebook Jul 20 '15 at 10:15

0 Answers0