News for hackers. Stuff that matters.
Re:Log is non-monotonic in PHP and Lua by mjmas on Wednesday July 29, 2026 @04:19AM (#49094728)
> Lua uses 64-bit double floats for everything

Not true in Lua >= 5.3. 64-bit signed integers are included in the number type now. And there is a math.ult function for treating them as unsigned.

And so 0x7fffffffffffffff is representable properly.

Re:Log is non-monotonic in PHP and Lua by lexicality on Wednesday July 29, 2026 @04:39AM (#49094836)
this is true but basically everyone uses LuaJIT these days
Re:Log is non-monotonic in PHP and Lua by inigyou on Wednesday July 29, 2026 @06:57AM (#49095803)
Pinned several language versions ago? No they don't.
Re:Log is non-monotonic in PHP and Lua by spacechild1 on Wednesday July 29, 2026 @11:11AM (#49098573)
Citation needed. You only need LuaJIT if performance is very important, which is not the case for many scripting purposes. I personally use Lua 5.3.
Re:Log is non-monotonic in PHP and Lua by HappMacDonald on Wednesday July 29, 2026 @02:12PM (#49101003)
Well, I use PICO-8 LUA. Where are my double-precision floats and 64bit integers at? XD