Re: [go-nuts] Why golang garbage-collector not implement Generational and Compact gc?

2017-05-18 Thread Sokolov Yura
To perform concurrent compaction/copying you should use Read Barriers. Read barrier is very expensive. It is less expensive in Java, cause pointers always looks into beginning of allocation (so redirect pointer is in known position). But it will be very expensive in Go cause of interior

Re: [go-nuts] Freebsd - Raspberry and Go from Source

2017-05-18 Thread Dave Cheney
It looks like FreeBSD on the Odroid does not support floating point. I believe at some point floating point support was added to the broadcom chip in the raspberry pi 2, but I haven't tried to use freebsd on any arm platform since the previous reply to this thread in 2015. On Thu, May 18, 2017 at

Re: [go-nuts] Compiling Go plugins with playground/NACL/GAE-like isolation

2017-05-18 Thread Aldrin Leal
what if go-plugin + docker? I think you could block networking altogether. Wiring those two wouldn't be a problem if you use things such as go-dockerclient -- -- Aldrin Leal, / http://about.me/aldrinleal On Wed, May 17, 2017 at 11:55 PM, voidlogic

[go-nuts] multiple commands in one ssh session

2017-05-18 Thread Dominik Link
Hi I would like to run multiple ssh commands within the same 'context' as if it would be using putty when connecting to a cisco device. Here are two examples of what i would need to send to the device: 1) Setting the terminal width to 0 in order to remove the line breaks. This makes

Re: [go-nuts] Freebsd - Raspberry and Go from Source

2017-05-18 Thread Low Eel
Actualy the secret is this GOARM=5 . Seems it impacts also on the error about struct_passwd, somehow. I had GOARM set to 6 because I took the settings from a linux machine (running on ODROID XU4) and it was failing like that. About compilation times of 3 hours, they depend mostly by disk

[go-nuts] Re: Runtime code generation?

2017-05-18 Thread Max
Hello, as others pointed out, a possibility is to use an interpreter. Maybe it's not what the original author wanted - execution speed may be a problem - but definitely possible. The interpreter https://github.com/cosmos72/gomacro is fairly complete (some features are still missing, for

[go-nuts] Re: what can I do with this 'workspace' Google have given me?

2017-05-18 Thread peterGo
Sam, Your problems stem from this change: Go 1.8 Release Notes Default GOPATH https://golang.org/doc/go1.8#gopath The GOPATH environment variable (https://golang.org/cmd/go/#hdr-GOPATH_environment_variable) now has a default value if it is unset. It defaults to $HOME/go on Unix and

Re: [go-nuts] Re: [ANN] gohls, a downloader for HTTP Live Streaming (HLS) streams

2017-05-18 Thread Kevin Zhang
Yes, assuming the source is a normal HLS playlist, the TS file should be playable. Perhaps your source is encrypted or non-standard in some way? On 5/18/2017 10:27:56 AM, schwabenbu...@gmail.com wrote: The downloaded file should be a .TS-file right? my VLC player is

[go-nuts] Re: what can I do with this 'workspace' Google have given me?

2017-05-18 Thread Diego Medina
Hi, Having a default "go" folder inside your home directory is a recent change (I believe it was introduced in 1.8) The mac installer may do extra steps, but my guess is that you started using Go before you set GOPATH to the dropbox folder, a simple go get would create the $HOME/go folder

[go-nuts] handling connection in a single pool

2017-05-18 Thread matteo galeotti
Hi, I just wondering what is a bullet-proof method to handle this situation: I have several browsers that connects to the server via websockets (json messages) and i want to process all of them in a single thread. I made this little demo for test but i

[go-nuts] Re: [ANN] gohls, a downloader for HTTP Live Streaming (HLS) streams

2017-05-18 Thread schwabenbulli
The downloaded file should be a .TS-file right? my VLC player is not able to play the video. Version 2.2.4 No other player is able to play it. Am Donnerstag, 6. März 2014 20:11:51 UTC+1 schrieb white...@gmail.com: > > I'd like to announce the release of gohls, a small tool I wrote in Golang >

[go-nuts] what can I do with this 'workspace' Google have given me?

2017-05-18 Thread manna4881
I’m new to GO and fairly new to the command line on Mac (but having a lot of fun learning :-) ) Apologies in advance if this has been covered elsewhere. I’ve tried searching but not found the answer. I’ve installed GO on two separate Macs, and started learning GO, written a couple of

Aw: Re: [go-nuts] Freebsd - Raspberry and Go from Source

2017-05-18 Thread loweel
I don't know about the C1, just because I only own a Odroid XU4. Not sure if there will be a FreeBSD port of it, at all. What I have are 1 Raspi 1, 2 raspi 2 and one ODROID XU4. Actually Freebsd runs only on one Raspi2, and I confirm putting the GOARM to 5 was allowing the bootstrap to

[go-nuts] Compiler: tools to develop new target for Golang?

2017-05-18 Thread alexanderaowen
I want to develop a new target for Go and I want to know what sort of support Go has to facilitate this. I know I could use some functionality that's provided in in gotypes . I can use Gotypes to generate AST and typecheck it, but before

Re: Re: [go-nuts] Freebsd - Raspberry and Go from Source

2017-05-18 Thread Dave Cheney
On Thursday, 18 May 2017 23:23:05 UTC+10, Low Eel wrote: > > > I don't know about the C1, just because I only own a Odroid XU4. Not sure > if there will be a FreeBSD port > of it, at all. What I have are 1 Raspi 1, 2 raspi 2 and one ODROID XU4. > > Actually Freebsd runs only on one Raspi2,

[go-nuts] Re: All the Go project history, live in RAM

2017-05-18 Thread Dmitri Shuralyov
> > The data is generally under 1 second behind reality, thanks to the > webhook+incoming-SMTP server we run now at https://pubsubhelper.golang.org/ > to get updates from GitHub & Gerrit. > Just a quick implementation question related to that. I understand you use Webhooks to get data from

[go-nuts] Re: [golang-dev] Re: All the Go project history, live in RAM

2017-05-18 Thread Brad Fitzpatrick
On Thu, May 18, 2017 at 12:57 PM, Dmitri Shuralyov wrote: > The data is generally under 1 second behind reality, thanks to the >> webhook+incoming-SMTP server we run now at https://pubsubhelper.golang. >> org/ to get updates from GitHub & Gerrit. >> > > Just a quick

[go-nuts] Re: what can I do with this 'workspace' Google have given me?

2017-05-18 Thread Sam Pollard
Thank You, both, Diego and Peter. Your help is much appreciated. So, basically, it's a change associated with 1.8.1, which explains why videos/tutorials weren't mentioning it. Will teach me to watch old tutorials. :-) My version is 1.8.1, GOPATH is /Users/sam/Dropbox/goworkspace GOROOT is

[go-nuts] Re: All the Go project history, live in RAM

2017-05-18 Thread Dmitri Shuralyov
Another small question. https://godoc.org/golang.org/x/build/maintner#GerritProject.Server says: > Server returns the Gerrit server, such as "go.googlesource.com". I thought that go.googlesource.com was a Gitiles server, and go-review.googlesource.com is where the Gerrit server is (according

[go-nuts] Re: [golang-dev] Re: All the Go project history, live in RAM

2017-05-18 Thread Brad Fitzpatrick
On Thu, May 18, 2017 at 1:38 PM, Dmitri Shuralyov wrote: > Another small question. > > https://godoc.org/golang.org/x/build/maintner#GerritProject.Server says: > > > Server returns the Gerrit server, such as "go.googlesource.com". > > I thought that go.googlesource.com was a

[go-nuts] Equivalent of C++ std::find_first_not_of for bytes package

2017-05-18 Thread aurelien . rainone
I'm looking for an assembly optimized function in the bytes package to perform the same thing than C++ std::find_first_not_of function, that is, iterating over a slice of bytes and stopping at the first byte that is not in the byte i'm looking for, or not in the set of bytes i'm looking for. I

Re: [go-nuts] Why golang garbage-collector not implement Generational and Compact gc?

2017-05-18 Thread wanghc
My feeling is a per-P bump-pointer allocation space can fit into the current go's GMP model for faster allocation than the current allocation path with span calculation and free slot search. But anyway the fragmentation is a big pain. I'm not sure the non-moving property of go GC is the design

[go-nuts] Re: go build -i and rebuilding a library

2017-05-18 Thread Helin Wang
Just to want let people who reached this post (#1 search result) know (like me), I think this problem has been addressed (since 2015 I think), more documentation here: https://github.com/golang/go/blob/c20e54533ea49ca68640d9a59c9ed935b27da8e5/src/cmd/go/internal/load/pkg.go#L1183 Helin On

Re: [go-nuts] adding context.Context to new code

2017-05-18 Thread Nazri Ramliy
On Wed, May 17, 2017 at 3:55 PM, Nazri Ramliy wrote: > I'm about to embark on doing the same, and my first pit stop is at > using the callgraph to generate the caller-callee data but stumbled > upon this error while trying out the example given by the "callgraph" > command

[go-nuts] Re: Golang map is getting corrupted with Memory mapped files

2017-05-18 Thread Dragos Harabor
If you are just looking to use a k/v store that's mmapped, take a look at BoltDB: https://github.com/boltdb/bolt If you are looking to learn how it's done and play with it, then the BoltDB source code may help you. On Wednesday, May 17, 2017 at 5:49:55 AM UTC-7, chaitanya reddy wrote: > > Hi

Re: [go-nuts] Compiling Go plugins with playground/NACL/GAE-like isolation

2017-05-18 Thread voidlogic
As I mentioned before go-plugin uses RPC/IPC which is much slower than shared/dynamically linked libraries So if you didn't have a high performance use case, that would probably work. On Thursday, May 18, 2017 at 3:25:49 AM UTC-7, Aldrin Leal wrote: > > what if go-plugin + docker? I think