Deviatt
LuaJIT truly has fast interpreter, optimizations and most importantly, JIT-compiler. It will provide the optimization for the main problem - loops. However it can be unstable and interrupt adding multithreaded programming. Adding LuaJIT will complicate the development of nanos world.
T
Timmy
Deviatt True that! About multithreading I didn't knew that it would conflict with LuaJIT.
So in your opinion what would be the best performance wise in most scenarios? Having faster execution times on the main thread or delegate some heavy operations to other threads and/but stay on 5.4?
Deviatt
Timmy I believe that fast code execution in a single thread is more likely to outperform multi-threaded code due to the issues with dispatching and communication between threads, which can lead to misuse and misunderstanding among newcomers.
Deviatt
We can improve the performance of single-threaded code by using coroutines.
JustGod
No Lua 5.4 as new things that we don't want to remove
T
Timmy
JustGod Yea like slow execution time haha
JustGod
Timmy No but ::continue:: += or things like this and metatable name replacing table when printing tostring(tbl)
T
Timmy
JustGod Yea this are great additions ngl, but regarding the performance gain LuaJIT would offer I don't think these 5.4 features are worth it if a choice had to be made
Voltaism
No
Cedi
Voltaism: Yes
T
Timmy
Voltaism Yes