Hacker News new | ask | show | jobs
by extension 5944 days ago
Indeed, they are strikingly similar, one of the key differences being Lua's minimal/extensible dispatch. A function call, by default, involves no searching through superclasses/prototypes. This is likely a big advantage in benchmarks.
1 comments

Which subclasses do you want to search through in JavaScript?

That said to me lua seems a little bit like JavaScript's sane cousin.