News for hackers. Stuff that matters.
Re:Go as an alternative to Node.js for very fast servers by agentultra on Wednesday August 14, 2013 @09:51AM (#6211459)
My only gripe is its intended use as a systems programming language.

The runtime kind of makes it a silo; ie: hard to bind other languages to it through an FFI.

Of course if I am mistaken or there's something being done to address such a scenario then I will be much happier seeing more and more infrastructure code shipping in Go.

Re:Go as an alternative to Node.js for very fast servers by masklinn on Wednesday August 14, 2013 @11:11AM (#6211977)
> My only gripe is its intended use as a systems programming language.

It's not. It's a new Java, not a new C++.

> ie: hard to bind other languages to it through an FFI.

More or less impossible: GC and goroutines are not optional so you'd need to cleanly setup and shutdown the Go runtime. You'd have to embed Go as you do Lua or Python.

Re:Go as an alternative to Node.js for very fast servers by slashclee on Wednesday August 14, 2013 @04:13PM (#6213934)
> > My only gripe is its intended use as a systems programming language.

> It's not. It's a new Java, not a new C++.

Not according to the Go developers. "Go is a general-purpose language designed with systems programming in mind." http://golang.org/ref/spec#Introduction

Re:Go as an alternative to Node.js for very fast servers by masklinn on Thursday August 15, 2013 @02:40AM (#6216467)
It's not the first time they could be quoted with completely off-their-rocker statements.
Re:Go as an alternative to Node.js for very fast servers by mratzloff on Wednesday August 14, 2013 @10:06AM (#6211543)
Go has the same FFI language that most languages do: C.

http://golang.org/cmd/cgo/

Re:Go as an alternative to Node.js for very fast servers by masklinn on Wednesday August 14, 2013 @11:15AM (#6211996)
Wrong way around. By "bind languages to it" agentultra talks about using Go from other languages, not using C from Go.
Re:Go as an alternative to Node.js for very fast servers by corresation on Wednesday August 14, 2013 @10:36AM (#6211736)
>hard to bind other languages to it through an FFI.

Go has absurdly simple FFI through, as mratzloff mentioned, C. This is self-promotion and apologies, but see my submission history for two examples.