Re: [go-nuts] Which is the most efficient way to read STDIN lines 100s of MB long and tens of MB info is passed to it

2022-05-08 Thread Amnon BC
Why don't you try redirecting stdout to /dev/null and see how your program behaves. Also, which OS are you using? On Sun, May 8, 2022 at 11:36 PM Const V wrote: > reading 1 line '\n' delimited 100MB file > r1 := bufio.NewReader(file) > s := ReadWithReadLine(r1) > InputProcessing(strings.NewRead

Re: [go-nuts] Which is the most efficient way to read STDIN lines 100s of MB long and tens of MB info is passed to it

2022-05-08 Thread Amnon BC
On Sun, May 8, 2022 at 10:41 PM Const V wrote: > write to stdout is not working for MB long strings > >> >> That is very surprising indeed. How do you reach the conclusion? How can we replicate that failure? -- You received this message because you are subscribed to the Google Groups "golang-n

Re: [go-nuts] Re: New edition of the Go Programming Language comming soon ?

2022-03-14 Thread Amnon BC
Great post, Rob! CS people generally write books for people like themselves and find it hard to put themselves in the position of someone without a CS degree, learning their first programming language. A lot of people are aware of the lack of good beginner material, but few people have the experien

Re: [go-nuts] Issues when using time.Ticker microsecond duration

2022-02-03 Thread Amnon BC
> From the tests that I have performed, I can see that a Ticker pretty accurately fires at every 1ms interval. It will depend on the load on your machine. As the load on the machine increases, so with the jitter in the tick time. On Thu, Feb 3, 2022 at 1:19 AM Robert Engels wrote: > I am unclea

Re: [go-nuts] JSON stream parsing help

2020-07-25 Thread Amnon BC
Awesome, thanks! On Sat, Jul 25, 2020 at 3:50 PM burak serdar wrote: > On Sat, Jul 25, 2020 at 6:09 AM Amnon wrote: > > > > Hi, > > > > I need to consume a stream of json objects. > > But unfortunately the json objects are separated by commas. > > > > Is there any simple way I can convince the

Re: [go-nuts] Re: [Proposal] Change how gofmt formats struct fields

2020-02-20 Thread Amnon BC
Good point Jan, and I totally agree. I noticed that the proposal states that it can only be implemented by the core team. I don't really understand the statement, as go fmt is written in Go and all the sources are available online. So it might be worth expanding this statement to explain why this