[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua to ECMAscript static compiler (or translator)
- From: Florian Weimer <fw@...>
- Date: Wed, 16 Nov 2011 22:35:39 +0100
* Javier Guerra Giraldez:
> i see several deep differences. all doable, but only if you do real
> compilation and not just source translation.
>
> - Lua can use any value as a table key, JS only supports strings
>
> - variable hoisting vs. lexical scoping
>
> - 0, "" and [] are falsy in JS, true in Lua
>
> - coroutines
- tail calls
- weak references
In comparison, differences in name lookup look easier to address, and
with less of a performance impact.