[go-nuts] Re: Still "missing" priority or ordered select in go?

2021-05-12 Thread Øyvind Teig
I am not certain whether you start with Java and end up with describing a possible implementation for Go, or stay with Java. In any case Java is your starting point. I guess, comparing any feature of any language, from the outside, then the feature comparison lists turn up. But since you broug

[go-nuts] Re: Still "missing" priority or ordered select in go?

2021-05-12 Thread Haddock
> In addition to htq and ltq you have a third queue into which you also > insert a token once one has been added to htq or ltp. The thread/goroutine > that serves htq, ltp, hq, lq is blocked by this additional queue. When it > is empty, htq and ltq are also empty. So when the goroutine is blo

[go-nuts] Re: Still "missing" priority or ordered select in go?

2021-05-12 Thread Haddock
Brian Candler schrieb am Mittwoch, 12. Mai 2021 um 10:34:31 UTC+2: > On Wednesday, 12 May 2021 at 08:40:36 UTC+1 Haddock wrote: > >> I once implemented something to solve the same problem in Java. So I have >> a high priority queue (hq) and a low priority queue (lq). Whenever an item >> is att

[go-nuts] Re: Still "missing" priority or ordered select in go?

2021-05-12 Thread Brian Candler
On Wednesday, 12 May 2021 at 08:40:36 UTC+1 Haddock wrote: > I once implemented something to solve the same problem in Java. So I have > a high priority queue (hq) and a low priority queue (lq). Whenever an item > is atted to the hq a token is also added to some associated high priority > token

[go-nuts] Re: Still "missing" priority or ordered select in go?

2021-05-12 Thread Haddock
I once implemented something to solve the same problem in Java. So I have a high priority queue (hq) and a low priority queue (lq). Whenever an item is atted to the hq a token is also added to some associated high priority token queue (htq). Same for the lq and ltq. Some thread or goroutine tak

[go-nuts] Re: Still "missing" priority or ordered select in go?

2021-05-06 Thread Øyvind Teig
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 T

[go-nuts] Re: Still "missing" priority or ordered select in go?

2021-05-05 Thread 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 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 o