Difference between revisions of "Go"

From RogueBasin
Jump to navigation Jump to search
(Created page for Go language)
 
(Added cat-v link)
Line 12: Line 12:


* [http://golang.org/ Official Go website]
* [http://golang.org/ Official Go website]
* [http://go-lang.cat-v.org/ Go Programming Language Resources at cat-v.org]


[[Category:Programming languages]]
[[Category:Programming languages]]

Revision as of 20:46, 26 January 2010

Go is a programming language announced by Google in November 2009. It is a native-code compiled, garbage-collected, concurrent language. The design idea seems to be to make a modernized version of C.

Roguelike Issues

Go has several modern programming features, such as garbage collection and closures, which help when developing roguelikes. It has a reasonably simple duck-typing-based object system, which is clean, but doesn't necessarily match the complex problem of roguelike data modeling. The concurrent features aren't much needed in main roguelike logic, which is generally very sequential, but can help when programming an user interface that runs asynchronously with the game logic.

Go supports Linux, BSD and OS X, but as of 2010-01, the Go build environment has not been completely ported to Windows.

There is FFI support for linking to external C libraries like SDL or Curses. Calling C code from Go is reasonably straightforward. As of 2010-01, distributing a Go binary linked to foreign shared libraries is problematic. See this post on the golang-nuts mailing list for a description of the problem and some proposed solutions.

Related Links