[go-nuts] Looking for info on how Go package developers handle breaking changes with other packages

2016-08-10 Thread 'Ingo Oeser' via golang-nuts
Please note that there is no concept central repository of Go code. Those questions in the survey are very confusing for a Go developer. Maybe you could exclude those questions for Go developers. Otherwise you would need to ignore the results for Go developers here in your later analysis. -- Y

[go-nuts] Re: Who wants to use Go to process your camera's raw files?

2016-08-10 Thread Jonathan Pittman
For some reason I did not get the last 3 updates until this one. Weird. So, I have looked over a number of packages that parse tiff files. While, at the most basic level, they all have to do the same sort of things, each one also approaches the situation a little differently. And more so, the

Re: [go-nuts] compressing long list of short strings

2016-08-10 Thread Dan Kortschak
This looks like something that is solved for genomics data. If you are OK with decompressing m strings where m << n then the BGZF addition to gzip would work for you. In brief, BGZF blocks gzip into 64kb chunks which can be indexed. The spec for BGZF is here [1] (section 4 from page 11 on) and the

Re: [go-nuts] compressing long list of short strings

2016-08-10 Thread Alex Flint
There are around 2M strings, and their total size is ~6 GB, so an average of 3k each. I actually looked briefly at Go's compress/flate to see whether something like what you're describing is possible without writing my own compressor but I couldn't see any obvious way to get at the underlying comp

[go-nuts] http2 questions

2016-08-10 Thread Jeffrey Smith
I have been playing around with http2 in the latetst 1.7RC today and had a few questions I still had to import "golang.org/x/net/http2" and then set http2.ConfigureTransport to actually use http2 when creating a client. I was under the impression this was fixed or was I wrong? https://github.

Re: [go-nuts] compressing long list of short strings

2016-08-10 Thread Ian Lance Taylor
On Wed, Aug 10, 2016 at 3:27 PM, Alex Flint wrote: > > I have long list of short strings that I want to compress, but I want to be > able to decompress an arbitrary string in the list at any time without > decompressing the entire list. > > I know the list ahead of time and it doesn't matter how m

[go-nuts] compressing long list of short strings

2016-08-10 Thread Alex Flint
I have long list of short strings that I want to compress, but I want to be able to decompress an arbitrary string in the list at any time without decompressing the entire list. I know the list ahead of time and it doesn't matter how much preprocessing time is involved. It is also fine if there is

[go-nuts] Re: Who wants to use Go to process your camera's raw files?

2016-08-10 Thread jonathan . gaillard
I would be interested in seeing this happen. On Tuesday, July 26, 2016 at 7:36:31 PM UTC-7, Jonathan Pittman wrote: > > Well me too! I am looking to see what level of interest there is in the > Go community to see this happen. I am also looking for people who are > interested in working on thi

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

2016-08-10 Thread Rob Pike
P.S. The version I first saw was of course not in Go, it was in Newsqueak, but the first complete program ever written in Go (not first executed) was the prime sieve in the first draft of the language specification. -rob On Thu, Aug 11, 2016 at 5:56 AM, Rob Pike wrote: > It's not really mine. T

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

2016-08-10 Thread Rob Pike
It's not really mine. Tom Cargill first showed it to me, but it started with Doug McIlroy and I think it originates from an idea by David Gries. -rob On Thu, Aug 11, 2016 at 2:27 AM, Paul Rosenzweig wrote: > I always liked Rob Pike's concurrent prime seive: https://play.golang.org > /p/9U22NfrX

[go-nuts] Looking for info on how Go package developers handle breaking changes with other packages

2016-08-10 Thread Chris Bogart
Hi, I'm looking for some help from developers who write Go packages. My research group is interested in the different choices new package managers and repositories are making when designing their ecosystems. Platforms like Node.js/NPM, Google's go, and Rust/Cargo are making somewhat different

[go-nuts] Re: Who wants to use Go to process your camera's raw files?

2016-08-10 Thread Robert Carlsen
FWIW https://github.com/rwcarlsen/goexif (my neglected of late project) has some rudimentary and (somewhat) generic tiff parsing capability. I'm not volunteering for anything - just thought it might be a useful reference for someone working on this sort of thing. On Thursday, July 28, 2016 at

[go-nuts] Re: convert a given time in one Timezone to other TimeZone

2016-08-10 Thread peterGo
LV, "Each Time has associated with it a Location, consulted when computing the presentation form of the time, such as in the Format, Hour, and Year methods. The methods Local, UTC, and In return a Time with a specific location. Changing the location in this way changes only the presentation; i

Re: [go-nuts] convert a given time in one Timezone to other TimeZone

2016-08-10 Thread 'Axel Wagner' via golang-nuts
https://play.golang.org/p/l_bu62zuLm On Wed, Aug 10, 2016 at 6:55 PM, Matthew Zimmerman wrote: > I don't understand your question, but maybe this helps? > > https://github.com/mzimmerman/tt > > On Wed, Aug 10, 2016 at 9:50 AM wrote: > >> I was trying to find the solution to get a given time in

[go-nuts] msan failures in Go 1.7 Release Candidate 6

2016-08-10 Thread Ian Lance Taylor
On Wed, Aug 10, 2016 at 7:00 AM, David Marceau wrote: > when I install from sources straight from git checkout go1.7rc6 > go1.7rc6 FAILS on Asus Z97-A-USB31 motherboard with intel i5-4590, > "../misc/cgo/testsanitizers" > it core dumps and doesn't give me the success message to start using it as >

[go-nuts] Returning **C.char works with python not java jni

2016-08-10 Thread Barca
Hello, I'm trying to figure out how to return a two dimensional string in Go (cgo) and be able to access this result in python and java jni. I followed the following to make the unsafe pointers. The code wor

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

2016-08-10 Thread Paul Rosenzweig
I always liked Rob Pike's concurrent prime seive: https://play.golang.org/p/9U22NfrXeq On Wed, Aug 10, 2016 at 3:53 AM, wrote: > Hi, > > I'm giving a talk at work introducing Go and I'm looking for small > examples to show Go's potential. For example, the following program > demonstrates a bare-

Re: [go-nuts] convert a given time in one Timezone to other TimeZone

2016-08-10 Thread Matthew Zimmerman
I don't understand your question, but maybe this helps? https://github.com/mzimmerman/tt On Wed, Aug 10, 2016 at 9:50 AM wrote: > I was trying to find the solution to get a given time in timezone1 using > the time in timezone2. > > Have solution to get the time in other timezone for current tim

[go-nuts] [ANN] Leader Election library using Zookeeper

2016-08-10 Thread Rich Youngkin
Hi all, go-leaderelection ( https://github.com/Comcast/go-leaderelection) provides the capability for a set of distributed processes to compete for leadership for a shared resource. It is implemented using Zookeeper for the underlying support. It p

[go-nuts] Re: Go 1.7 Release Candidate 6 is released

2016-08-10 Thread David Marceau
when I install from sources straight from git checkout go1.7rc6 go1.7rc6 FAILS on Asus Z97-A-USB31 motherboard with intel i5-4590, "../misc/cgo/testsanitizers" it core dumps and doesn't give me the success message to start using it as the previous go1.7rc[1-4] did. signal: segmentation fault (cor

[go-nuts] convert a given time in one Timezone to other TimeZone

2016-08-10 Thread laxman . ece
I was trying to find the solution to get a given time in timezone1 using the time in timezone2. Have solution to get the time in other timezone for current time but did not found a way to get time for a given time. Thanks L V -- You received this message because you are subscribed to the Goo

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

2016-08-10 Thread Val
Iterations over slices, maps, channels are very cool, usually straight to the point : func main() { for _, a := range []int{6, 4} { for _, b := range []int{2, 3} { for fname, f := range map[string]func(int, int) int{ "plus": func(x, y int) int { return x +

[go-nuts] Re: [ANN] Gomail v2: sending emails faster

2016-08-10 Thread matic
GitHub page says "Automatic encoding of special characters". Does that mean if I use output from (user provided input to a golang.org/pkg/text/template) as body input to gomail, gomail will properly escape any characters that could be used to insert SMTP headers or do anything else that could b

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

2016-08-10 Thread sphilippov
Easy parallelization and concurrency: package main import ( "runtime" ) func FoldParallel(data []float64, initialValue float64, op func(float64, float64) float64) float64 { sliceSize := len(data) / runtime.NumCPU() results := make(chan float64, runtime.NumCPU()) numResults :=

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

2016-08-10 Thread Anmol Sethi
You can shorten that by 6 lines package main import "net/http" func main() { http.ListenAndServe(":8080", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello World!")) })) } A bare bones web server in just 9 lines! > On Aug 10,

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

2016-08-10 Thread gary . willoughby
Hi, I'm giving a talk at work introducing Go and I'm looking for small examples to show Go's potential. For example, the following program demonstrates a bare-bones webserver in 13 lines: import ( "fmt" "net/http" ) func home(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(