[go-nuts] Re: How do i create a fake drive that shows up in windows explorer?

2016-07-31 Thread danilolr
Dokan has a go bind : https://godoc.org/github.com/keybase/kbfs/dokan sexta-feira, 29 de Julho de 2016 às 02:43:50 UTC-3, Tamás Gulácsi escreveu: > > I'd write it as a FUSE fs, with https://bazil.org/fuse/, then adapt it to > Windows with https://dokan-dev.github.io/ . -- You received this

[go-nuts] [ANN] Psyringe: a concurrent dependency injector

2016-07-31 Thread Sam Salisbury
Hi Gophers, I would love some feedback on this automatically-concurrent dependency injector I wrote: https://github.com/samsalisbury/psyringe Its design stemmed from the needs of a CLI app I am writing which has a lot of external interrelated

[go-nuts] Not sure how to properly set up an UDP Broadcast connection

2016-07-31 Thread Thanh Ngo
Hi, I guess I should ask a question here, since it is, well, a language specific discussion group. I don't know whether I fully understood UDP protocol fully though. I got a project that requires me to maintain a reliable connection on top of UDP/IP protocol. So I used Go for the project.

Re: [go-nuts] How Go GC perform with 128GB+ heap

2016-07-31 Thread Konstantin Shaposhnikov
Even if STW pauses are under 10ms they are not the only source of latency introduced by GC (see for example https://github.com/golang/go/issues/15847, https://github.com/golang/go/issues/16293, https://github.com/golang/go/issues/16432). Some of these issues will be addressed in Go 1.7,

Re: [go-nuts] How Go GC perform with 128GB+ heap

2016-07-31 Thread Brad Fitzpatrick
On Sun, Jul 31, 2016 at 9:13 AM, Jan Mercl <0xj...@gmail.com> wrote: > > On Sun, Jul 31, 2016 at 5:44 PM Brad Fitzpatrick > wrote: > > > You should expect at most 10ms pauses for large heaps as of Go 1.6, and > especially in Go 1.7. > > I'm assuming those 10ms are valid for

Re: [go-nuts] cgo: undefined reference to `stdout'

2016-07-31 Thread andrey mirtchovski
this is bug 10715: https://github.com/golang/go/issues/10715 a more idiomatic solution is available here: https://github.com/golang/go/blob/master/misc/cgo/stdio/stdio.go On Sun, Jul 31, 2016 at 1:22 AM, P Q wrote: > https://play.golang.org/p/4XZSmyRkZa > > I've got

Re: [go-nuts] Why does Golang disallow compare two interface values if their interface types are not in the superset/subset relation?

2016-07-31 Thread Brad Fitzpatrick
Interface values are comparable. If they have different concrete types, they compare to false. See https://golang.org/ref/spec#Comparison_operators On Sat, Jul 30, 2016 at 10:33 PM, T L wrote: > Is it essential? > > -- > You received this message because you are subscribed

Re: [go-nuts] How Go GC perform with 128GB+ heap

2016-07-31 Thread Brad Fitzpatrick
You should expect at most 10ms pauses for large heaps as of Go 1.6, and especially in Go 1.7. See https://talks.golang.org/2016/state-of-go.slide#37 (for Go 1.6; Go 1.7 is more consistently lower) On Sat, Jul 30, 2016 at 8:31 PM, wrote: > I'm starting a proof of

[go-nuts] cgo: undefined reference to `stdout'

2016-07-31 Thread P Q
https://play.golang.org/p/4XZSmyRkZa I've got error message when building the code as follows: C:\Users\Home\AppData\Local\Temp\go-build437760086\command-line-arguments\_obj\_cgo_main.o:_cgo_main.c:(.data+0x0): undefined reference to `stdout' collect2.exe: error: ld returned 1 exit status I

[go-nuts] How Go GC perform with 128GB+ heap

2016-07-31 Thread almeida . pedro . pf
I'm starting a proof of concept project to the company i work. The project is a http proxy with a smart layer of cache (Varnish, Nginx and others don't work because we have business rules on cache invalidation) for a very big microservice architecture (300+ services). We have 2x128GB machines

Re: [go-nuts] Will the real value allocated on heap copied when assigning an interface value to another?

2016-07-31 Thread Jesse McNelis
On Sun, Jul 31, 2016 at 5:10 PM, T L wrote: > By reading Ross Cox's article: http://research.swtch.com/interfaces > I got an interface value is represented by a struct as the following: > >> >> type interfaceStruct struct { >> value *_value >> inter *struct { >>

[go-nuts] Will the real value allocated on heap copied when assigning an interface value to another?

2016-07-31 Thread T L
By reading Ross Cox's article: http://research.swtch.com/interfaces I got an interface value is represented by a struct as the following: > type interfaceStruct struct { > value *_value > inter *struct { > typ _type > mhdr []imethod > } > } > where value is