3 ms·
The big questions, of course, are - is it full Javascript? If not, what is missing? - how fast does that Javascript run? The latter, in particular, is import
by Someone 13y ago
The big questions, of course, are
- is it full Javascript? If not, what is missing?
- how fast does that Javascript run?
The latter, in particular, is important. If there is runtime translating Javascript idiosyncrasies to Lua, performance may be really bad. For example, it may be a lot of work to map Javascript's == with all its quirks (http://www.rossgledhill.co.uk/2011/10/12/javascript-quirks-equality-operators-and-comparisons/ http://www.rossgledhill.co.uk/2011/10/12/javascript-quirks-e...), where the integer 3 equals the string "3" to Lua's equality operator (http://www.lua.org/pil/3.2.html http://www.lua.org/pil/3.2.html), which behaves like Javascript's ===: "If the values have different types, Lua considers them different values."
And no, that does not stop at "but no sane person should use == in Javascript". '<' is different, too: "To avoid inconsistent results, Lua raises an error when you mix strings and numbers in an order comparison, such as 2<"15"."
- erikpukinskis 13y agoEven if the answers are "everything but the basics" and "very, very slowly" it is still a pretty cool thing. I want a computer that can open and close my chicken coop door on a schedule. We're not talking rocket science for this to be pretty valuable.