Re: [go-nuts] Non-atomic access to m.state in sync.Mutex

2021-01-24 Thread 罗华清
the "bug" is still there. any purpose? 在2013年6月7日星期五 UTC+8 下午8:55:56 写道: > On Fri, Jun 7, 2013 at 4:31 PM, Maxim Khitrov wrote: > > Hi, > > > > I assume that the code is correct, but I'd like to understand why it's > > safe. The line "old := m.state" in Mutex.Lock()'s for loop accesses a > > var

Re: [go-nuts] [ANN] github.com/jba/codec, a fast encoder for Go

2021-01-24 Thread Jonathan Amsterdam
Thanks for the suggestions. I created https://github.com/jba/codec/pull/1 to address them. You can comment in more detail there if you'd like. On Wed, Jan 20, 2021 at 12:13 PM roger peppe wrote: > On Wed, 20 Jan 2021 at 13:31, Jonathan Amsterdam > wrote: > >> The encoding scheme is described br