Better HN
topnewbestaskshowjobs
Log inSign up

molecularman

2 karma · joined May 5, 2026 (6mo ago) · 5 submissions

Submissions

comment 4mo ago · link · parent

I mean, I myself have poorer reading comprehension than me x years ago.

comment 4mo ago · link · parent

Thanks! Good question, I don't think such a tool exists. Such a tool would require a mathematical proof of an invariant that all the accesses are in bounds. The closest thing is the compiler's own bounds-check elimination proof engine. It eliminates the check when it can prove the checks aren't necessary and sometimes you can help it with hints like `_ = b[i+3]`. But then you don't need unsafe at all, which is the point: unsafe is the last resort.

comment 4mo ago · link · parent

Thank you. I've added your comment to the essay.

4.

Notes from Optimizing CPU-Bound Go Hot Paths(blog.andr2i.com ↗)

1 points · by molecularman · 6mo ago · discuss