[ANN] Lua 5.4.9 (rc1) now available

79 views
Skip to first unread message

Luiz Henrique de Figueiredo

unread,
Aug 10, 2026, 5:36:15 AM (3 days ago) Aug 10
to lua-l
Lua 5.4.9 (rc1) is now available for testing at
https://www.lua.org/work/lua-5.4.9-rc1.tar.gz

The SHA256 checksum is
2335b6c582a52654f94612bf10d2f4672805d05329aa6568b1d8cd9e5c6fb8e6  -

The Git commit ID in branch v5.4 is
312b9efaa1061c2c4cad08554dbc1351c3270eef

Lua 5.4.9 fixes all bugs listed in
https://www.lua.org/bugs.html#5.4.8

The complete diffs from Lua 5.4.8 are available at
https://www.lua.org/work/diffs-lua-5.4.8-lua-5.4.9.html
https://www.lua.org/work/diffu-lua-5.4.8-lua-5.4.9.html

This is probably the last release of Lua 5.4.
Now is the time to report glitches and to try to fix any remaining bugs.

We thank everyone for their feedback on Lua 5.4 till now.

All feedback welcome. Thanks.
--lhf

blogdron (BLOGDRON)

unread,
Aug 10, 2026, 2:42:57 PM (3 days ago) Aug 10
to lua-l
Thanks!

понедельник, 10 августа 2026 г. в 12:36:15 UTC+3, Luiz Henrique de Figueiredo:

Richard Beckmann

unread,
Aug 10, 2026, 2:47:22 PM (3 days ago) Aug 10
to lu...@googlegroups.com
Dear Lua developers

The '__builtin_expect' fix in Lua 5.5.1 hasn't been backported to Lua 5.4.9 (rc1).

In Lua 5.5.1 'luaconf.h' at line 656
```
#if !defined(LUA_NOBUILTIN) && defined(__GNUC__) && (__GNUC__ >= 3)
#define luai_likely(x) (__builtin_expect(((x) != 0), 1))
#define luai_unlikely(x) (__builtin_expect(((x) != 0), 0))
#else
#define luai_likely(x) (x)
#define luai_unlikely(x) (x)
#endif

#endif
```

In Lua 5.4.9 (rc1) 'luaconf.h' at line 683
```
#if defined(__GNUC__) && !defined(LUA_NOBUILTIN)
#define luai_likely(x) (__builtin_expect(((x) != 0), 1))
#define luai_unlikely(x) (__builtin_expect(((x) != 0), 0))
#else
#define luai_likely(x) (x)
#define luai_unlikely(x) (x)
#endif

#endif
```

The luai_likely/luai_unlikely code from Lua 5.4.9 should be the same as the code from Lua 5.5.1 with the fix in which the GNU compiler version is too low.

Sincerely,

Richard Beckmann

Sent with Proton Mail secure email.

--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/9a1f6649-f9d9-443b-924d-c6c1f9126f3bn%40googlegroups.com.

Roberto Ierusalimschy

unread,
Aug 12, 2026, 10:56:28 AM (yesterday) Aug 12
to 'Richard Beckmann' via lua-l
> The '__builtin_expect' fix in Lua 5.5.1 hasn't been backported to Lua 5.4.9 (rc1).

Thanks for the feedback.

-- Roberto
Reply all
Reply to author
Forward
0 new messages