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

LuaJIT support #19

Open
Tracked by #32
kassane opened this issue Jun 21, 2023 · 8 comments
Open
Tracked by #32

LuaJIT support #19

kassane opened this issue Jun 21, 2023 · 8 comments
Labels
feature New feature or request
Milestone

Comments

@kassane
Copy link

kassane commented Jun 21, 2023

From the title above. Will it be compatible with luaJit?
I remember that zoltan is compatible. ranciere/zoltan#1

@natecraddock
Copy link
Owner

natecraddock commented Jun 21, 2023

Yes this is planned, I just haven't gotten around to it yet.

I will mention that luajit has a much more complex build system than regular lua

@natecraddock natecraddock changed the title Suggestion: add LuaJIT v2 support LuaJIT support Aug 11, 2023
@natecraddock
Copy link
Owner

The build.zig for ffmpeg involves using the nasm assembler at compile time. This is similar to what is necessary for building luajit. See this for reference https://github.com/andrewrk/ffmpeg/blob/73ac2d6ce909854436a23a26a9f712861eec2b4e/build.zig#L873

@natecraddock natecraddock added this to the 0.3.0 milestone Aug 11, 2023
@theoparis
Copy link
Contributor

How about Luau support? It has additional features such as types. The cmake build script has a way to build it with extern "C".

@natecraddock
Copy link
Owner

@theoparis I'm also open to Luau though for me that is lower priority than luajit. Feel free to open a separate issue to track it

@nurpax
Copy link
Contributor

nurpax commented Dec 1, 2023

I came here to ask about Luau. At least for my needs, Luau seems like a more useful addition than LuaJIT. Luau fixes many warts in Lua that have been pretty offputting for me.

I might try out building it and see if I can somehow use it with these bindings.

@natecraddock
Copy link
Owner

@nurpax As it seems there is some strong interest in Luau, I've made a separate issue for it here: #30

Though I haven't attempted either yet, it seems Luau might be easier than LuaJIT so I'll give it a try soon

@VisenDev
Copy link
Contributor

VisenDev commented Dec 7, 2023

@natecraddock I think some nice zig integration for luajit ffi would be amazing if we could get that to work

It would make it so nice to use lua with zig

@natecraddock natecraddock added the feature New feature or request label Dec 29, 2023
@natecraddock natecraddock mentioned this issue Dec 29, 2023
10 tasks
@natecraddock natecraddock removed this from the 0.3.0 milestone Jan 13, 2024
@natecraddock natecraddock linked a pull request Jan 19, 2024 that will close this issue
@natecraddock natecraddock removed a link to a pull request Jan 19, 2024
@natecraddock natecraddock added this to the 0.3.0 milestone Jan 19, 2024
@natecraddock
Copy link
Owner

#53

natecraddock added a commit that referenced this issue Jan 21, 2024
Adds the latest release of LuaJIT v2.1 and all necessary build file
changes to build as a static library.

This has only been tested on aarch64 macos. Many LuaJIT flags are
missing from the build config. Even if it works, it may not be working
perfectly.

Uses the Lua 51 library bindings, so some additional LuaJIT functions
may be missing. These will be audited and added at a later time.

Part of #19
natecraddock added a commit that referenced this issue Jan 21, 2024
Adds the latest release of LuaJIT v2.1 and all necessary build file
changes to build as a static library.

This has only been tested on aarch64 macos. Many LuaJIT flags are
missing from the build config. Even if it works, it may not be working
perfectly.

Uses the Lua 51 library bindings, so some additional LuaJIT functions
may be missing. These will be audited and added at a later time.

Part of #19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants