45
Let futures be futures
(without.boats)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
The bit about Rob Pike at the end is killer.
What's the part about Rob Pike? I didn't see anything mentioned in the article.
It doesn't mention him by name, but he's the "language designer of some renown" alluded to here:
Ah, thanks, makes sense. I largely skimmed the conclusion, so I guess I didn't make that connection.
I did think about Go throughout the article, since it basically uses "green" functions everywhere. I guess I got tripped up when they mentioned "effect handlers," which isn't a thing in Go AFAIK (then again, I'm not a language designer), unless it's used under the hood.
Ah. No, keep reading:
(Emphasis on "go" is in the original.)
Lol.
To be fair, the Go implementation here is quite interesting since it scales way better than OS threads, so there are fewer downsides to spinning up a ton of threads. So it's closer to async abstracted behind a threading veneer, like the GREEN functions in the article.
Though the "known only to you" criticisms are absolutely on-point.
Yeah, Boats' point there is definitely about semantic correctness rather than performance. Goroutines do indeed have good performance.