Pointer Provenance in Rust vs. C++: Pointers Are Not Just Glorified Ints

sofiabelenlopez 36 points 14 comments November 05, 2026
sofiabelen.github.io · View on Hacker News

Discussion Highlights (4 comments)

afdbcreid

Ralf Jung's series (one of the prominent developers behind Rust's memory model and author of RustBelt) about pointers is very recommended: https://www.ralfj.de/blog/2018/07/24/pointers-and-bytes.html https://www.ralfj.de/blog/2020/12/14/provenance.html https://www.ralfj.de/blog/2022/04/11/provenance-exposed.html

jayd16

Does C++ pointer arithmetic invalidate this post or is there some other magic there?

uecker

As far as I know, provenance is still a mess both on LLVM and GCC.

zkxjzmswkwl1

ok but like int** justanint = *(int**)(some_pointer);

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed