Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Dynamically link moonjit #43

Open
ghost opened this issue Jan 4, 2022 · 4 comments
Open

Dynamically link moonjit #43

ghost opened this issue Jan 4, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2022

Hi! Currently in AegisubDC, moonjit is statically linked. It is somewhat inconvenient to write modules using Lua C API. Such modules are also required to statically link to moonjit, increasing the size, and compatibility of lua_State need to be taken care of. An example is a toy I wrote. So how about making moonjit dynamically linked. i.e. build a DLL for moonjit, let Aegisub dynamically link to it, and modules can also link to the DLL and do not need to bring a statically linked moonjit runtime anymore. (I know we can use FFI to write C extensions; however, I prefer using Lua C API, and it should be an option.)

@Ristellise
Copy link
Owner

Ristellise commented Jan 8, 2022

I dare you to try compiling luajit VC project yourself and release a Aegisub build.

@Ristellise
Copy link
Owner

After some annoyance, managed to get it build as a dll. For next version, link it as luajit.dll

@ghost
Copy link
Author

ghost commented Jan 9, 2022

BTW, I think luajit-minilua and luajit-buildvm should not be included in installation, as they are just intermediate.

@Ristellise
Copy link
Owner

BTW, I think luajit-minilua and luajit-buildvm should not be included in installation, as they are just intermediate.

Noted. will remove them from releases.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant