[go-nuts] Good examples of Go back ends?

2024-01-21 Thread george looshch
hi! can i please ask if someone knows good examples of back ends written in Go? If not good, just production code would be great as well! thanks in advance and have a great rest of the weekend! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

Re: [go-nuts] How could we emulate condition variables using Go channels only?

2024-01-21 Thread Jason E. Aten
I like this question, as a fun puzzle to solve. Bryan's approach is similar to how I am thinking about it. Reading his code (https://go.dev/play/p/BpLBYsSSqn2?v=gotip), however, I think there are some issues: 1) What if there are two simultaneous calls to Broadcast that end up closing the same

Re: [go-nuts] How could we emulate condition variables using Go channels only?

2024-01-21 Thread Jason E. Aten
Update: nope, I was wrong. Those two scenarios cannot happen. Because reading the one value in cc.ready acts as a mutex already. On Sunday, January 21, 2024 at 5:08:35 PM UTC+1 Jason E. Aten wrote: > I like this question, as a fun puzzle to solve. Bryan's approach is > similar to how I am think