Re:LuaJIT Uses Rolling Releases
by andersa on Friday August 25, 2023 @10:23AM
(#37262065)
I'm confused what you mean. What is a packager doing here? I always assumed that the intention of this library is that you, as a developer, compile and embed it in a product that needs a scripting engine. What use would a standalone LuaJIT package be?
[ Parent
| on HN ]
It's available as a package, and a library, in most Linux distributions. It includes the library and the interpreter.
edit: I have a few scripts with #!/usr/bin/luajit as the shebang line.
Interesting, that's neat. Somehow didn't realize using it like this was an option, but now that you mention it...
libluajit is a drop-in replacement for the regular liblua (v5.1)
Even ignoring the installed interpreter, libraries on Linux distributions are usually installed system-wide as their own packages which other packages depend on (neovim, mpv, cgit, etc.)
if you apt install libluajit-5.1-dev you can compile and link your c programs with it without having to compile it yourself
similarly if you are writing programs in lua rather than in c you can run them in luajit if you just apt install luajit
if you want to release your programs as free software so other people can compile and link them, it's important for them to be able to get the version of luajit you were using so they can debug why your program doesn't work in the current version of luajit