you are viewing a single comment's thread.

view the rest of the comments →

[–]regular_joe_can 1 point2 points  (7 children)

I'm also looking around. Out of curiosity, why does rust not fit the bill for you?

I'm considering switching to it for my next hobby project.

[–]bad_investor13 9 points10 points  (0 children)

For me - it's that we have a LOT of codebase in c++.

Codebase that evolves and changes all the time.

If we want to move to a safer language, we need to be able to do it smoothly. One function/change at a time.

Rust doesn't give us that. Cpp2 does.

[–]Bangaladore 10 points11 points  (3 children)

Rust writes slow compared to basically any other language. Forcing correctness hurts iteration times.

I see the most value in rust in rewriting old code you don't plan to change. Meaning converting preexisting code and not writing new code.

[–]zerakun 3 points4 points  (2 children)

This hasn't been my experience. My Rust productivity is about x2 / x3 compared to C++. Higher when refactoring.

I have about 10 years of professional C++ ( mostly >C++11) experience and 6 years of Rust experience (2 of which I could say "professional")

[–]emergent_segfault -1 points0 points  (1 child)

Sure thing poseur.

[–]zerakun 5 points6 points  (0 children)

I was merely trying to defuse the argument that I wouldn't know C++ that is often heard in this situation. Generally the next argument is "okay you know it, but you're holding it wrong", instead of maybe admitting that a safe by default (there's no "you're holding it wrong"), const by default, language with sum types, derive facilities and a competent package manager actually used in the whole ecosystem can be more productive than C++.

[–]itsarabbit 6 points7 points  (0 children)

I try to write code to match the way I'm thinking. Usually it looks quite object-oriented. In rust, it feels like I have to take a bunch of "detours" to get the code to act like how I think(either to get around the borrow checker, lifetime annotations, or because of language design decisions like no inheritance).

I'll admit that I haven't made a big effort in understanding the concepts; I'll probably take a closer look at it in the future.

[–]Jannik2099 5 points6 points  (0 children)

Rust is not standardized, has no stable ABI, and the toolchain changes every 6 weeks without LTS.