News for hackers. Stuff that matters.
Re:Four Years of Rust by steveklabnik on Wednesday May 15, 2019 @10:43AM (#19919867)
Thanks!

A lot of web dev people start off by writing command-line tools. Later this year, Rust will also be significantly easier to write server-side web stuff in, it’s a little tough to get into at the moment. You could also try front-end web stuff with WebAssembly! The PI stuff is also a good choice.

There’s links to learn more about these topics on https://www.rust-lang.org/ that should help you get started!

Re:Four Years of Rust by hamaluik on Wednesday May 15, 2019 @11:06AM (#19920095)
I actually started writing Rust using Rocket (https://rocket.rs). It felt a lot like using nodejs/express which helped me get going and the docs are superb. I think using it quickly helped me learn the language and now I’m writing just about everything in Rust.
Re:Four Years of Rust by alexeldeib on Wednesday May 15, 2019 @11:11AM (#19920153)
I'm interested in Rust and have dabbled but don't follow the community too closely. Why do you say later this year, specifically?
Re:Four Years of Rust by steveklabnik on Wednesday May 15, 2019 @11:12AM (#19920171)
It's not 100% for sure, but it's 99% for sure that async/await will be stable in August. The decision to stabilize is being made in seven days, and if it's decided, it will take that long to make it into its first stable release.
Re:Four Years of Rust by pimeys on Wednesday May 15, 2019 @04:23PM (#19923354)
We have the whole team waiting for this to land. We're probably going with nightly already due to the problems fitting Futures 0.1 model to our codebase.

Very nice to hear.

Re:Four Years of Rust by steveklabnik on Wednesday May 15, 2019 @05:31PM (#19923972)
The proposed syntax has already landed in nightly, so you could use it right now if you wanted, by the way.
Re:Four Years of Rust by pimeys on Wednesday May 15, 2019 @06:20PM (#19924342)
I've been trying a couple of approaches already, but first we're aiming correctness and after that async/await.

Many libraries use tokio::spawn behind the scenes, so it seems we need compat from 0.1 to 0.3 and back to 0.1 to get old futures to work with async/await and the resulting futures to work in 0.1 tokio.

Last time I checked the async/await feature in tokio had some weird crashes and tokio::spawn crashes when used inside romio...

Re:Four Years of Rust by Outpox on Wednesday May 15, 2019 @01:05PM (#19921465)
I'm so excited to read this!