sqlite.lua
sqlite.lua copied to clipboard
Add support for vanilla Lua(not only Luajit)
I think it's possible with a package I saw that provide luajit for vanilla lua, but not sure what was it's name. If anyone interested in tackling this a PR is welcomed
Is this the one https://gist.github.com/meepen/807dd81a572ffb0f28a8c44c04922fdd or https://gist.github.com/constfold/ca2f9788c860b753a6300330dbecb721/ ?
Not quite sure. I thought I saw luarock that does this. but this maybe tested.
https://github.com/torch/luajit-rocks ?
You need ffi to make this available in vanilla lua 5.1. There is this package you could locally install: https://github.com/facebookarchive/luaffifb but this is nothing we can really support here. Maybe with luarocks, but i am not familiar enough with that that i wanna look into that.
An alternative would be to write this plugin in c as native lua module (or in rust with mlua). This would remove the ffi requirement but thats just a lot of work and probably not worth it.