Re: [go-nuts] defer and Go memory model

2021-05-13 Thread Ge
Thanks Jan and Axel, I may need to figure out go memory model and hardware memory model. 在2021年5月13日星期四 UTC+8 上午2:15:43 写道: > On Wed, May 12, 2021 at 7:55 PM Ge wrote: > > > Do you mean in following case if anthoer goroutine is observing A and B, > > there is no possbility that A is 0 and B is

[go-nuts] signal.NotifyContext - Does it expose the signal handled?

2021-05-13 Thread Amit Saha
Hi - i took a brief look and it doesn't look like we can access the signal that was handled via the signal.NotifyContext() function call? It could be useful for logging messages. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] gollvm: LLVM11-compatible version

2021-05-13 Thread Khanh TN
Hi, Than Thanks a lot. I will try this config Khanh On Thursday, May 13, 2021 at 9:12:25 PM UTC+8 th...@google.com wrote: > Try this config for LLVM 11: > > LLVM: 43ff75f2c3feef64f9d73328230d34dac8832a91 > gollvm: 44a7a475cfd3b871b7a5a0941b8ab1ea9d489adc > gofrontend: be0d2cc2df9f98d967c24259483

Re: [go-nuts] TestSetuidEtc fails during test execution in a container

2021-05-13 Thread Kumar Srinivasan
Thanks for looking into this, Andrew. My 2 cents, there ought to be an elegant mechanism of excluding or disabling regression tests temporarily. For example this is how OpenJDK handles specific or generic platform exclusions. https://github.com/openjdk/jdk/blob/master/test/jdk/ProblemList.txt K

Re: [go-nuts] gollvm: LLVM11-compatible version

2021-05-13 Thread 'Than McIntosh' via golang-nuts
Try this config for LLVM 11: LLVM: 43ff75f2c3feef64f9d73328230d34dac8832a91 gollvm: 44a7a475cfd3b871b7a5a0941b8ab1ea9d489adc gofrontend: be0d2cc2df9f98d967c242594838f86362dae2e7 libbacktrace: 5a99ff7fed66b8ea8f09c9805c138524a7035ece libffi: 737d4faa00d681b4c758057f67e1a02d813d01c2 That seems to w

Re: [go-nuts] gollvm: LLVM11-compatible version

2021-05-13 Thread Khanh TN
Hi Than, The LLVM commit is 43ff75f2c3feef64f9d73328230d34dac8832a91 It has tag llvmorg-11.0.1 Khanh On Thursday, May 13, 2021 at 6:46:04 PM UTC+8 th...@google.com wrote: > What is the SHA in LLVM git corresponding to the official LLVM 11 release? > > Than > > > On Thu, May 13, 2021 at 5:54 AM

Re: [go-nuts] Fwd: protoc-gen-go and go modules

2021-05-13 Thread Amit Saha
On Thu, 13 May 2021, 11:20 am Jim Idle, wrote: > Create a separate module that contains only the .proto files and use the > generate directive. You can then version that module and share it. If your > client is some other language, you can generate Its code from the same repo > at the same versio

Re: [go-nuts] gollvm: LLVM11-compatible version

2021-05-13 Thread 'Than McIntosh' via golang-nuts
What is the SHA in LLVM git corresponding to the official LLVM 11 release? Than On Thu, May 13, 2021 at 5:54 AM Khanh TN wrote: > Hi, I am upgrading to LLVM11, how can I run LLVM11-compatible gollvm? What > are the commits of LLVM, gollvm and related libs should I checkout? > > Thanks! > > Reg

[go-nuts] gollvm: LLVM11-compatible version

2021-05-13 Thread Khanh TN
Hi, I am upgrading to LLVM11, how can I run LLVM11-compatible gollvm? What are the commits of LLVM, gollvm and related libs should I checkout? Thanks! Regards, Khanh -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

[go-nuts] Re: Strange benchmark results

2021-05-13 Thread tapi...@gmail.com
Sorry, there is a temp tweak, the N/5 should be N/2. The second conclusion should be: // And if N is odd number, the InsertOneline // implementations are about 10% faster than the others. On Thursday, May 13, 2021 at 4:52:32 AM UTC-4 tapi...@gmail.com wrote: > > package main > > import "testing"

[go-nuts] Strange benchmark results

2021-05-13 Thread tapi...@gmail.com
package main import "testing" const N = 1615119 // It is strange that if N is large enough, // the one line implementations are fast as the others. // And if N is odd number, the InsertOneline_Disassemble // implementation is about 10% faster than the others. func init() { println("