Re: [go-nuts] Order of evaluation need more definition in spec

2019-03-16 Thread Michael Jones
Upon reflection I see that this is as you say. Not only expressed hazards, but even such mysterious cases as file system modification yb external scripts invoked by one argument and visible to another. On Sat, Mar 16, 2019 at 10:03 PM T L wrote: > > > On Friday, March 15, 2019 at 2:25:44 PM UTC-

Re: [go-nuts] Re: Elastic synchronised logging : What do you think ?

2019-03-16 Thread caijianyu
The solution you proposed is better now, but if the log produce speed is still too large, I think the printf function should not use a new goroutine( by go func(){r:=... bufferchan<-r }), because the internal bytes.Buffer{} might reaches the certain size always, it cannot provide the ablibity

Re: [go-nuts] Re: Elastic synchronised logging : What do you think ?

2019-03-16 Thread Burak Serdar
On Sat, Mar 16, 2019 at 11:10 PM wrote: > > I'm not sure if the log produce more than consume by the func 'centrale' in > the same period of time, will 'buff' be larger and larger and cost too much > memory. > For example, The log comes from network and write into a disk but network > speed is

[go-nuts] Re: Elastic synchronised logging : What do you think ?

2019-03-16 Thread caijianyu
I'm not sure if the log produce more than consume by the func 'centrale' in the same period of time, will 'buff' be larger and larger and cost too much memory. For example, The log comes from network and write into a disk but network speed is greater than disk write speed. So is there any way to

Re: [go-nuts] Order of evaluation need more definition in spec

2019-03-16 Thread T L
On Friday, March 15, 2019 at 2:25:44 PM UTC-4, zs...@pinterest.com wrote: > > Thanks for response, I'm new here still need do more research on existing > topics. > > I understand compiler can do more optimization with less order > restriction, and I agree it's best to not coding in that way. T

[go-nuts] brotli: my c2go experience

2019-03-16 Thread Andy Balholm
Over the last few months, I’ve been working (on and off) at translating the Brotli compression library into Go. (The result is at github.com/andybalholm/brotli.) I’d like to share what I’ve learned. I tried various tools: rsc/c2go, elliotchance/c2go, Konstantin8105/c4go, and a tool that I devel

[go-nuts] Re: gomobile genjava duplicate constructor definition

2019-03-16 Thread mail
On Friday, March 15, 2019 at 6:30:25 PM UTC+1, kevin.h...@twomen.com wrote: > > I am attempting to update a service package which was written to be used > on mobile devices by using the gomobile bind package. It appears there was > a change made in this commit >

[go-nuts] Elastic synchronised logging : What do you think ?

2019-03-16 Thread Thomas S
Hello, I have a software needing a lot of logs when processing. I need to : 1- Improve the processing time by doing non-blocking logs 2- Be safe with goroutines parallel logs fmt package doesn't match with (1) & (2) log package doesn't match with (1) *Here is my proposal. What do you think ?*

[go-nuts] modules and GoSublime

2019-03-16 Thread Michael Jones
Have not been able to rescue sublime text from module confusion. It is sad on startup with: | GoSublime error: MarGo build failed |> This is possibly a bug or miss-configuration of your environment. |> For more help, please file an issue with the following build out

Re: [go-nuts] syscall.SendMsg/RecvMsg

2019-03-16 Thread Janne Snabb
Well, you are obviously stat()ing two completely different files. It is impossible to guess what you are doing wrong because you do not show your code. My crystall ball is not strong enough. Please see: https://github.com/golang/go/wiki/How-to-ask-for-help Have you considered using an existin