News for hackers. Stuff that matters.
Re:The end of the kernel Rust experiment by aw1621107 on Wednesday December 10, 2025 @02:04PM (#46222026)
> Personally, I like 3.1.2 from your link [0] best, which involves getting rid of pointer <=> integer casts entirely, and just adding methods to pointers, like addr and with_addr. This needs no new types and no new syntax, though it does make pointer arithmetic a little more cumbersome. However, it also makes it much clearer that pointers have provenance.

Provenance-related work seems to be progressing at a decent pace, with some provenance-related APIs stabilized in Rust 1.84 [0, 1].

[0]: https://blog.rust-lang.org/2025/01/09/Rust-1.84.0/

[1]: https://doc.rust-lang.org/std/ptr/index.html#provenance

Re:The end of the kernel Rust experiment by kbolino on Wednesday December 10, 2025 @02:50PM (#46222728)
Indeed, the only missing piece really then is the ability to warn/error when exposed provenance and/or as-casts are used.