HTML5 alternative targets

Monkey Targets Forums/User Targets/HTML5 alternative targets

frank(Posted 2013) [#1]
Would it be feasible to use http://arstechnica.com/information-technology/2013/05/native-level-performance-on-the-web-a-brief-examination-of-asm-js/ asm.js in a new HTML5 target? It seems now that this is possible that this would be a good idea. I had the idea earlier with Closure (https://developers.google.com/closure/)... Why not use the statically typed nature of the language to make every (a lot) faster? While getting the extra benefit of minifying and obfuscation in release?

If these solutions are cross platform (Closure is, not sure about asm.js, but asm.js is one future you don't want to program 'raw' in , so Monkey seems to be able to make a difference here) why not include them? Think an optimized HTML5 platform would attract people?

(Then maybe we can stomp out some demos like this http://www.gooengine.com/demofiles/pearl-boy/index.html ; yeah I know we already can a bit, but this is highly optimized JS and using a bunch of shaders (which we already can do) so we need every ounce of performance increase in the basics to make things work).

(seems it's very alive in the Haxe (think the only real monkey competitor) community ; http://lmgtfy.com/?q=haxe+asm.js )


impixi(Posted 2013) [#2]
Regarding Asm.js: You could probably create/alter a c/c++ target that utilizes a Clang->LLVM->Emscripten tool chain to get an Asm.js output - probably quite complicated, though. Creating a direct Monkey->Asm.js translation could be even more complicated, especially if you want Mojo's functionality included.