News for hackers. Stuff that matters.
Re:Zero-cost futures in Rust by steveklabnik on Thursday August 11, 2016 @12:00PM (#12269315)
1. I am not sure exactly how async/await is implemented, but I believe it is very similar. Some people are also working on implementing similar sugar in Rust, but it's not done yet.

2. Closures are on the stack, not the heap, by default, in Rust. If you don't see a Box, they're not heap allocated.

3. I agree!

Re:Zero-cost futures in Rust by moosingin3space on Thursday August 11, 2016 @12:03PM (#12269345)
Stack-allocated closures are one of my favorite features of Rust. They make it easy to write functional-style code that performs well.
Re:Zero-cost futures in Rust by indeyets on Friday August 12, 2016 @09:23AM (#12275392)