News for hackers. Stuff that matters.
Re:Rust programs versus Go by notheguyouthink on Wednesday May 16, 2018 @09:36AM (#17082239)
They had green threads, but removed it. To my knowledge, there are multiple libraries that effectively implement green threads, but it's still a work in progress. Might be production ready, not sure, but I believe at the very least the ergonomics are a work in progress.
Re:Rust programs versus Go by vanderZwan on Wednesday May 16, 2018 @10:14AM (#17082532)
Hmm, sounds like the kind of thing that is hard to get right then. Maybe it's for the best that it isn't in the standard library until the design and implementation stabilises then.

Sucks for early adopters though!

Re:Rust programs versus Go by vertex-four on Wednesday May 16, 2018 @10:30AM (#17082674)
I doubt Rust will ever get green threads - it turns out that OS threads are good enough, and futures (async/await) is how IO will get dealt with at scale. Green threads don’t help compute-bound code, so with a solution in place for IO, they’re unnecessary.
Re:Rust programs versus Go by steveklabnik on Wednesday May 16, 2018 @11:39AM (#17083258)
It's quite unlikely that Rust the language will get green threads, yes. We are getting stackless couroutines ("generators"), which are related but not the same thing.

There's a ton of options in this space, and they're all slightly different, with different tradeoffs, so it's really hard to make good comparisons. You have to deeply understand exactly what each language is doing.