News for hackers. Stuff that matters.
Re:Low-Level Optimization with Zig by ants_everywhere on Saturday June 07, 2025 @09:59PM (#44214018)
You're getting a lot of responses with very strong opinions from people who talk as if they've never had to care about customers relying on their APIs.
Re:Low-Level Optimization with Zig by josephg on Sunday June 08, 2025 @04:36PM (#44219327)
It’s a trust thing.

If you can trust that downstream users of your api won’t misuse private-by-convention fields (or won’t punish you for doing so), it’s not a problem. That works a lot of the time: You can trust yourself. You can usually your team. In the opensource world, you can just break compatibility with no repercussions.

But yes, sometimes that trust isn’t there. Sometimes you have customers who will misuse your code and blame you for it. But that isn’t the case for all code. Or even most code.