Live data from Hacker News

Go version 1 is released

blog.golang.org

41–50 of 168 posts

Re: Go version 1 is released

#41
post #16

Anyone care to share their experience writing something in go? I've toyed with it but not built anything in production. FWIW, the go dashboard ( https://godashboard.appspot.com/ ) has a number of interesting projects.

go1 has been my goto language for a while now. I don't even understand why, but everything makes a lot of sense. It compiles about as fast as python and I have an easy time making quite efficient code.

Concurrency is obviously very good and that extends to parallelism quite easily. For example, I wrote go-heatmap ( https://github.com/dustin/go-heatmap ) and found I could shave a few seconds off of the colorization phase of a fairly large image I generate hourly by running every column (or row, I forget which) in parallel on my 4 core atom box.

The build/packaging system is everything maven wishes it could be. It's practical to create, publish and use small third-party things (such as my humanize package: https://github.com/dustin/go-humanize ) because the build system just deals with the dependency for you (even transitively) just based on import statements. "go list -json" in a source directory (or pointed to a namespace) will tell you all kinds of things about what your code uses, including transitive dependencies.

I deploy go code I use every day on OS X and Linux, 386, 64 and ARM. I can build all of these programs from any one of these systems so quickly and easily you wouldn't think they're native binaries. In fact, it just took me 20s to build a Windows cross compiler and all of the standard library (with which I built my kmz_example program from go-heatmap on OS X in .49s and now I've got a kmz_example.exe I don't know what to do with).

Re: Go version 1 is released

#43
post #14

If anyone from the Go team reads this, http://golang.org/doc/go_tutorial.html linked to from the blog gives a file not found error.

The Go tour ( http://tour.golang.org/ ) is a pretty good introduction to the language. It provides an interactive in-browser panel to try out the language while presenting its features.

The "install go" link on the "Go offline" page gives "file not found: /go/install".

Re: Go version 1 is released

#44
post #8

Earlier quoted context omitted.

Doesn't go tool handles that automatically (i.e. checks out the most recent tag compatible with the current Go version)?

Not sure, I am very much new to the new "go" command and how it works. Everytime I did a go get on a repo it would get the wrong version. I'd just cd into the 3rdparty dir and then pull/checkout the weekly branch and be ok. I figured their had to be a better way but I was pretty focused on getting projects done. And to be specific this was on non-standard libraries the standard libraries provided by go worked out of…

The go command will use the right version but only if the person writing the library has bothered to tag the version to use. Many people don't. Part of the point of Go 1 is to stabilize the language. We're committing to slowing down the rate of churn and to not changing the APIs in backwards incompatible ways for the lifetime of Go 1 (1.1, 1.2, and so on), so now there should be much less problem with just using tip/HEAD/whatever in the repositories without tags.

Re: Go version 1 is released

#45

"We're announcing Go version 1, or Go 1 for short" I foresee the next version being considered harmful.

Or they can label versions like sun, so that nobody will know for sure if they're using Go 2 or Go 1.2 or Go Enterprise Edition or Go Standard...

Go 4.1.1 will now be rebranded 'Golaris 1.0'

Re: Go version 1 is released

#46
post #27

So is golang a semi-official name for this? I don't want it to be as hard to find as the board game!

Yep, if you are googling it use golang, much easier to find things this way.

There is also a custom search engine: http://go-lang.cat-v.org/go-search

Re: Go version 1 is released

#47
post #42

Has anyone had any experience with GO and Windows API/win32?

I haven't tried it, but you might want to look into WALK(Windows Application Library Kit): https://github.com/lxn/walk Is designed to provide a Go-ish interface for win32.

Actually, that's mainly a UI toolkit interface. Not Win32 core . (Though a tiny bit of core stuff is included)

Re: Go version 1 is released

#48

How good is go compare to c/c++ ? ( in terms of speed especially ? ) Can we now say that Google Chrome can be written in Go and it will be faster and/or stable ? ( not saying it is not already. ). Congrats to the team, just started using go yesterday and loving it.

In my experience Go is probably 5-10x faster than C or C++. I estimate that programs that take me half an hour to write in Go would take me about 2½ hours in C and 5 hours in C++.

(If you meant CPU speed, http://blog.golang.org/2011/06/profiling-go-programs.html :-)

Re: Go version 1 is released

#49
post #5

I'm still wishing that we could embed Go into a multithreaded c application, just like we can with the JVM and Mono. I would like to use Go as a "scripting" language. I have seen a thread in the mailing list that someone was working on it on a personal basis, but I can't find it anymore. It doesn't seem to be in high demand.

> I'm still wishing that we could embed Go into a multithreaded c application, just like we can with the JVM and Mono. I would like to use Go as a "scripting" language.

What?

Re: Go version 1 is released

#50
post #24

Hitting 1.0 should convince more people to use it in production. However, getting any new language in an organization is always a struggle. Is there a list of organizations that currently use it in production? [Update] A few high-tech companies were listed. I was hoping more for big pharma or finance? There are some super convervative firms out there. Even Google, for example, will only allow a few languages in their…

Here is a (very incomplete) list of organizations using Go in production:

http://go-lang.cat-v.org/organizations-using-go

Note that this was before Go even had a stable release, and while the language was still evolving very fast, I'd expect more companies outside the "hi-tech" to adopt it now that it is stable.

Post reply on HN