News for hackers. Stuff that matters.
Re:Rust 1.24 by lmm on Friday February 16, 2018 @07:27AM (#16391824)
With async/await you can tell from the type signature whether a given function might suspend, and then reading through the body you can see whether each function call is a non-suspending one or a possibly-suspending one. It makes it really obvious what's doing what. If suspension is your only effect then it probably doesn't matter (one unmanaged effect is ok), but when you have other effects that might interact, having all the suspension points be explicit is really useful. https://glyph.twistedmatrix.com/2014/02/unyielding.html gives one example.
Re:Rust 1.24 by RX14 on Friday February 16, 2018 @08:03AM (#16392008)
Thanks, yeah, that's a useful insight. I guess it's rather a moot point with Go anyway since you have multiple goroutines executing on multiple cores at once.