dnsjit.core.loader(3)

πŸ“¦
version 1.5.1 Β· 5 versions
, in epel 10, epel 9, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– dnsjit.core.loader β€” Dynamic library loader πŸ’–

okay bestie, this is the dnsjit.core.loader page from the dnsjit library functions manual, and it's literally the little glue that goes and fetches your .so files for you. no cap. πŸ¦‹


✨ SYNOPSIS ✨

local loader = require("dnsjit.core.loader")
loader.load("example-input-zero/zero")

🌸 DESCRIPTION 🌸

so this module is for loading dynamic libraries (.so files) in more ways than LuaJIT can. the way it's mostly used? in external modules. that's the whole vibe. πŸ’…

πŸŽ€ Functions πŸŽ€

  • Loader.load(name, global) β€” it goes searching through package.cpath for the name you gave it and loads the first one it finds. if global is true β€” and heads up, it's default true if you don't pass it at all β€” then the loaded symbols will also be available globally. it hands you back the loaded C library exactly as per ffi.load(). 🫢

also, the ? in each path of package.cpath gets replaced by the name you passed in, which is why you usually don't need to type the .so part of the library name at all. iconic behaviour honestly.

if you wanna go deeper, see package.cpath and package.loaders in Lua 5.1 for more info. iykyk πŸ’œ

πŸ‘‘ AUTHORS and CONTRIBUTORS πŸ‘‘

the absolute legends behind this:

  • Jerry LundstrΓΆm (DNS-OARC)
  • TomΓ‘Ε‘ KΕ™Γ­ΕΎek (CZ.NIC)
  • Petr Ε paček (ISC)

Maintained by DNS-OARC 🌈

https://www.dns-oarc.net/

πŸ’€ BUGS πŸ’€

got issues? got a feature request? (very valid of you)

https://codeberg.org/DNS-OARC/dnsjit/issues

questions or need help? (also very valid)

admin@dns-oarc.net

and that's the whole page, bestie β€” this was dnsjit version 1.5.1, dated dnsjit.core.loader(3), from the library functions manual. slay, go load some libraries responsibly. πŸ’–βœ¨πŸŽ€