News for hackers. Stuff that matters.
Re:Fil-C: A memory-safe C implementation by kragen on Tuesday October 28, 2025 @06:36PM (#45740183)
Maybe so; I haven't tried. Probably a lot less code depends on unsigned long wrapping at 2⁶⁴ than used to depend on unsigned int wrapping at 2¹⁶, and we got past that. But stability standards were lower then. Any code that runs on both 32-bit and 64-bit LP64 systems can't be too dependent on the exact sizeof long, and sizeof long already isn't sizeof int the way it was on 32-bit platforms.
Re:Fil-C: A memory-safe C implementation by ummonk on Wednesday October 29, 2025 @02:26PM (#45751009)
I'd actually keep it still wrapping at 2^64, with the extra metadata not participating in arithmetic operations...