Taylan (Male Feminist Arc) on Nostr: I may have just invented a way to represent 2^52 - 2 different fixnum values via NaN ...
I may have just invented a way to represent 2^52 - 2 different fixnum values via NaN packing, with relatively efficient packing/unpacking. (For negative numbers, a single bitwise OR; for positive numbers, a bitwise NOT and then AND.)
And there's another 2^52 - 2 bit patterns that are still unused. That's more than enough for 48-bit pointers and 21-bit Unicode code points.
Published at
2025-02-14 16:45:25Event JSON
{
"id": "b92474210293d646b88a68571ac51c6eacd90fb7836db95b4958259eb9a38912",
"pubkey": "e0b10dfa957ffe13755bb47b2b60471e95045e566641264c0a36096ba7864996",
"created_at": 1739551525,
"kind": 1,
"tags": [
[
"proxy",
"https://fedi.feministwiki.org/objects/90bd733b-a449-464e-a990-15dc6dfbe41c",
"activitypub"
]
],
"content": "I may have just invented a way to represent 2^52 - 2 different fixnum values via NaN packing, with relatively efficient packing/unpacking. (For negative numbers, a single bitwise OR; for positive numbers, a bitwise NOT and then AND.)\n\nAnd there's another 2^52 - 2 bit patterns that are still unused. That's more than enough for 48-bit pointers and 21-bit Unicode code points.",
"sig": "98b2cfc3077e83ad51afafb4040caa818661d65e0b84e72142cb88f4c0f2d8a4f16da34ebaaa956b6cc35373adea1e4260ecdc13a1e082ab186398897443b4b0"
}