2 ms·
I've found a lot of useful Lua code out there, but it's a very different ecosystem. I need some function(s) in python, I'm browsing pip and bringing in whateve
by samatman 4y ago
I've found a lot of useful Lua code out there, but it's a very different ecosystem.
I need some function(s) in python, I'm browsing pip and bringing in whatever looks like it has stars in recent activity.
Lua? I'm looking for a Lua file, usually in a git repo (or a gist, oddly enough), and vendoring it with a link to the original and license.
The 'funny' part, if you will, is they're often 8 years old with like three commits total and less than a dozen stars. You would think that would make it buggy, but that hasn't been my experience.
It's just that Lua shows up in so many different contexts, with all the idiosyncrasies. The majority of Lua users don't care about luarocks, so when they want to share some code, they don't necessarily bother with a rockspec.
Just a very different culture. What JavaScript is to the browser, Lua is to anything you want: and this is a large difference, JS's relationship to the browser is much more intimate.
The Lua interpreter is best viewed as almost a demonstration program, sure, you can write software with it, but this is the degenerate case of embedding the interpreter in just enough host program to run it.