News for hackers. Stuff that matters.
Re:Green threads explained in 200 lines of Rust by arnarbi on Wednesday June 12, 2019 @11:21AM (#20165517)
> how would you work this type of code into something that can be used in production?

You wouldn't. There are production-ready solutions to this in many languages.

> The goal should be to have a green thread library that you can just use without thinking about registers or assembly.

The goal here is very explicitly to explain a concept by example, which is largely incompatible with what you say the goal should be. I think the author did a very good job.

Re:Green threads explained in 200 lines of Rust by amelius on Wednesday June 12, 2019 @11:22AM (#20165526)
> I think the author did a very good job.

I wasn't questioning that!