2 ms·
Running LuaJIT interpreted is a deliberate choice. Some platforms, in particular iOS and game consoles, do not allow generated machine code. I want my language
by munificent 13y ago
Running LuaJIT interpreted is a deliberate choice.
Some platforms, in particular iOS and game consoles, do not allow generated machine code. I want my language to be usable for games, and that's one reason I'm using bytecode. (Simplicity is the main reason.)
Given that, I think it's most helpful for me to compare Wren's performance to other bytecode language implementations. Comparing to JIT compiled languages is a bit apples/oranges. They tend to be something like an order of magnitude faster (and an order of magnitude more complex!).
Meanwhile, LuaJIT's interpreted mode is very fast as you note. I think it's one of the fastest bytecode interpreters around, so it's a great target for Wren to aim for.
If you want a lot more detail on my thoughts about this, see here:
https://github.com/munificent/wren/blob/master/doc/site/performance.markdown https://github.com/munificent/wren/blob/master/doc/site/perf...