News for hackers. Stuff that matters.
Re:Go: Planning the 1.5 release by notduncansmith on Tuesday December 02, 2014 @09:53AM (#8687359)
Obligatory comment regarding generics. God I can't wait - if they add generics and a decent package manager, I'm gonna be pushing hard for Go at our shop.
Re:Go: Planning the 1.5 release by cpfohl on Tuesday December 02, 2014 @09:56AM (#8687377)
What sort of "decent package manger" do you mean? `go get` is pretty solid as far as I can tell, the only thing it's missing is the ability to lock to a particular version...
Re:Go: Planning the 1.5 release by jbooth on Tuesday December 02, 2014 @11:09AM (#8687771)
It's missing the ability to publish or lock to a particular version, which is a game breaker for shops with >5 people, and the go maintainers don't seem to see it as a problem, making it a permanent game breaker.
Re:Go: Planning the 1.5 release by dilap on Tuesday December 02, 2014 @01:27PM (#8688820)
I saw some posts on the mailing list where their position wasn't that it isn't a problem, but that no obviously-right solution is yet known, so it's better to let it shake out in third-party land for now, which seems reasonable. (That's all from memory, so salt appropriately.)

FWIW, I have been using godeps and it seems nice so far. I'd definitely recommend taking a look.

Re:Go: Planning the 1.5 release by Zancarius on Tuesday December 02, 2014 @12:07PM (#8688162)
godep or glide, though hackish, appear interesting. The CoreOS devs have also been contributing back to godep for that reason [1], which is a plus. There's also a good discussion here [2] on that very topic.

Last I checked godep, the only thing I didn't like was the weird things you had to do with your project layout, but the way ahead is promising (and maybe it's not so bad now). Certainly it's much better than gopkg.in.

Though I do agree. It would be nice to have this sort of tooling as part of the Go distribution.

[1] https://coreos.com/blog/godep-for-end-user-go-projects/

[2] https://news.ycombinator.com/item?id=8461937

Re:Go: Planning the 1.5 release by MoOmer on Tuesday December 02, 2014 @11:25AM (#8687868)
The idea is that there are a few community-developed and supported dependency managers that do this for you to choose from:

https://code.google.com/p/go-wiki/wiki/PackageManagementTool...

Re:Go: Planning the 1.5 release by jezclaremurugan on Tuesday December 02, 2014 @12:06PM (#8688152)
Been using godeps for a while, and absolutely no complaints so far.
Re:Go: Planning the 1.5 release by 4ydx on Tuesday December 02, 2014 @09:54PM (#8691634)
I must write code that is just too simple and uninteresting because I never use generics. I also really enjoy go.
Re:Go: Planning the 1.5 release by notduncansmith on Wednesday December 03, 2014 @07:21PM (#8697197)
Have you ever used Array#map in Javascript (or any dynamic language)? What about filter or reduce? Those are useful things not possible in Go.

Well, technically they are (whipped up a quick example): http://play.golang.org/p/e2qkKN4VY1

But it requires the use of interface{}, which reduces the usefulness of the type system, and you still can't do (what I guess must be crazy) stuff like return a slice.