#bit32
The Luau people told me that bit32.byteswap would never be used but who's laughing now
February 7, 2025 at 8:19 PM Everybody can reply
1 likes
That endianness swap can be simplified with the byteswap function:

timestamp = bit32.byteswap(buffer.readu32(res, 40)) - NTP_TIMESTAMP_DELTA
February 7, 2025 at 2:07 AM Everybody can reply
1 likes
yeah! specifically, it's a heavily modified version of Lua 5.1, with some backported features such as bitwise operations (using 5.2's bit32 library), and some additions such as compound assignments (x += 1, as opposed to x = x + 1)

it's also got a custom interpreter -- it's much faster than 5.1
January 11, 2025 at 12:59 PM Everybody can reply
1 likes