Hacker News new | ask | show | jobs
by mungaihaha 452 days ago
> I'm still not seeing any description of specific challenges you feel are harder in Rust than in C/C++

It's harder to model domains in Rust. C has the same problem and it is a big reason why the industry standard for game dev is C++

2 comments

Care to give an example? I think GUIs remain the softest domain modeling area, but that’s about how do you do next gen GUI toolkits that are super high performance, safe, and lower overhead vs what Rust has today. But that’s an underserved niche anyway vs c++ toolkits or electron.

The other weak parts might be ecosystem immaturity (eg Unreal vs Bevy) but that’s not a language modelling issue.

Rust makes it hard to represent mutable graphs. If I have a value that can be updated by multiple GUI nodes, I have to architect my way around the borrow checker in Rust. Is it safe? yes. Is is performant? for a skilled Rust dev, yes. But it takes me >25% more time to do compared to C++. 25% of a year long project is 3 months
Could you expand on this? What exactly doe "model domains" mean?