3 ms·
One big issue with D compared to Rust for performance-oriented code is the lack of move semantics. Rust and C++ idiomatically almost never rely on copy-on-write
by Conscat 4y ago
One big issue with D compared to Rust for performance-oriented code is the lack of move semantics. Rust and C++ idiomatically almost never rely on copy-on-write, whereas D so far has a lot of it. I'm not sure how much this matters for kernel modules, but I imagine that it is something users would consider. I had seen some proposals for move semantics in D, so for all I know this is under works right now.
- destructionator 4y agoD rarely has copy on write. It will just plain copy certain types on assignment though so perhaps that's what you meant.
- p0nce 4y agoC++ code has a lot of copies actually.