Gosu (programming language)

This is an old revision of this page, as edited by Metapete (talk | contribs) at 18:24, 7 January 2011. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Gosu is a general purpose Java Virtual Machine based programming language. It is licensed as open source software under the Apache License 2.0.[1] This general purpose programming language is used in some open-source software projects, including the web application framework Ronin and the build-tool Vark, as well as in Guidewire Software commercial products for the insurance industry.[1][2]. The language is rooted in concepts from Java, C#, and ECMAScript, but borrows some constructs from Ruby and dynamic languages. It's most notable feature is it's Open Type System API, that allows the language to be easily extended to provide compile-time checking for things that would typically be dynamically checked at runtime in many other languages.

Gosu
Designed byGuidewire Software
DeveloperGuidewire Software
Stable release
0.8.1-C
Implementation languageJava, Gosu
PlatformJava Virtual Machine
OSany JVM supported
LicenseApache License
Filename extensions.gsp .gs .gst .gsx
Websitehttp://gosu-lang.org/
Influenced by
Java, Ruby, Python, Erlang, Haskell, C#
Influenced
Ronin, Vark

History

Gosu began in 2002 as a scripting language called GScript at Guidewire Software. It was used to configure business logic in Guidewire's applications and was more of a simple rule definition language. In it's original incarnation it followed ECMAScript guidelines. Guidewire enhanced the scripting language over the next 8 years, and released Gosu 0.7 beta to the community in November of 2010.

Examples

Fibonacci

function fib(n : int): int{
  if (n < 2) return n
  return fib(n-1) + fib(n-2)
}

print (fib (20))

References

  1. ^ a b "Gosu Programming Language Released To Public". Slashdot. 2010-11-09.
  2. ^ "Gosu brings fresh language skills to Java Virtual Platform". PC Pro. 2010-11-09.