News for hackers. Stuff that matters.
Re:LuaJIT Remake: An ongoing attempt to re-engineer LuaJIT f... by scythe on Saturday November 26, 2022 @09:42PM (#33759641)
Lua naturally avoids hashing strings as much as possible. Short strings always have their hash precomputed and local variables are internalized. The default method for implementing variable scopes in dynamic languages just uses a lot of hash tables, but Lua cleverly avoids this:

https://github.com/lua/lua/blob/master/lobject.h#L549

https://github.com/lua/lua/blob/master/lstring.c#L185

There are no comments on this comment yet.