torsdag 6. mai 2021 kl. 04:27:06 UTC+2 skrev tapi...@gmail.com: > older threads: > * https://groups.google.com/g/golang-nuts/c/ZrVIhHCrR9o/m/JMJ0fGqhCgAJ > * https://groups.google.com/g/golang-nuts/c/lEKehHH7kZY/m/gCjjBviJBwAJ >
Thanks a lot! I'll try to have a look through them! Øyvind On Thursday, April 29, 2021 at 4:51:43 AM UTC-4 oyvin...@teigfam.net wrote: > >> I know from some years ago that go did not have any priority or ordered >> select construct [1]. >> >> The idea is that select always is a nondeterministic choice operator, if >> this is still so. Implemented with a random, I assume. >> >> Programming user defined "fair" algorithms or patterns is then not >> possible, I believe. >> >> Is this still so in Go? No prioritised or ordered select in go? >> >> But is there still a way to code this by f.ex. combining several selects? >> I saw a different take at this at [2], where the select is replaced a >> single chan containing a chan bundle, thus becoming "deterministic". >> >> [1] Blog note Nondeterminism >> <https://www.teigfam.net/oyvind/home/technology/049-nondeterminism/> >> (disclaimer: >> no ads, no gifts, only fun and expenses) >> >> [2] “A pattern for overcoming non-determinism of Golang select statement >> <https://medium.com/@pedram.esmaeeli/a-pattern-for-overcoming-non-determinism-of-golang-select-statement-139dbe93db98> >> (3May2019) >> by Pedram Hajesmaeeli >> > -- 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 on the web visit https://groups.google.com/d/msgid/golang-nuts/528fde96-6671-4038-9a01-1e4bcecac318n%40googlegroups.com.