News for hackers. Stuff that matters.
Re:Rust for Web by bsder on Monday February 01, 2016 @05:47AM (#11010987)
> As a Rust-curious C++ user, I've actually been frustrated about the lack of C++ to Rust material.

Which C++ subset should someone choose? All of it? What about the people who don't use exceptions? What about the people who don't use templates?

It's the same problem as writing a Perl to XXXX tutorial. The surface area of the source language is so huge that it's just not worth the undertaking.

Re:Rust for Web by autoreleasepool on Monday February 01, 2016 @02:25PM (#11014602)
> Which C++ subset should someone choose?

Easy. The subset outlined in Effective Modern C++

> What about the people who don't use exceptions?

Rust doesn't have exceptions.

> What about the people who don't use templates?

Rust doesn't have templates.

Re:Rust for Web by bsder on Tuesday February 02, 2016 @03:42AM (#11018290)
> Rust doesn't have exceptions.

So, C++ does. You asked about a tutorial for idiomatic Rust coming from C++, and then specified the full C++ set.

So, you have to give the Rust-y equivalents to exceptions, RAII, templates, reference types, virtual classes, etc.

Personally, I'd rather have a C to Rust equivalent--it's a lot easier. Especially a tutorial and primer on making Rust work in an embedded toolchain.

Being able to have a compiled, modern language actually work on embedded hardware would be excessively useful.