News for hackers. Stuff that matters.
Re:Async-await on stable Rust by Matthias247 on Thursday November 07, 2019 @04:15PM (#21477330)
Yeah, that's a super interesting idea that I'm also toying with in my head. One issue however is the "allocation-free" part. Sooner or later you typically hit a situation where you need to box a Future - either because you want to spawn it dynamically or need dynamic dispatch and type erasure. At that point of time you will need an allocator.

I'm still wondering if lots of the problems can be solved with an "allocate only on startup" instead of a "never allocate" strategy, or whether full dynamical allocation is required. Probably needs some real world apps to find out.

Re:Async-await on stable Rust by gpderetta on Friday November 08, 2019 @06:50AM (#21481440)
I'm not familiar with rust futures stuff, but having researched similar problems in C++, the important part is giving the control of allocation (when and how) to the application.
Re:Async-await on stable Rust by Matthias247 on Friday November 08, 2019 @12:31PM (#21484533)
Right. There are some possibilities with custom allocators. But that is still kind of a non-explored area in Rust. Especially the error handling around it. Looking forward to learn more.