News for hackers. Stuff that matters.
Re:Rust's language ergonomics initiative by MrF3ynmann on Friday March 03, 2017 @04:13PM (#13786639)
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?

Re:Rust's language ergonomics initiative by pvg on Friday March 03, 2017 @04:31PM (#13786839)
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.
Re:Rust's language ergonomics initiative by steveklabnik on Friday March 03, 2017 @04:14PM (#13786655)
https://github.com/nrc/r4cppp exists, I haven't read it though. Or at least, not in a very long time.
Re:Rust's language ergonomics initiative by shmolyneaux on Friday March 03, 2017 @09:14PM (#13788735)
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...

Re:Rust's language ergonomics initiative by maximilian on Saturday March 04, 2017 @01:52AM (#13789691)
Oreilly has a pre-release book that seems quite good at explaining rust from a C++ perspective.

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

Re:Rust's language ergonomics initiative by baq on Friday March 03, 2017 @04:34PM (#13786868)
it's not really that much c++; try to drop your c++ glasses. might help to pass trough ocaml to collect $200.
Re:Rust's language ergonomics initiative by vatotemking on Saturday March 04, 2017 @12:08AM (#13789399)
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.
Re:Rust's language ergonomics initiative by pjmlp on Saturday March 04, 2017 @02:49AM (#13789866)
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.

Re:Rust's language ergonomics initiative by vatotemking on Sunday March 05, 2017 @09:49PM (#13800357)
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.
Re:Rust's language ergonomics initiative by pvg on Saturday March 04, 2017 @09:31AM (#13791015)
Exiled? We totally left voluntarily!