What does HackerNews think of r4cppp?

Rust for C++ programmers

Language: Rust

There is a certain irony that existing knowledge of low level programming is a detriment to learning rust.

It’s almost as if you need to completely unlearn behaviours before you can learn the “the rust way”.

I think the standard path is this “book” (GitHub repo): https://github.com/nrc/r4cppp

I found r4cppp[1] much more useful than any other resource to learn Rust. I understand not everyone has experience with C++, but I found that other resources spent a lot of time on topics that are already intuitive to systems programmers. That was pretty frustrating and put me off from the language for a while.

[1] https://github.com/nrc/r4cppp

Why not both?

https://github.com/nrc/r4cppp

https://www.reddit.com/r/rust/comments/71w6ht/is_there_a_c_f...

C++ sucks big time when it comes to "management" - there's no official compiler, no official package manager, no package registry, no easy dependency handling. It's easy to start with sane C++ and then "oh, I need a library for X", and you just wandered into a forsaken of hell accidentally. [ https://i.imgur.com/a4CVG.jpg ]

https://github.com/nrc/r4cppp exists, I haven't read it though. Or at least, not in a very long time.
A very good resource for C++ developers is Nick Cameron's r4cppp tutorials https://github.com/nrc/r4cppp
I am not sure if you have come across this "Rust tutorial for c/c++ programmers" https://github.com/nrc/r4cppp but I found it to be nice when I was first exploring Rust (I had prior experience with C++).

I haven't had to resort to "unsafe" blocks in the Rust I have written so far but "ffi" is one use case for unsafe blocks. Another resource that I have yet to read is "https://doc.rust-lang.org/nomicon/" which seems to explain how to write unsafe Rust code.

You can find a few pointers (heh) here: https://github.com/nrc/r4cppp

(I'm not sure how active that is worked on, though, I think I've seen basically the same version back in September.)