NEW LUA RELEASE - /g/ (#105755205) [Archived: 675 hours ago]

Anonymous
6/30/2025, 5:40:19 PM No.105755205
lua-5-logo-png-transparent-2280818694
lua-5-logo-png-transparent-2280818694
md5: c5767bd68e70555e0da52f227bf152bc🔍
Lua 5.5 beta was released!

source: https://www.lua.org/work/lua-5.5.0-beta.tar.gz
documentation: https://www.lua.org/work/doc

Changes:
>declarations for global variables
>for-loop variables are read only
>floats are printed in decimal with enough digits to be read back correctly.
>more levels for constructors
>table.create
>utf8.offset returns also final position of character
>external strings (that use memory not managed by Lua)
>new functions luaL_openselectedlibs and luaL_makeseed
>major collections done incrementally
>more compact arrays (large arrays use about 60% less memory)
>lua.c loads 'readline' dynamically
>static (fixed) binaries (when loading a binary chunk in memory, Lua can reuse its original memory in some of the internal structures)
>dump and undump reuse all strings
>auxiliary buffer reuses buffer when it creates final string

What is your favourite new feature? most hated?
Replies: >>105755288 >>105755437 >>105755524 >>105759378 >>105760218 >>105761588 >>105761771
Anonymous
6/30/2025, 5:43:02 PM No.105755237
X = 1 -- Ok, global by default
do
global Y -- voids implicit initial declaration
Y = 1 -- Ok, Y declared as global
X = 1 -- ERROR, X not declared
end
X = 2 -- Ok, global by default again


Not too sure how to feel about this one honestly... I can't think of where i'd use this. Maybe just me adding `global _` at the top of every file to disable all globals?
Replies: >>105761748 >>105761783
Anonymous
6/30/2025, 5:47:10 PM No.105755288
>>105755205 (OP)
Useless since everyone uses luajit
Replies: >>105755315
Anonymous
6/30/2025, 5:49:58 PM No.105755315
>>105755288
I can't embed LuaJIT into a webpage, but I can embed PUC lua
Replies: >>105755437
Anonymous
6/30/2025, 5:59:32 PM No.105755437
>>105755205 (OP)
The work on memory is all good stuff, and the external strings is a "finally moment", but the rest of this is like... why?
>declarations for global variables
Thanks, I hate it.

>>105755315
Yes you can. Disable JIT. But also
>embed into a webpage
I don't want to run software in a fucking document viewer, thank you very much.
Replies: >>105755468
Anonymous
6/30/2025, 6:02:43 PM No.105755468
>>105755437
>>Yes you can. Disable JIT. But also
Nope, the interpreter still can't run because dynasm doesn't have a wasm target
Anonymous
6/30/2025, 6:08:11 PM No.105755524
>>105755205 (OP)
WoW still uses a subset of 5.1 for their addon api, fuck these lazy ass niggas
Anonymous
6/30/2025, 9:29:48 PM No.105757747
>dump and undump
Anonymous
6/30/2025, 11:58:38 PM No.105759378
>>105755205 (OP)
>luaL_makeseed
I've plenty of seed for all...
Anonymous
7/1/2025, 1:31:03 AM No.105760218
119360094_p0
119360094_p0
md5: cf2be572df16840a98d172d8d882b66b🔍
>>105755205 (OP)
>>table.create
Finally. Nice.
This is pretty nice. Thanks anon.
Replies: >>105761726 >>105761730
Anonymous
7/1/2025, 4:36:39 AM No.105761588
>>105755205 (OP)
>for-loop variables are read only
INTO THE TRASH IT GOES
Anonymous
7/1/2025, 4:58:03 AM No.105761714
7
7
md5: eccc35d491d5e952f9f1998c57af733c🔍
>declarations for global variables
Useless bloat unless they make implicit declaration local by default
No balls. Lua peaked at 5.1
Anonymous
7/1/2025, 5:00:04 AM No.105761726
>>105760218
>finally
I'm glad we have a standard library function for function table.create(...) return {...} end that now
Typing that myself would be too difficult, useless boilerplate fr
Anonymous
7/1/2025, 5:01:06 AM No.105761730
>>105760218
>finally
I'm glad we have a standard library function for function table.create(...) return {...} end now
Typing that myself would be too difficult, useless boilerplate fr
Anonymous
7/1/2025, 5:01:26 AM No.105761733
ugly ass language, truly.
Anonymous
7/1/2025, 5:03:42 AM No.105761748
>>105755237
Yeah it's confusing and non-intuitive, I don't know what happened
Anonymous
7/1/2025, 5:06:38 AM No.105761771
>>105755205 (OP)
How is lua useful beyond providing mod support for games?
Replies: >>105761797
Anonymous
7/1/2025, 5:07:48 AM No.105761783
>>105755237
What terrible design.
Anonymous
7/1/2025, 5:09:34 AM No.105761797
>>105761771
Providing configuration or scripting support for software