How does performance compare to C++ for this release?
https://groups.google.com/forum/#!topic/golang-dev/2YRmu_AWz...
If you have one version where you have a good grasp of how it compares to C++, that should provide an answer, right?
21–30 of 131 posts
How does performance compare to C++ for this release?
https://groups.google.com/forum/#!topic/golang-dev/2YRmu_AWz...
If you have one version where you have a good grasp of how it compares to C++, that should provide an answer, right?
For those wondering, os/fsnotify was pushed back to 1.4
Random question, why would someone use gccgo over the standard go compiler?
I'm excited about sync.Pool: http://tip.golang.org/pkg/sync/#Pool There are a lot of cases where people write their own version of this (myself included, but also the connections in database/sql for example). It will be great to have an implementation in the standard library. This technique has been very, very useful in StatHat's production code as we have grown.
I'm not asking for generics, but I really want an equivalent to Python's set data type for strings and numbers at the leas built-in. I'm aware of golang set on GitHub and the gen project as well, but I'm shocked that Go doesn't have an equivalent to the set data type yet. I'm open to suggestions.
s := make(map[string]struct{}) s["foo"] = struct{}{} if _, ok := s["foo"]; ok { // exists } There are varying amounts of fluff you can put on top of this, but that's the basic approach. Wrap it up in a type with methods if you're using it a lot in a program. Perhaps you also want built-in union, intersection, difference, etc. I personally find I need a set with simple membership testing about 10x as often as I need m…
For those wondering, os/fsnotify was pushed back to 1.4
Do you know where their current implementation of this is? I want to mess around with it and dont care if i have to change code later.
How does performance compare to C++ for this release?
I haven't seen a direct comparison yet, but here's a bunch of benchmarks Rob Pike did comparing Go releases to Go releases: https://groups.google.com/forum/#!topic/golang-dev/2YRmu_AWz... If you have one version where you have a good grasp of how it compares to C++, that should provide an answer, right?
I'm very happy about the improvements to net/http.
https://github.com/pkulak/simpletransport
It sure would be nice to reuse connections without memory blowing up!