Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>"but Rust is actually a replacement for C++. "

I would disagree. C++ provides way more features than Rust and to me Rust feels way more constrained comparatively.



Sure, in the sense that in C++ they've got the Head Of Vecna: https://rpgmuseum.fandom.com/wiki/The_Head_of_Vecna

Many of my favourite Rust features aren't in C++. For example they don't have real Sum types, they don't have the correct move semantic, they are statement oriented rather than expression oriented and their language lacks decent built-in tooling.

But also, some of the things C++ does have are just bad and won't get fixed/ removed because they're popular. And there's no sign of it slowing down.

I think that in practice you should use Rust in most places that C++ is used today, while some of the remainder should be WUFFS, or something entirely different.


>"I think that in practice you should use Rust"

I am doing fine. Thank you. Also I am not a language warrior. I do have my preferences but use many since I am an independent and work with many clients.


The biggest issue for me, is that Rust isn't used where I care about, mainstream language runtimes, compiler toolchains, and GPU ecosystem standards.

No one from them would accept a patch in Rust instead of C or C++.

Yes I know about Deno, but even them haven't rewriten V8, and wgpu or Rust CUDA aren't the same as what Khronos, NVidia, AMD, Microsoft put out in C++.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: