3 ms·
Placer looks interesting. I'll try it out. >When you're writing a kernel you're not supposed to be using the standard library at all, just libcore (which exist
by acconsta 11y ago
Placer looks interesting. I'll try it out.
>When you're writing a kernel you're not supposed to be using the standard library at all, just libcore (which exists for this purpose). The same issue exists in C++.
Not quite. C++ standard containers are polymorphic on the allocator. That means you're welcome to use std::list or std::string in kernel mode. Just plug in a kernel allocator and you're good to go.
There's no technical reason why every Rust core project must reinvent the linked list and the hash map, like every C project.
- Manishearth 11y agohttps://github.com/rust-lang/rfcs/pull/1183 https://github.com/rust-lang/rfcs/pull/1183