Hacker News new | ask | show | jobs
by mjmas 3 days ago
> 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.

1 comments

this is true but basically everyone uses LuaJIT these days
Well, I use PICO-8 LUA. Where are my double-precision floats and 64bit integers at? XD
Pinned several language versions ago? No they don't.
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.