News for hackers. Stuff that matters.
Re:Was Rust Worth It? by ernst_klim on Thursday October 26, 2023 @11:53AM (#38027315)
These are two issues, which a theoretically orthogonal but in practice not so much. These are known as soundness and completeness. A good talk on topic [1]

Rust will reject a lot of sound programs, and that's a huge performance hit. You are hitting the incompleteness wall with multiple mutable borrowing, closures in structures are a huge source of pain as well. And usually the answer from the community is "use handlers instead of pointers", but this gives you, surprise surprise, manual resource management alike that in C, and the compiler won't help much.

Of course this is all subjective but for me the ergonomics of Rust is far too bad. It's a good step in right direction along with ATS, but I really hope we could do better than this.

[1] https://www.youtube.com/watch?v=iSmkqocn0oQ

Re:Was Rust Worth It? by oneshtein on Thursday October 26, 2023 @01:31PM (#38028885)
Can you give us examples, please? I use Rust since version 1.0, and I like it a lot.
Re:Was Rust Worth It? by hgs3 on Thursday October 26, 2023 @05:04PM (#38031687)
Cyclic data structures are impossible to represent in safe Rust because there is no clear "owner" in a cyclic data structure.
Re:Was Rust Worth It? by oneshtein on Sunday October 29, 2023 @08:39AM (#38058008)
Cyclic structures can be flattened into a vector or an arena, or unsafe Rust can be used.
Re:Was Rust Worth It? by tene on Thursday October 26, 2023 @01:51PM (#38029183)
What are some examples of sound programs you want to write in Rust but are unable to write?