3 ms·
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
by agentultra 13y ago
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.
- mratzloff 13y agoGo has the same FFI language that most languages do: C. http://golang.org/cmd/cgo/ http://golang.org/cmd/cgo/
- masklinn 13y agoWrong way around. By "bind languages to it" agentultra talks about using Go from other languages, not using C from Go.
- corresation 13y ago>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.
- masklinn 13y ago> 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.
- slashclee 13y ago> > 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 http://golang.org/ref/spec#Introduction
- masklinn 13y agoIt's not the first time they could be quoted with completely off-their-rocker statements.