lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Feb 27, 2014 at 9:19 AM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> Another trend, which is relevant to Lua, are dynamic languages with
> optional _type assertions_, like TypeScript or Dart.  The push here is
> to improve tooling so that even more massive piles of JavaScript can
> be safely manipulated without triggering meltdown.  There is a Metalua
> extension for doing this in Lua.


i'm quite impressed by Dart.  I wrote some complex code in a full
classic OOP style, creating temporary objects for accessors, and found
the compiled javascript had inlined all this and eliminated the
temporary object.  the final code was very streamlined.

it was almost as how LuaJIT sinks allocations  (which i've recently
found to be _so_ amazing both in FFI-heavy and table-heavy code, or a
mix, like Snabbswitch)


-- 
Javier