Re: [go-nuts] [gollvm] compiling error of libgo/runtime/aeshash.c on ARM

2019-07-15 Thread xiangdong...@gmail.com
Thanks a lot, Ian, I can build it with clang now with a few minor changes. On Tuesday, July 16, 2019 at 5:40:24 AM UTC+8, Ian Lance Taylor wrote: > > On Mon, Jul 15, 2019 at 7:39 AM Xiangdong Ji > wrote: > > > > I am trying to build gollvm on ARM with a few experimental changes, > looks

Re: [go-nuts] The "leave "if err != nil" alone?" anti-proposal

2019-07-15 Thread Dan Kortschak
This is what the go version directive in go.mod is for. On Mon, 2019-07-15 at 20:05 -0700, Andrey Tcherepanov wrote: > Or... adding "require" to package statement to indicate Go 2 is the > language for this file > > package main requires "go2" -- You received this message because you are

Re: [go-nuts] Re: About the Google logo on the new Go website

2019-07-15 Thread Marcin Romaszewicz
I used to work at Google at the time that Go was created, and these are my own observations. Google isn't making zillions off Go. Google makes zillions off advertising and is trying to make money other ways, but not always very successfully. Go really was designed as a nice to use systems language

Re: [go-nuts] Re: About the Google logo on the new Go website

2019-07-15 Thread andrey mirtchovski
> Google invested in a tool for themselves, which helped a lot in getting some > zillions of bucks as return. Corps open smth to communities not because they > a "good", but because at some point they smart enough to make others work for > free. I see a "Go Haters Handbook" in the works. I

[go-nuts] Re: About the Google logo on the new Go website

2019-07-15 Thread Space A.
Google invested in a tool for themselves, which helped a lot in getting some zillions of bucks as return. Corps open smth to communities not because they a "good", but because at some point they smart enough to make others work for free. There is no reason to keep implementation of programming

Re: [go-nuts] The "leave "if err != nil" alone?" anti-proposal

2019-07-15 Thread Andrey Tcherepanov
Thank you Roger, it is kind of funny how natural that syntax is that couple people use it so naturally. But with all of these ... it is impossible to squeeze them into Go (even 2) without breaking backward compatibility. Unless we will add something that will take nil from pointers, something

Re: [go-nuts] How to store the address of C struct on Go side in an array (cgo)

2019-07-15 Thread Ian Lance Taylor
On Sun, Jul 14, 2019 at 6:06 AM Nitish Saboo wrote: > > func (obj SyslogParser) LoadPatternDB(opts Syslog, workerId int) { >log.Info("Loading pattern db with path:", opts.Patterndb) > > patterndbpath := C.CString(opts.Patterndb) . <<< . STEP 1 > > defer

Re: [go-nuts] About the Google logo on the new Go website

2019-07-15 Thread Dan Kortschak
Fair or not, it's pretty tone deaf. In conjunction with other unilateral decisions that get made, it leads to a sour taste. On Mon, 2019-07-15 at 18:54 +0200, Wojciech S. Czarnecki wrote: > On Mon, 15 Jul 2019 17:39:47 +0200 > Michal Strba wrote: > > > The issue was promptly closed and locked

Re: [go-nuts] About the Google logo on the new Go website

2019-07-15 Thread Jon Conradt
>From my perspective, Google's momentum with Go is to share it more broadly and generously with an ever larger growing community of contributors. I personally don't mind the tiny logo at the bottom right of the page. However, everyone who feels like you should feel welcome to fork the

Re: [go-nuts] [gollvm] compiling error of libgo/runtime/aeshash.c on ARM

2019-07-15 Thread Ian Lance Taylor
On Mon, Jul 15, 2019 at 7:39 AM Xiangdong Ji wrote: > > I am trying to build gollvm on ARM with a few experimental changes, looks > like some ARM Neon intrinsics in > libgo/runtime/aeshash.c are not supported by GCC 7/8, wondering if it could > be solved by any additional compile > options, or

Re: [go-nuts] possible to set tls.Config.Servername with http.client.Do

2019-07-15 Thread Andy Balholm
If you leave the Servername blank, http.Transport will get it from the HTTP request. Andy > On Jul 15, 2019, at 12:27 PM, efah...@gmail.com wrote: > > Hi, > > I was wondering how one can do concurrent tls requests with one single > http.Client where all the servers serving the request have

[go-nuts] possible to set tls.Config.Servername with http.client.Do

2019-07-15 Thread efahale
Hi, I was wondering how one can do concurrent tls requests with one single http.Client where all the servers serving the request have their certificates from the same root CA but require different tls.Config.Servername. Would be nice to have a function like http.client.DoWithServername(req,

[go-nuts] Re: Announcing a Go API for YottaDB

2019-07-15 Thread K.S. Bhaskar
Apologies for the delayed reply; I have been traveling. The Go API is currently in a field test state (hopefully getting to production state in the next few weeks). The Go wrapper version to use with YottaDB r1.26 is the 'develop' branch at YDBGo. Or use YottaDB r1.24 and the master branch of

Re: [go-nuts] How to build gollvm on arm platform

2019-07-15 Thread 'Than McIntosh' via golang-nuts
Hi, >> Currently I can build all unit test executable files by "% ninja GoBackendUnitTests", but in order to run all tests, I have to run the test executable files under all the directories. Do we have a single command to perform all unit tests? Such a target doesn't exist yet -- I agree that

Re: [go-nuts] Chunked http response with go routines

2019-07-15 Thread Burak Serdar
On Mon, Jul 15, 2019 at 12:14 PM wrote: > > flusher, ok := w.(http.Flusher) > > > // w.wr is io.Writer here > > > for _, gateway := range app.Gateway { > > > go func(w http.ResponseWriter) { > > // w.wr is nil here > > > tmpl, err := template.New(gateway.Name).Parse(gateway.Content) > >

[go-nuts] Chunked http response with go routines

2019-07-15 Thread hasangenc . istanbul
flusher, ok := w.(http.Flusher) // w.wr is io.Writer here for _, gateway := range app.Gateway { go func(w http.ResponseWriter) { // w.wr is nil here tmpl, err := template.New(gateway.Name).Parse(gateway.Content) if err != nil { panic("An Error occured when parsing

[go-nuts] Prevent a package from being updated using go modules

2019-07-15 Thread Pantelis Sampaziotis
Hi, I would like to ask if there is a functionality similar to apt-mark hold (which prevents package from being automatically installed, upgraded or removed) in go modules. The case I have is that after updating a package from 1.2.2 to 1.3.0, a bug was introduced which can break the app in

[go-nuts] Re: About the Google logo on the new Go website

2019-07-15 Thread B Carr
Google has spent and is spending 10s of millions of $$$ on the development of Go and all while continuously giving it away without strings attached. And people have so much free time they complain about a tiny symbol in the upper left corner of the golang.org website? Thank you to the Go

Re: [go-nuts] Tools or debug options for debugging 'Error in `bin/main': double free or corruption (fasttop)' in cgo

2019-07-15 Thread jake6502
> > I am a beginner with GO and cgo, and have never dealt with C corruption > issues. > > First, I would try really hard to find a pure go solution to your problem, or next best, a solution that uses a 3rd party go package that handles the cgo for you. I understand that this may not be

Re: [go-nuts] About the Google logo on the new Go website

2019-07-15 Thread Sam Whited
On Mon, Jul 15, 2019, at 16:54, Wojciech S. Czarnecki wrote: > Neither go-nuts list is a proper venue for the Big Enders and Little > Enders fight. Please keep this mailing list clean. This is the place for Go discussion. Not everyone in the community has an account on Reddit, or even GitHub, but

Re: [go-nuts] About the Google logo on the new Go website

2019-07-15 Thread Wojciech S. Czarnecki
On Mon, 15 Jul 2019 17:39:47 +0200 Michal Strba wrote: > As you all know, the new, redesigned Go website has a Google logo in the > bottom right corner. > > Someone opened an issue about this, worrying that with the logo, nobody > will see Go as a community project: >

Re: [go-nuts] About the Google logo on the new Go website

2019-07-15 Thread Sam Whited
On Mon, Jul 15, 2019, at 15:40, Michal Strba wrote: > What do you think? For example, Rust has no Mozilla logo on its page > despite being largely funded by it. Google funds a great deal of Go development, but it seems extremely narcissistic of them to put their corporate logo on something that a

[go-nuts] About the Google logo on the new Go website

2019-07-15 Thread Michal Strba
As you all know, the new, redesigned Go website has a Google logo in the bottom right corner. Someone opened an issue about this, worrying that with the logo, nobody will see Go as a community project: https://github.com/golang/go/issues/33021 The issue was promptly closed and locked by a Go

Re: [go-nuts] Question about iterator implementation of golang map

2019-07-15 Thread Jan Mercl
On Mon, Jul 15, 2019 at 4:39 PM Aaron Lau wrote: > We won't update the map during the traversal process. So why use mapaccessK > to find the k & v again ? The comment explains that very clearly: > // The hash table has grown since the iterator was started. > // The golden data for this key is

[go-nuts] Question about iterator implementation of golang map

2019-07-15 Thread Aaron Lau
Question: Where In function mapiternext Why We won't update the map during the traversal process. So why use mapaccessK to find the k & v again ? if (b.tophash[offi] != evacuatedX && b.tophash[offi] != evacuatedY) || !(t.reflexivekey() || alg.equal(k, k)) { // This is the golden data, we can

[go-nuts] [gollvm] compiling error of libgo/runtime/aeshash.c on ARM

2019-07-15 Thread Xiangdong Ji
Hello, I am trying to build gollvm on ARM with a few experimental changes, looks like some ARM Neon intrinsics in libgo/runtime/aeshash.c are not supported by GCC 7/8, wondering if it could be solved by any additional compile options, or should the latest gcc-9 or clang be used? clang could

Re: [go-nuts] How to build gollvm on arm platform

2019-07-15 Thread eric fang
Hi, Another three questions about test and benchmark. 1, Currently I can build all unit test executable files by "% ninja GoBackendUnitTests", but in order to run all tests, I have to run the test executable files under all the directories. Do we have a single command to perform all unit

Re: [go-nuts] Tools or debug options for debugging 'Error in `bin/main': double free or corruption (fasttop)' in cgo

2019-07-15 Thread Wojciech S. Czarnecki
On Mon, 15 Jul 2019 10:55:19 +0530 Nitish Saboo wrote: > Hi Jan, > > I am a beginner with GO and cgo, and have never dealt with C corruption > issues. > Do you have commands or a blog post or something else where I can read > about it and Internet is full of C and C debugging tutorials.