Re: [go-nuts] LHS inference for type assertions (Pre proposal discussion)

2023-05-20 Thread Dexter Plameras
My apologies, So as to not waste your time or anybody else's, I'll follow the proposal headings in the (proposal/.../TEMPLATE.md), and post here. On Sunday, 21 May 2023 at 07:23:22 UTC+10 Ian Lance Taylor wrote: > On Sat, May 20, 2023 at 1:17 PM Dexter Plameras wrote: > > > > As per the requir

[go-nuts] High Idle wakeups

2023-05-20 Thread Om Narayan
Hi, My command line tools is crashing on mac machine ( both intel and M1) and its working fine on even raspberry pi 4b. Issue - apple is killing my app with reason '45001 wakeups over the last 140 seconds' My command like tool is making around 50-100 tcp calls to local tcp server and few

Re: [go-nuts] LHS inference for type assertions (Pre proposal discussion)

2023-05-20 Thread Ian Lance Taylor
On Sat, May 20, 2023 at 1:17 PM Dexter Plameras wrote: > > As per the requirement before putting together a proposal, a discussion on > LHS inference for type assertions > > Currently, type assertions take the form of: > > // > // Pre assertion > // > var original string = "Hello Type Assertions"

Re: [go-nuts] Idiomatic distribute-process-collect pattern

2023-05-20 Thread Ian Lance Taylor
On Sat, May 20, 2023 at 1:23 AM Tobias Klausmann wrote: > > What I wonder about is the collection stage: the assumption that there > will be exactly as many results as inputs seems brittle, and the only > real way to handle errors is to put them into the result struct and > examining them

[go-nuts] LHS inference for type assertions (Pre proposal discussion)

2023-05-20 Thread Dexter Plameras
Greetings, As per the requirement before putting together a proposal, a discussion on LHS inference for type assertions Currently, type assertions take the form of: // // Pre assertion // var original string = "Hello Type Assertions" var data interface{} = original // or "var data any" // // A

Re: [go-nuts] Idiomatic distribute-process-collect pattern

2023-05-20 Thread Andrew Harris
For aggregating results, an alternative to blocking on outstanding payloads is blocking on outstanding workers. You might find this talk interesting, and it has a pretty clever solution for "outstanding workers": https://about.sourcegraph.com/blog/go/gophercon-2018-rethinking-classical-concurren

[go-nuts] Idiomatic distribute-process-collect pattern

2023-05-20 Thread Tobias Klausmann
Hi! I find myself often writing tools that follow the pattern in the subject, that is: - Gather some input to process, e.g. a list of filenames from the command line. If this can be streamed (processing starting before knowing all inputs) even better, but not strictly necessary. - Start N wo