Introducing the Go Race Detector
blog.golang.org
blog.golang.org
Hopefully it works on Windows too, which is my main OS when I'm working with Go. It seems Windows is a second class citizen when it comes to some of the toolchain (pprof is kinda broken, I can't get addresses to resolve to symbols and just end up profiling on Linux), but fingers crossed!
We're trying hard to keep Windows well-supported. The pprof story is a little sad, as it was a very unix-centric tool to begin with.
As another Go developer on Win7, thanks, I think a lot of people really do appreciate this.
I've worked for years under Linux and OSX as well, but when I started dabbling in OpenGL via Go last year, I switched to Win7 for better nvidia gpu drivers (and Steam), simple as that. If you keep other MS crap I mean software off a Win7 system, it's a rock-solid developer OS with msys/mingw and Sublime Text and Go. I wouldn't touch Win8 but my 7 setup is absolutely working for me as of now. Ultimately I'll have to head back to a Unix seeing the direction Windows is taking, but I'm really happy to be able to work in Go as a first-class citizen for the time being.
Also given today's prevalence of Unixes in developer circles, Win7 is ironically the only OS giving off that "bad-ass underdog" vibe..
For example, I learnt C before C++ and found coding in C++ was more enjoyable than coding in C.
Since then I've been doing a lot of C# coding and I find that much nicer than coding in C++.
From what I've seen of Go it's seems quite a nice language. So by getting proficient in Go it might actually be too frustrating to then try and start coding in C/C++.
Now I don't consider myself an expert in C/C++ but after writing and debugging that many lines of C/C++ code I do consider myself proficient.
But that doesn't change the fact that when it comes to languages, I find that C# is easier to work with than C++.
But that is just my opinion.
But there was one full re-write in that time.
The goal of a programmer should be to write great programs.
Sometimes that may require discovering new paradigms. Mostly it involves picking up a trusted tool and getting on with it.
Studying programming languages themselves may make you a more knowledgeable programmer but will not necessarily make you a better programmer.
To become a better programmer you simply have to write better programs.
Who said you have to learn every junk language under the sun?
I find the backlash against my view sort of ridiculous to see on "Hacker News." This is really not that controversial.
https://code.google.com/p/go/source/detail?r=4b61f121966b
As I read it makes a quick-try to acquire a pre-allocated buffer, otherwise makes its own. Then it makes a quick-try to give the buffer it used back (to be used by another goroutine).
That is a very elegant use of channels to create an optimistic buffer. Enjoyed that read :)