News for hackers. Stuff that matters.
Re:The end of the kernel Rust experiment by delamon on Wednesday December 10, 2025 @09:39AM (#46218204)
> if your compiler unboxes the contained item into your nodes

Is there known compilers that can do that?

Re:The end of the kernel Rust experiment by eru on Wednesday December 10, 2025 @08:29PM (#46226557)
Haskell's GHC partially does it. LLVM can do it in principle, if your frontend gives enough information. Some JVMs can partially do some of it.

The above is about the optimiser figuring out whether to box or unbox by itself.

If you are willing to give the compiler a hand: Rust can do it just fine and it's the default when you define data structures. If you need boxing, you need to explicitly ask for it, eg via https://doc.rust-lang.org/std/boxed/struct.Box.html