|
|
|
|
|
by hugomg
696 days ago
|
|
> I can just as good implement it in C using the Lua C API Pallene beats C when the code uses many Lua data structures. Acessing Lua data from C via the Lua-C API has significant overhead that can erase the gains from rewriting into C. Also, rewriting from Lua to Pallene is much less work than rewriting it in C. Although Pallene is only a subset of Lua, the idea is that you use it together with Lua. It's not meant to replace Lua entirely. |
|
How can it beat C if it just transpiles to C? And accessing string named fields in a table is still done via hashing, even in Pallene, isn't it?
> Also, rewriting from Lua to Pallene is much less work than rewriting it in C.
Staying in LuaJIT is even less work.