Live data from Hacker News

Go 1.3 beta 1 released

tip.golang.org

41–50 of 131 posts

Re: Go 1.3 beta 1 released

#41
post #31

How are we on IDE's? Last time I tried go (over a year ago) I couldn't really find a nice IDE.

Most people I know use vim or SublimeText to write their Go code.

I personally prefer vim, and use the vim support delivered with Go plus gocode for code completion, that's really all I need for development. Unlike with Java, I never felt the need for an IDE with Go.

Re: Go 1.3 beta 1 released

#42
post #32

Earlier quoted context omitted.

Stop using Java and C++ for comparing generics in Go. There are lots of languages that had generics on day one.

And all of them will stay in a niche because of their complexity (Scala, Haskell, D, ...).

What's the casual definition of complexity? Stuff in here I don't like?

Honestly, in the medal positions for sloppily expressed programming sentiments, complex/simple occupy the bronze/silver positions just behind the ultimate... "elegant".

Re: Go 1.3 beta 1 released

#44
post #31

How are we on IDE's? Last time I tried go (over a year ago) I couldn't really find a nice IDE.

Intellij IDEA with http://go-ide.com/ works for me. Some useful features:

1. Quickly run/restart your application 2. Run specific unit test (all in package, all in file or specific one) 3. Parameter and func signatures are more detailed via CTRL+P (parameter info) than what you would get with GoSublime and GoCode.

There's only one thing so far I found a bit quirky:

Say you got a function with the signature func() (err error) and pass it as a parameter to another function that has the signature func F(f func() error), it will complain that the signatures don't match, but it will still compile.

Re: Go 1.3 beta 1 released

#45
post #9

The support for Native Client sounds interesting, but the distinction that it's not portable native client makes me wonder what you might use this for. What would one use the native client support for? Could I use it to allow developers to make plugins for a product in Go and C++ in a secure way, instead of using say Lua?

On a related note, do you know if anyone is using Go with Lua plugins (or any other plugin system for that matter) in production. If so, does it work well?

Re: Go 1.3 beta 1 released

#46

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.

Reading the documentation, it seems that sync.Pool will automatically shrink the pool size when it's not being used? If so, unless in the future it provides some way to specify a cleanup function for those values, using it for connections and the like would result in hanging connections (I think, not 100% sure).

It only removes values that have been put back in to the pool. The assumption is that anything you've put back in to the pool has already been cleaned up to a state where it's ready to be used again when it's taken out.

Re: Go 1.3 beta 1 released

#47
I really wish they'd add string interpolation to Go. After being able to use s"My name is $name and surname is $surname" in Scala and "My name is #{name} and surname is #{surname}" in Ruby I find working with printf a giant step backwards.

Re: Go 1.3 beta 1 released

#48
post #45
post #9

The support for Native Client sounds interesting, but the distinction that it's not portable native client makes me wonder what you might use this for. What would one use the native client support for? Could I use it to allow developers to make plugins for a product in Go and C++ in a secure way, instead of using say Lua?

On a related note, do you know if anyone is using Go with Lua plugins (or any other plugin system for that matter) in production. If so, does it work well?

Heka? https://github.com/mozilla-services/heka

http://hekad.readthedocs.org/en/latest/sandbox/index.html#sa...

Re: Go 1.3 beta 1 released

#50

I really wish they'd add string interpolation to Go. After being able to use s"My name is $name and surname is $surname" in Scala and "My name is #{name} and surname is #{surname}" in Ruby I find working with printf a giant step backwards.

I wish they didn't! Magic features like this belong to magic languages like Ruby. Go is not meant to be a magic language.
Post reply on HN