News for hackers. Stuff that matters.
Re:Async-await on stable Rust by vanderZwan on Thursday November 07, 2019 @11:55AM (#21474880)
> you can get similar "structured concurrency"-like control flow with things like `futures::join!` or `futures::select!`.

That sounds very promising, I should give it a closer look (I don't program in Rust myself so I only read blogs out of intellectual curiosity)

Re:Async-await on stable Rust by naasking on Thursday November 07, 2019 @12:30PM (#21475192)
Or you can use something like protothreads or async.h [1] if you're stuck with C/C++ and need something lightweight.

[1] https://news.ycombinator.com/item?id=21033496

Re:Async-await on stable Rust by vanderZwan on Friday November 08, 2019 @12:03AM (#21480084)
Céu compiles to C actually, and I believe Francisco Sant’Anna (the author of the language) makes a direct comparison to protothreads and nesC in one of his papers (probably the PhD thesis). I had not seen async.h before though, interesting!

[1] http://ceu-lang.org/publications.html