[go-nuts] Re: Why golang not introduce or use IR code for further optimizing? Like HIR, MIR and LLIR in Rust-lang ?

2017-04-09 Thread Joost Shao
Thank You, it diff from LLVM to create IR code. 在 2017年4月10日星期一 UTC+8上午11:27:51,Joost Shao写道: > >Why golang not introduce or use IR code for further optimizing? Like > HIR, MIR and LLIR in Rust-lang ? > >I think IR code is morder language design pattern for optimizing. > > Anyone

Re: [go-nuts] Re: Go 1.8.1 is released

2017-04-09 Thread Dave Cheney
I recommend always using the command go install -v This does two things go install will store compiled packages in $GOPATH/pkg for reuse by subsequent compilation. -v will print the name of every package as it is compiled. If the list is long the first time you invoke the command, this is be

Re: [go-nuts] Re: Go 1.8.1 is released

2017-04-09 Thread Caleb Spare
You probably need to rebuild dependencies. (go build -i / go test -i / go install) On Sun, Apr 9, 2017 at 6:52 PM, sachin walia wrote: > Thanks for releasing update so quickly. I've noticed that my build time has > increased in 1.8.1 compared to 1.8. Is it a regression or something that > team is

Re: [go-nuts] Why golang not introduce or use IR code for further optimizing? Like HIR, MIR and LLIR in Rust-lang ?

2017-04-09 Thread Ian Lance Taylor
On Sun, Apr 9, 2017 at 7:41 PM, Joost Shao wrote: >Why golang not introduce or use IR code for further optimizing? Like HIR, > MIR and LLIR in Rust-lang ? > >I think IR code is morder language design pattern for optimizing. > > Anyone can tell me the reason ? The gc toolchain used in

[go-nuts] Re: Go 1.8.1 is released

2017-04-09 Thread sachin walia
Thanks for releasing update so quickly. I've noticed that my build time has increased in 1.8.1 compared to 1.8. Is it a regression or something that team is aware of? thanks, On Friday, April 7, 2017 at 11:02:49 AM UTC-7, Chris Broadfoot wrote: > > Hi gophers, > > We have just released Go versi

[go-nuts] Why golang not introduce or use IR code for further optimizing? Like HIR, MIR and LLIR in Rust-lang ?

2017-04-09 Thread Joost Shao
Why golang not introduce or use IR code for further optimizing? Like HIR, MIR and LLIR in Rust-lang ? I think IR code is morder language design pattern for optimizing. Anyone can tell me the reason ? -- You received this message because you are subscribed to the Google Groups "go

[go-nuts] Strange blocking in allocations during GC

2017-04-09 Thread Alexey Borzenkov
Hi, I recently stumbled upon a very strange behaviour during garbage collection that can produce extremely long pauses in goroutines, which might not even be clear from the output of GODEBUG=gctrace=1. This is especially puzzling given the promise of sub-millisecond pauses since Go 1.8. First, the

[go-nuts] Re: gocode.exe keeps locking my folders

2017-04-09 Thread senterright
Did you ever find a more sustainable solution than killing gocode.exe periodically? On Monday, February 22, 2016 at 10:40:38 AM UTC-8, JM wrote: > > Anyone know what is causing this? When my programs are done executing, > even after i close the command window, folders with my go files are still

Re: [go-nuts] what's the max length of an identifier

2017-04-09 Thread Rob Pike
To answer your question about creat, ken named it. Why does no one ask about aretu? -rob On Sun, Apr 9, 2017 at 3:48 PM, Rob Pike wrote: > It was 6, a holdover from FORTRAN because it used (in effect) the > FORTRAN linker. That number was just the number that of initial bytes that > had to be

Re: [go-nuts] what's the max length of an identifier

2017-04-09 Thread Rob Pike
It was 6, a holdover from FORTRAN because it used (in effect) the FORTRAN linker. That number was just the number that of initial bytes that had to be unique. x12345 and x123456 were the same identifier. Case might be ignored too. -rob On Sun, Apr 9, 2017 at 1:43 PM, Tom Limoncelli wrote: >

Re: [go-nuts] better way to document go lib ?

2017-04-09 Thread mhhcbon
Please, see this other example https://github.com/golang/tools/blob/master/go/loader/doc.go For that case, I hope in future something merges all the good stuff existing in go practices mixed with the simplicity and freedom of MD, and some proper helpers like i did here https://github.com/mh-cbon/

Re: [go-nuts] what's the max length of an identifier

2017-04-09 Thread Tom Limoncelli
Did the limit in C used to be 5 characters? That would explain "creat()". (That's a bit of trivia I've always wondered about) Tom On Wed, Apr 5, 2017 at 9:16 AM, Ian Lance Taylor wrote: > On Wed, Apr 5, 2017 at 3:57 AM, Jan Mercl <0xj...@gmail.com> wrote: >> On Wed, Apr 5, 2017 at 12:23 PM w

Re: [go-nuts] Trouble with HTTP PUT, and 100-continue

2017-04-09 Thread David Peacock
Thanks Brad; I'll take a look and see how to plug this in. On Sun, Apr 9, 2017 at 11:39 AM, Brad Fitzpatrick wrote: > See https://golang.org/pkg/net/http/#Transport.ExpectContinueTimeout > > The Go http package deals with 100 continue automatically. > > On Sat, Apr 8, 2017 at 3:24 PM, David Peac

Re: [go-nuts] better way to document go lib ?

2017-04-09 Thread Rob Pike
Go source code is meant to be read by humans and merely processed by machines. It should not be made harder for humans to read in order to make it easier for machines to read. If the godoc presentation needs improving, that's a fair point, but it's a machine's job to do a better job with human inp

Re: [go-nuts] better way to document go lib ?

2017-04-09 Thread mhhcbon
That s a good question. I could also reverse it, why godoc then ? >.< This said, I don t feel like it is so difficult to read. I believe the fact it is a markup language opens capabilities which are not available to raw comments. One middle way, might be to have a

Re: [go-nuts] Re: Golang , Certification authorities and BlockChain

2017-04-09 Thread Péter Szilágyi
You might want to look into Ethereum if you're trying to build blockchain stuff with Go. The Go client represents the current network majority and we're really striving to make it reusable as a library. Pop over to out gitter channel

Re: [go-nuts] Go HTTP/2 behind HAProxy TLS Question

2017-04-09 Thread Brad Fitzpatrick
Why do you need HTTP/2 between HAProxy and Go? That's a low latency connection. Are you doing push promise frames? Do those even transit HAProxy? On Fri, Apr 7, 2017 at 9:56 AM, wrote: > Hello! > > I'm quite new to web development and currently bumped into a problem I > can't wrap my head aro

Re: [go-nuts] Trouble with HTTP PUT, and 100-continue

2017-04-09 Thread Brad Fitzpatrick
See https://golang.org/pkg/net/http/#Transport.ExpectContinueTimeout The Go http package deals with 100 continue automatically. On Sat, Apr 8, 2017 at 3:24 PM, David Peacock wrote: > Hi all, > > I'm having difficulty implementing file upload using > http.NewRequest("PUT"). As shown in my use c

Re: [go-nuts] better way to document go lib ?

2017-04-09 Thread Jan Mercl
On Sun, Apr 9, 2017 at 1:21 PM wrote: > TLDR: Who wants to read markup language instead of normal, easy for human readable comments? -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving ema

[go-nuts] better way to document go lib ?

2017-04-09 Thread mhhcbon
Hi, TLDR: #doc ## Let s use md formatting via a whole new token in my doc __because__ in bold it is clearer it is important. Please take care to ```go useProperMdSyntax(ok) `` # func mysuperFunc() {} This email to talk about the documentation of go code, and gocode. Let me say first, i m ve