Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for vanilla Lua(not only Luajit) #128

Open
astrolemonade opened this issue Oct 25, 2021 · 5 comments
Open

Add support for vanilla Lua(not only Luajit) #128

astrolemonade opened this issue Oct 25, 2021 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@astrolemonade
Copy link

No description provided.

@kkharji
Copy link
Owner

kkharji commented Oct 25, 2021

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

@kkharji kkharji added enhancement New feature or request help wanted Extra attention is needed labels Oct 25, 2021
@astrolemonade
Copy link
Author

astrolemonade commented Oct 25, 2021

@kkharji
Copy link
Owner

kkharji commented Oct 25, 2021

Not quite sure. I thought I saw luarock that does this. but this maybe tested.

@astrolemonade
Copy link
Author

@Conni2461
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants