4 ms·
A lot of modules are pure Lua. They may depend on a few critical C libraries though. But with just LuaSocket, LuaFileSystem and maybe LPEG you can use most modu
by catwell 12y ago
A lot of modules are pure Lua. They may depend on a few critical C libraries though. But with just LuaSocket, LuaFileSystem and maybe LPEG you can use most modules.
There are several ways to build those critical Lua modules statically, one being https://github.com/stevedonovan/luabuild https://github.com/stevedonovan/luabuild Even without those, it is not very hard to modify the makefiles to build statically.
About the bloat: this is certainly true for some modules and not others. As I said in the talk, everybody uses Lua differently and nobody will use all the modules and tools available, but there is still some amount of code that can be shared.
I mean: you could say exactly the same thing about C, and it still has a lot of libraries.
- virtue3 12y agothe Lua interpreter is so small and simple that if you really needed libraries and couldnt' dynamically link them in you could easily compile them into the lua interpreter and push the module onto the global table :/. It's really not hard.