News for hackers. Stuff that matters.
Re:Ask HN: What are you using Go for? by dded on Wednesday January 01, 2014 @07:51PM (#6997579)
> a compiled binary can often be a good choice

Uh, well, sure. From the context, I thought little ad hoc utilities were meant. The kind that are changed frequently. We keep many right in our svn repository, so you make a check-out and make use of a little script right in the same directory as your project source code.

Re:Ask HN: What are you using Go for? by vram22 on Thursday January 02, 2014 @02:06PM (#7001457)
>I thought little ad hoc utilities were meant.

The thing is, given Go's compilation speed, little utilities will compile so fast that you'll barely notice it (on any decently powerful machine), and on the other side there's the overhead of starting up the Python or Perl interpreter.

There's also the "go run" command, so you don't even have to give two separate commands (compile and run).

http://golang.org/cmd/go/

The command "go run filename.go" compiles the specified Go source file and then runs the resulting binary (assuming no compile-time errors, of course).