Hacker News

Favorites Setup
Comment by afdbcreid | original | C for Rust programmers
[−]afdbcreid · 2026-10-11 Sun 12:37 UTC · link
No, I usually follow language and opsem discussions. While CHERI discussions are not something I follow closely, unless you have an explicit link I'm pretty sure I didn't miss something that important.

The strict provenance APIs or the "Rust has provenance" RFC are not relevant here (more precisely, they help clarify the options but do not solve the problem).

The problematic statement is still in The Reference (https://doc.rust-lang.org/reference/type-layout.html):

> Pointers to sized types have the same size and alignment as `usize`.

Which just cannot be guaranteed on CHERI with 64-bit `usize`.

There are discussions like there were before, and it's pretty clear that we'll have to give up either performance or possibly quite a lot of compatibility, but no decision.