Re:Tracking Trust with Rust in the Kernel
by surajrmal on Friday September 19, 2025 @02:15AM
(#45298467)
It's only special when you are coming from C. Kernels implemented in c++ have done this sort of thing for a long time.
[ Parent
| on HN ]
Re:Tracking Trust with Rust in the Kernel
by kimixa on Friday September 19, 2025 @03:12AM
(#45298780)
There's plenty of C string libraries with opaque types. No reason why a similar thing can't be done there.
Re:Tracking Trust with Rust in the Kernel
by menaerus on Friday September 19, 2025 @04:53AM
(#45299449)
Opaque types cannot be stack- or statically allocated.
Re:Tracking Trust with Rust in the Kernel
by kimixa on Friday September 19, 2025 @05:04AM
(#45299522)
No, but many languages already have limitations like "strings live on the heap", even many discussed in this thread.
Dynamically sized objects on the stack has always been difficult. You could argue that C special casing fixed length strings to allow that is the odd one out.