News for hackers. Stuff that matters.
Re:Cloudflare outage on November 18, 2025 post mortem by 10000truths on Tuesday November 18, 2025 @11:10PM (#45975766)
My rule of thumb is that unchecked access is okay in scenarios where both the array/map and the indices/keys are private implementation details of a function or struct, since an invariant is easy to manually verify when it is tightly scoped as such. I've seen it used it in:

* Graph/tree traversal functions that take a visitor function as a parameter

* Binary search on sorted arrays

* Binary heap operations

* Probing buckets in open-addressed hash tables

There are no comments on this comment yet.