News for hackers. Stuff that matters.
Re:Giving C a Superpower by throwaway889900 on Monday November 17, 2025 @06:06PM (#45959477)
True, I guess I was expecting if you were reimplementing these with additional protections, why not add the protection using the custom pointer reimplementations to ensure no use after frees. Seems like a missed opportunity.
Re:Giving C a Superpower by loeg on Monday November 17, 2025 @06:52PM (#45959834)
I don’t think there is a way to do this generally without GC, and that leads to significant pitfalls anyway (eg in Java you can accidentally end up holding multi-GB strings in memory because a few references to short substrings exist).