What is Nostr?
Taylan (Male Feminist Arc) /
npub1uzc…hsyy
2025-02-14 16:45:25

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.
Author Public Key
npub1uzcsm7540llpxa2mk3ajkcz8r62sghjkveqjvnq2xcykhfuxfxtq77hsyy