-
Notifications
You must be signed in to change notification settings - Fork 44
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
Remove vendored libraries and rely on the Zig package manager #34
Comments
EDIT: actually scratch that. :) Given that it's a completely new C++ API, I don't think it makes sense to expose. Bummer that the luau-analyze isn't fully featured. |
I saw the email notification a few days ago and came here just now prepared to reply. Guess I don't have to anymore 😂 I started work on this today. I am currently updating Ziglua to use the changes in ziglang/zig#18160 and it makes sense to also remove the vendored libraries at the same time for simplicity. I guess I'm mostly commenting this to let you know I saw your many issues and PRs over the last week. I'm slowly working through them now :)
I've given this about 2 seconds of thought, but it's possible that we could include a more fully featured version of luau-analyze with ziglua. Let's just see how the Luau bindings progress over time and what is needed |
Thanks for the heads up! I've been playing a lot with Lua(u) bindings (even doing some light perf measurements with Lua vs. Luau) and have a gained some useful experience with this code.
Yeah, I thought about this some too, and one idea I had would be to include luau-compile and luau-analyze as outputs from Ziglua. This makes sense for luau-compile because it's a good idea to try to compile bytecode using the same Luau version that loads the bytecode. But it's somewhat optional to bundle these tools -- it may be that a pretty workable workflow is to just use "analysis" in VSCode with luau-lsp and wait for the Luau upstream to improve on CLI tooling (some background). |
My understanding is that the Zig package manager will eventually support pulling down non-zig code and using it in the build process. Maybe this is already possible?
But this would remove all of the files in
./lib
. Doing this would make it much easier to update subprojects like Luau or LuaJIT, which have more frequent updates. It also makes it more clear that Ziglua actually does rely on Lua, and that we haven't tampered with the source code.We could rely on the upstream project for everything except Lua 5.1. #2 reported a CVE that some distros have patched in Lua 5.1, but that Lua hasn't patched. So I would make a lua repo that contains the full history of Lua, and then that patch.
The text was updated successfully, but these errors were encountered: