Heliodex /🅮/acc on Nostr: How I wish pure Lua/Luau had arbitrary precision numbers like Python does (as in ...
How I wish pure Lua/Luau had arbitrary precision numbers like Python does (as in 2^53+1 ~= 2+53). Metamethods and operator overloading make custom BigNum implementations nice to use but slow as molasses.
It'd rarely be useful, but for those things where it would, it seems like there just isn't any efficient way to do them without it.
Published at
2024-05-16 23:17:29Event JSON
{
"id": "17ac9deff324778c590d832ad48a2019b1cfc75a5ab77726b67152781f6b7d40",
"pubkey": "ffffffffe5335006069f8b47bfface18f25e537dd4b3ec90e37d3c76a4003fce",
"created_at": 1715901449,
"kind": 1,
"tags": [],
"content": "How I wish pure Lua/Luau had arbitrary precision numbers like Python does (as in 2^53+1 ~= 2+53). Metamethods and operator overloading make custom BigNum implementations nice to use but slow as molasses.\n\nIt'd rarely be useful, but for those things where it would, it seems like there just isn't any efficient way to do them without it.",
"sig": "bd5b9104962d4040574c2391a6e1d5ea62ee0e02fd53efb4d088ff65ae70843656e403b0def8807687291cfbef5a51dded4af550570bd69a8193052858ca1dfb"
}