Re: [go-nuts] atomic.Add*() doesn't produce unique values

2019-11-29 Thread Kurtis Rader
On Fri, Nov 29, 2019 at 6:21 PM Liam wrote: > Does atomic.AddInt32(&x, 1) always yield unique values for concurrent > callers? > > I'm guessing not, because (I think) I'm seeing that two callers get x+2, > neither gets x+1. > That shouldn't happen, AFAICT. Can you share the code where the incorr

Re: [go-nuts] atomic.Add*() doesn't produce unique values

2019-11-29 Thread burak serdar
On Fri, Nov 29, 2019 at 7:21 PM Liam wrote: > > Does atomic.AddInt32(&x, 1) always yield unique values for concurrent callers? > > I'm guessing not, because (I think) I'm seeing that two callers get x+2, > neither gets x+1. That should not happen, afaik. Do you have code you can share? > > Is t

[go-nuts] atomic.Add*() doesn't produce unique values

2019-11-29 Thread Liam
Does atomic.AddInt32(&x, 1) always yield unique values for concurrent callers? I'm guessing not, because (I think) I'm seeing that two callers get x+2, neither gets x+1. Is there a way to generate unique values with pkg atomic, or is a mutex required? -- You received this message because you

[go-nuts] golang and -buildmode=pie

2019-11-29 Thread volf . tomas
Hello, while looking into how alpine linux builds golang I've found that is patches it to make -buildmode=pie the default. I've tried to find why. I've managed to find this thread https://groups.google.com/forum/#!searchin/golang-nuts/pie|sort:date/golang-nuts/Jd9tlNc6jUE/Z9ldF6vPEAAJ

[go-nuts] [gollvm] Can't exec LLVM IR from go code

2019-11-29 Thread lufeihaizei2008
Hello! I recently want to use gollvm to analyse code. However I met a problem after I get the llvm ir whith the instructions shown in gollvm official doc * I can not exec the .ll file by lli command* zty@zty-server:~/go-projects/sr

[go-nuts] Re: [ANN] A GC-friendly and fast StatsD client

2019-11-29 Thread mithlesh
HI Alexandre Cesaro. Whenever i use your package inside docker. I get connection refused error. Can you please check it out? On Wednesday, 28 October 2015 02:36:24 UTC+7, Alexandre Cesaro wrote: > > I know there are plenty Go StatsD clients but there were always something > that bothered me: A