You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure what you mean by dynamic or static dependency. Can you explain?
When you reported this, I was in the process of converting the code to C++. Later, there were strange bugs and I wasn't sure if it was due to C++ not being supported, so I changed it to C. By now, the whole project is converted to C.
There are two reasons for it: it has better performance, and the Lua API is defined in C. I had to hack around that to access the library directly from Lua (because it did not give me access to preprocessor macros), which made it fragile; it could stop working due to a change in Lua that wasn't a change in its interface. That is no longer the case now that it uses the documented interace.
I didn't test other Lua variants, but I wouldn't be surprised if they work. You'd have to try.
I'm not sure what you mean by dynamic or static dependency. Can you explain?
When you reported this, I was in the process of converting the code to C++. Later, there were strange bugs and I wasn't sure if it was due to C++ not being supported, so I changed it to C. By now, the whole project is converted to C.
There are two reasons for it: it has better performance, and the Lua API is defined in C. I had to hack around that to access the library directly from Lua (because it did not give me access to preprocessor macros), which made it fragile; it could stop working due to a change in Lua that wasn't a change in its interface. That is no longer the case now that it uses the documented interace.
I didn't test other Lua variants, but I wouldn't be surprised if they work. You'd have to try.
as far as I know all lua variants are based on lua 5.1 so lua 5.1 compatibility is important for working with other lua variants such as luau and luajit that is why I was testing if the lua 5.1 testsuite worked
Activity
inceptorprogrammer commentedon May 31, 2025
Oh yeah i wonder if it would be possible to support luau and maybe luajit
wijnen commentedon Jun 7, 2025
Hi,
I'm not sure what you mean by dynamic or static dependency. Can you explain?
When you reported this, I was in the process of converting the code to C++. Later, there were strange bugs and I wasn't sure if it was due to C++ not being supported, so I changed it to C. By now, the whole project is converted to C.
There are two reasons for it: it has better performance, and the Lua API is defined in C. I had to hack around that to access the library directly from Lua (because it did not give me access to preprocessor macros), which made it fragile; it could stop working due to a change in Lua that wasn't a change in its interface. That is no longer the case now that it uses the documented interace.
I didn't test other Lua variants, but I wouldn't be surprised if they work. You'd have to try.
inceptorprogrammer commentedon Jun 7, 2025
a static dependency is a dependency that comes bundled with the program or source code in this case module.c and function.c
a dynamic dependency is a dependency that needs to be added or acquired for example PHP or even python itself
a dependency is something a program or library or source code needs to work properly for example module.c and function.c
inceptorprogrammer commentedon Jun 7, 2025
as far as I know all lua variants are based on lua 5.1 so lua 5.1 compatibility is important for working with other lua variants such as luau and luajit that is why I was testing if the lua 5.1 testsuite worked
inceptorprogrammer commentedon Jun 7, 2025
lua could be a static dependency if i'm correct since all you have to do if i'm correct is include the lua header (lua.h) and other files
many programs already include lua as a static dependency so it is possible if I am correct