On 04/09/2014 10:47 AM, Bob Thulfram wrote:
This book covers Ruby, JavaScript, Erlang, Haskell, and Clojure. Has
anyone run any other languages except JavaScript on Firefox OS. […]

So any other languages for Firefox OS except JavaScript? Possible if
not desireable?

From a JavaScript engine point of view, I will say that most of these languages are trying to emulate behaviors which are not well mapped to JavaScript. I did not investigate any of the one that you mentioned above.

As example, I can briefly talk about GWT which is generating JavaScript out of Java. The example I have in mind, is a Vector initialization in Java. The way it got translated by GWT from Java to JavaScript had a poor initialization sequence in SpiderMonkey which cause the object to be heavier in memory and slower in terms of manipulation.

Not all paradigm are mapping well to the optimizable parts of JavaScript.

Emscripten is an interesting cross-compiler because it managed to target a subset of JavaScript which appears to be an *highly* optimizable part of JavaScript.

--
Nicolas B. Pierron

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to