Hacker News new | ask | show | jobs
by MrF3ynmann 3398 days ago
I still can't get my head around rust. While all those features definitely make sense, I find it very confusing sometimes.

Is there something like rust for c++ programmers?

6 comments

Is this before or after leafing through their book? Because I think there are at least two stages of not-understanding Rust. One is before taking a look at the book and docs in which you can't make any sense of it at all. Another one is after scanning the book and trying some of the examples in which you really start to understand how you can't make any sense of it at all.
https://github.com/nrc/r4cppp exists, I haven't read it though. Or at least, not in a very long time.
There is a porting guide for C/C++ [0] that may help clarify the differences between the two. I have not read it though.

[0] https://locka99.gitbooks.io/a-guide-to-porting-c-to-rust/con...

Oreilly has a pre-release book that seems quite good at explaining rust from a C++ perspective.

http://shop.oreilly.com/product/0636920040385.do

it's not really that much c++; try to drop your c++ glasses. might help to pass trough ocaml to collect $200.
Curious, is it harder for c++ programmers to learn Rust than dev from higher level devs? Because ive seen Rust has a lot more success recruiting devs from python, js, even php.
Not really, it is mostly a culture thing.

There are two main communities in C++, those that embrace safety and take advantage of the language features to improve their productivity, while going down to lower level constructs if performance needs an extra push.

Then there are those that are kind of exiled C developers using a C++ compiler, forced to migrate to C++ on their work, trying to use it as C with C++ compiler.

This is the group that has more issues with Rust.

That maybe it. Perhaps the first camp is more comfortable and familiar with the "ocaml'ness" of Rust, while for the second (C devs) camp the concepts are alien.
Exiled? We totally left voluntarily!