Re: [go-nuts] Writing a non-blocking thread-safe buffer

2017-04-10 Thread Eno Compton
Thanks for all your responses, folks. I'm curious about swapping to a single channel and will try that. On Friday, April 7, 2017 at 4:37:10 PM UTC-6, John Souvestre wrote: > > A few ideas… > > > > Instead of using two channels, use just one. Let the writer(s) use a > “select” to do the write,

Re: [go-nuts] Strange blocking in allocations during GC

2017-04-10 Thread Ian Lance Taylor
[ moving to golang-dev ] On Sun, Apr 9, 2017 at 12:09 PM, Alexey Borzenkov wrote: > 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. Thi

Re: [go-nuts] Write a program for Linux in Go lang which can run any command (of coder's choice) on another machine (privately or publicly accessible) and prints its output.

2017-04-10 Thread Justin Israel
On Tue, Apr 11, 2017 at 10:42 AM Owais Hashmi wrote: > Write a program for Linux in Go lang which can run any command (of coder's > choice) on another machine (privately or publicly accessible) and prints > its output. > Are you challenging the group, or are you asking a question? > > -- > You

[go-nuts] Write a program for Linux in Go lang which can run any command (of coder's choice) on another machine (privately or publicly accessible) and prints its output.

2017-04-10 Thread Owais Hashmi
Write a program for Linux in Go lang which can run any command (of coder's choice) on another machine (privately or publicly accessible) and prints its output. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and s

[go-nuts] why RES(in top command) change back to high level after GC release the memory to system?

2017-04-10 Thread Dave Cheney
Go programs can only inform the operating system that a page in memory is unused, no API exists to demand that the operating system take it back (save unmapping the memory). Operating systems frequently ignore the advice go programs give to it using the madvise(2) syscall, especially when they a

[go-nuts] why RES(in top command) change back to high level after GC release the memory to system?

2017-04-10 Thread liaotonglang
Hi, I just wrote a thrift rpc service and run performance testing on the programe. After stoping the test clients (2000 clients), RES (in top command) will reduce to 84M, while 240M when 2000 clients running. But after a few minutes, RES grows back to 240M, and the inuse memory still low in pp

[go-nuts] Failed to release memory to system?

2017-04-10 Thread liaotonglang
I just wrote a thrift rpc service and run performance testing on the programe. After stoping the test clients (2000 clients), RES (in top command) will reduce to 84M, while 240M when 2000 clients running. But after a few minutes, RES grows back to 240M, and the inuse memory still low in pprof.

Re: [go-nuts] Can the bit representation of a float64 silently change?

2017-04-10 Thread Michael Jones
It is not crazy in any way to use the special NaN payload--it was designed just for you. Dr. Kahan and others provided the broad set of NaNs in '754 for just this purpose, for example, to encode missing data values and N/A data values separately for statistical processing, or to allow great freedom

[go-nuts] Can the bit representation of a float64 silently change?

2017-04-10 Thread brian . brazil
Hi, I'm working on a feature for the Prometheus monitoring system that requires adding special entries in our database. Our values are float64, and I plan on taking advantage of the fact that there's 2^52-1 valid bit representations for NaN. So I'll choose one of those representations for an act

[go-nuts] facing issues while running chaincode locally using docker

2017-04-10 Thread arunhosamani93
i m getting below error while running learn-chaincode example on my local system please provide me the suitable solution for the mentioned error $ go build# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11exec: "gcc": executable file not found in %PATH% -- You received this messa

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

2017-04-10 Thread Rob Pike
No, it's much older than that. https://en.wikipedia.org/wiki/Lions%27_Commentary_on_UNIX_6th_Edition,_with_Source_Code -rob On Mon, Apr 10, 2017 at 7:23 AM, Konstantin Khomoutov < flatw...@users.sourceforge.net> wrote: > On Mon, 10 Apr 2017 09:04:39 -0500 > Sam Whited wrote: > > > On Sun, Apr

[go-nuts] Panic on Trace

2017-04-10 Thread ashwin
Encountered this stack trace: ``` panic: runtime error: index out of range goroutine 222571 [running]: golang.org/x/net/trace.(*trace).addEvent(0xc4216b2820, 0xb7e9a0, 0xc42268f9e0, 0xc4243f) /home/terark/go/src/golang.org/x/net/trace/trace.go:769 +0x65f golang.org/x/net/trace.(*trace).LazyP

Re: [go-nuts] Possible to generate BIOS binaries?

2017-04-10 Thread Konstantin Khomoutov
On Mon, 10 Apr 2017 07:25:55 -0700 (PDT) andrew.penneba...@gmail.com wrote: > Can Go code target BIOS environments, or perhaps Go assembler target > BIOS? Which GOOS, GOARCH settings should be used? Unlikely. IIRC, BIOS code works in the so-called "real" mode of a x86-compatible CPU [1]. That i

[go-nuts] Possible to generate BIOS binaries?

2017-04-10 Thread andrew . pennebaker
Can Go code target BIOS environments, or perhaps Go assembler target BIOS? Which GOOS, GOARCH settings should be used? -- 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 emai

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

2017-04-10 Thread Konstantin Khomoutov
On Mon, 10 Apr 2017 09:04:39 -0500 Sam Whited wrote: > On Sun, Apr 9, 2017 at 5:49 PM, Rob Pike wrote: > > To answer your question about creat, ken named it. Why does no one > > ask about aretu? > > I'll bite: what's up with aretu? Jugding from Rob's involvement with Plan 9, I googled and foun

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

2017-04-10 Thread Sam Whited
On Sun, Apr 9, 2017 at 5:49 PM, Rob Pike wrote: > To answer your question about creat, ken named it. Why does no one ask about > aretu? I'll bite: what's up with aretu? —Sam -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from t