[go-nuts] Re: Small complete examples which show the power of Go?

2016-08-15 Thread anupam . kapoor
, | I always liked Rob Pike's concurrent prime seive: | https://play.golang.org/p/9U22NfrXeq ` i think what you are looking for is an elegant paper by doug-mcllroy called "squinting at power series" which bring the power of channels etc to stream processing... -- kind regards anupam --

[go-nuts] Proposal: radix sort in /x/exp

2016-08-15 Thread Randall Farmer
Hi! I'd like to propose adding an /x/exp package with in-place radix sort. Maybe someday something like it gets into stdlib and backs sort.Ints and company (great!), maybe not (works for me, just the review's worth it). I'm posting here rather than opening a GitHub issue because earlier this year

[go-nuts] How to wait for http.ListenAndServeTLS()

2016-08-15 Thread Dave Cheney
Alternatively, make a connection to your server locally to check it is listening, the fire off the browser. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[go-nuts] How to wait for http.ListenAndServeTLS()

2016-08-15 Thread Dave Cheney
Listen and serve is just a wrapper around serve with a provided listener. Create the listener then pass it to serve, at that point you know the socket is open and will accept connections into its backlog. -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] goroutine 17 [syscall, 214 minutes, locked to thread]

2016-08-15 Thread Lime Shi
And which bulitin package will call cgo or runtime.LockOSThread. In my project, I used packages net, io, sync. 在 2016年8月16日星期二 UTC+8上午1:15:29,Ian Lance Taylor写道: > > On Mon, Aug 15, 2016 at 1:21 AM, > wrote: > > > > In goroutine stack dump there is a dead lock. > > > >

Re: [go-nuts] Go 1.7 is released

2016-08-15 Thread Chris Broadfoot
Thanks, it has been added here: https://golang.org/project/ On Mon, Aug 15, 2016 at 5:25 PM, chai2010 wrote: > and http://127.0.0.1:6060/project/ #release history page have no Go1.7 > release notes. > > 2016-08-16 8:20 GMT+08:00 Chris Broadfoot : > >>

Re: [go-nuts] Go 1.7 is released

2016-08-15 Thread chai2010
and http://127.0.0.1:6060/project/ #release history page have no Go1.7 release notes. 2016-08-16 8:20 GMT+08:00 Chris Broadfoot : > Thanks for flagging it. I'm re-building the zip file and it should be > available at golang.org/dl soon. > > On Mon, Aug 15, 2016 at 5:03 PM,

Re: [go-nuts] Go 1.7 is released

2016-08-15 Thread chai2010
go1.7.windows-amd64.zip missing. 2016-08-16 7:28 GMT+08:00 Chris Broadfoot : > Hello gophers, > > We just released Go 1.7. > > You can read the announcement blog post here: > https://blog.golang.org/go1.7 > > You can download binary and source distributions from our download

Re: [go-nuts] Meet runtime.typedslicecopy: nosplit stack overflow error when cross platform compiling.

2016-08-15 Thread brainman
On Saturday, 13 August 2016 12:52:23 UTC+10, Dorival Pedroso wrote: > > Any ideas? > Maybe it is issue https://github.com/golang/go/issues/16180 ? Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Go 1.7 is released

2016-08-15 Thread Chris Broadfoot
Hello gophers, We just released Go 1.7. You can read the announcement blog post here: https://blog.golang.org/go1.7 You can download binary and source distributions from our download page: https://golang.org/dl/ To compile from source using a Git checkout, update to the release with "git

[go-nuts] Re: Increase speed of repeated builds

2016-08-15 Thread Dave Cheney
With that many deps, the linking numbers could be expected, Go 1.7 improves this significantly. I cannot explain the compilation time for the package. I recommend waiting til the end of the day and upgrading to Go 1.7 as it us unlikely that any fix for this will be backported to Go1.6.x On

[go-nuts] Re: Increase speed of repeated builds

2016-08-15 Thread James Pettyjohn
No, it's some hundreds of strings across that whole package, none longer than 100 characters. No giant static XML strings or the like. Thinking it might be telling to see dependency information I ran into (your) articles on golang dependency tools

Re: [go-nuts] Re: Ideas for a Go interpeter, feedback requested

2016-08-15 Thread Rob Pike
Sounds a lot like the Newsqueak implementation. https://swtch.com/~rsc/thread/newsquimpl.pdf On Tue, Aug 16, 2016 at 6:33 AM, Lars Tørnes Hansen wrote: > My thought about a Go interrpreter. > > I had thought of making a Go transpiler using either the D programming > language,

[go-nuts] Re: Increase speed of repeated builds

2016-08-15 Thread Dave Cheney
That looks like the case. Do you include a large amount of static data in the site_www2 package? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [go-nuts] runtime.Caller ->

2016-08-15 Thread Ian Lance Taylor
On Mon, Aug 15, 2016 at 10:51 AM, Tim Hockin wrote: > OK, is there ANY heuristic I can rely on find the "real" call frame? I don't know. Sorry. As I said earlier, I don't have a good answer here. You should open an issue for this. For some reason it has not been a

[go-nuts] [ANN] gopkg.in/warnings.v0 -- error handling with non-fatal errors (warnings)

2016-08-15 Thread speter . go1
Package warnings implements error handling with non-fatal errors (warnings). import path: "gopkg.in/warnings.v0" package docs: https://godoc.org/gopkg.in/warnings.v0 issues:https://github.com/go-warnings/warnings/issues pull requests: https://github.com/go-warnings/warnings/pulls A

Re: [go-nuts] runtime.Caller ->

2016-08-15 Thread 'Tim Hockin' via golang-nuts
OK, is there ANY heuristic I can rely on find the "real" call frame? On Mon, Aug 15, 2016 at 10:17 AM, Ian Lance Taylor wrote: > On Sun, Aug 14, 2016 at 10:07 PM, Tim Hockin wrote: >> Can I rely on "" not changing? > > I'm sorry, that's a hard question to

Re: [go-nuts] runtime.Caller ->

2016-08-15 Thread Ian Lance Taylor
On Sun, Aug 14, 2016 at 10:07 PM, Tim Hockin wrote: > Can I rely on "" not changing? I'm sorry, that's a hard question to answer, because other compilers do not use that string. There are no plans to change that string for the gc toolchain. Ian > On Sun, Aug 14, 2016 at

Re: [go-nuts] goroutine 17 [syscall, 214 minutes, locked to thread]

2016-08-15 Thread Ian Lance Taylor
On Mon, Aug 15, 2016 at 1:21 AM, wrote: > > In goroutine stack dump there is a dead lock. > > goroutine 17 [syscall, 214 minutes, locked to thread]: > runtime.goexit() > /root/go/src/runtime/asm_amd64.s:1998 +0x1 > > > No more information, just this. I don't know how to

[go-nuts] Re: Wxwidgets , Best GUI package for Golang!

2016-08-15 Thread dfab1954
Anyone have experience with this wxGo? If so, would you recommend for a commercial application? On Sunday, August 14, 2016 at 3:06:38 PM UTC-4, unx...@gmail.com wrote: > https://github.com/dontpanic92/wxGo > > > -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] map values visibility when the map is populated in a goroutine yet used in another ?

2016-08-15 Thread atd...@gmail.com
Which I should have read more carefully. Thank you! On Monday, August 15, 2016 at 5:57:13 PM UTC+2, Jan Mercl wrote: > > On Mon, Aug 15, 2016 at 5:28 PM atd...@gmail.com > wrote: > > > Is there an happen/before edge between spawning a goroutine and the map > operations ? >

Re: [go-nuts] map values visibility when the map is populated in a goroutine yet used in another ?

2016-08-15 Thread Jan Mercl
On Mon, Aug 15, 2016 at 5:28 PM atd...@gmail.com wrote: > Is there an happen/before edge between spawning a goroutine and the map operations ? Yes: https://golang.org/ref/mem#tmp_5 -- -j -- You received this message because you are subscribed to the Google Groups

[go-nuts] Re: goroutine 17 [syscall, 214 minutes, locked to thread]

2016-08-15 Thread Lime Shi
The go version is 1.6, and the full log is here, https://github.com/shiyanhui/dht/issues/6#issuecomment-239743849 在 2016年8月15日星期一 UTC+8下午11:01:35,Lime Shi写道: > > Hi, > > In goroutine stack dump there is a dead lock. > > goroutine 17 [syscall, 214 minutes, locked to thread]: > runtime.goexit()

[go-nuts] map values visibility when the map is populated in a goroutine yet used in another ?

2016-08-15 Thread atd...@gmail.com
Let's say I have a map in one goroutine that I populate. Then I make a copy of this map by ranging over its keys/values and pass the variable holding the map copy to another goroutine. Will the values in the copy be necessary visible to the last goroutine? Is there an happen/before edge

[go-nuts] goroutine 17 [syscall, 214 minutes, locked to thread]

2016-08-15 Thread lime . syh
Hi, In goroutine stack dump there is a dead lock. goroutine 17 [syscall, 214 minutes, locked to thread]: runtime.goexit() /root/go/src/runtime/asm_amd64.s:1998 +0x1 No more information, just this. I don't know how to debug it. Somebody can help me? -- You received this message because

[go-nuts] Using go tool pprof with a header

2016-08-15 Thread Victor Blomqvist
My problem is this: I have a go web app where I want to use the net/pprof package. The application itself is protected by a Apache server which keeps session, and sets a authorized header with the permissions the user should have. Then the go code will read the http header and depending on its

[go-nuts] Re: const values of any types can't be compared to interface{} values?

2016-08-15 Thread adonovan via golang-nuts
On Monday, 1 August 2016 17:53:59 UTC+1, T L wrote: > > > ex: > > package main >> >> func main() { >> // error: illegal constant expression: *int == interface {} >> _ = (*int)(nil) == interface{}(nil) >> } > > This is a compiler bug (https://github.com/golang/go/issues/16702). Thanks

[go-nuts] Re: golang.org/x/tools/go/loader: file names of parsed *ast.File

2016-08-15 Thread adonovan via golang-nuts
On Saturday, 13 August 2016 22:27:42 UTC+1, Paul Jolly wrote: > > On Saturday, 13 August 2016 21:58:37 UTC+1, Paul Jolly wrote: >> >> Am I missing something obvious here? >> > > Please excuse the reply to self, but I have discovered what I was missing. > > For the sake of completeness, here is how

[go-nuts] Re: Wxwidgets , Best GUI package for Golang!

2016-08-15 Thread Peter Howard
This shows how to make a standalone gui program with Go that uses html5 and Bootstrap css, but with all the resources compiled into the Go executable. https://github.com/peterhoward42/godesktopgui -- You received this message because you are subscribed to the Google Groups "golang-nuts"