Hacker News new | ask | show | jobs
by Conscat 1262 days 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.
2 comments

D rarely has copy on write.

It will just plain copy certain types on assignment though so perhaps that's what you meant.

C++ code has a lot of copies actually.