You don’t need co routines if you have real concurrency. The generator use case is simply an optimization that wouldn’t be necessary if the concurrency model was more efficient - and there was a more expressive way to use it. I demonstrated on some Java boards that generators are easily implemented without exposing the co routines that make lightweight threading possible. The Go implementation get some compiler support which makes it more efficient. I think the Java loom project has proved that the Go concurrency model is ideal. Reading up on “structured concurrency” is a great exercise. On Feb 24, 2025, at 8:53 PM, Jason E. Aten <j.e.a...@gmail.com> wrote: -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/F1D194CE-F13C-42FF-A9A8-DBB8EFD122BD%40ix.netcom.com. |
- [go-nuts] Exposing newcoro/coroswitch Nuno Cruces
- [go-nuts] Re: Exposing newcoro/coroswitch Jason E. Aten
- Re: [go-nuts] Re: Exposing newcoro/coroswitch Robert Engels
- Re: [go-nuts] Re: Exposing newcoro/coroswitch Jason E. Aten
- Re: [go-nuts] Re: Exposing newcoro/coroswit... Robert Engels
- Re: [go-nuts] Re: Exposing newcoro/cor... Robert Engels
- Re: [go-nuts] Re: Exposing newcoro... Robert Engels
- [go-nuts] Re: Exposing newcoro/coroswitch Nuno Cruces
- [go-nuts] Re: Exposing newcoro/coroswitch Jason E. Aten
- Re: [go-nuts] Re: Exposing newcoro/coroswit... Nuno Cruces
- Re: [go-nuts] Re: Exposing newcoro/cor... Aston Motes
- Re: [go-nuts] Re: Exposing newcoro... Jason E. Aten
- Re: [go-nuts] Re: Exposing new... Nuno Cruces