Gosu (programming language): Difference between revisions

Content deleted Content added
Philosophy: Split philosophy into two paragraphs, add XSD, templates, ORM mention
Rework lead, splitting out uses (eventually tooling should be too)
Line 24:
| wikibooks =
}}
'''Gosu''' is a [[Type system#Static type-checking|statically-typed]] [[general-purpose programming language]] that runs on the [[Java Virtual Machine]]. releasedIts underinfluences theinclude [[ApacheJava license|Apache(programming 2language)|Java]], license.<ref[[C name=slashdot>{{citeSharp (programming weblanguage)|url=http://slashdot.org/story/10/11/09/0510258/Gosu-Programming-Language-Released-To-Public|title=GosuC#]], Programmingand Language Released To Public|date=2010-11-09|publisher=[[SlashdotECMAScript]]}}</ref>. This general-purposeDevelopment programmingof language isGosu usedbegan in several2002 internally for [[open-sourceGuidewire softwareSoftware]] projects including [https://sparkgs.github.io/ SparkGS], and [https://github.com/gosu-lang/ragnardbthe Ragnarlanguage DB]saw amongits severalfirst others,community andrelease isin widely2010 used inunder the insurance industry via [[GuidewireApache Softwarelicense|Apache 2]]'s commercial productslicense.<ref name=slashdot/><ref>{{Citecite newsweb|url=http://www.pcpro.coslashdot.ukorg/newsstory/36263810/11/gosu09/0510258/Gosu-bringsProgramming-freshLanguage-languageReleased-skills-toTo-java-virtual-platformPublic|title=Gosu bringsProgramming freshLanguage languageReleased skillsTo to Java Virtual Platform|publisher=[[PC Pro]]Public|date=2010-11-09|publisher=[[Slashdot]]}}</ref> The language borrows from several existing languages including [[Java (programming language)|Java]], [[C Sharp (programming language)|C#]], and [[ECMAScript]].
 
A unique feature of Gosu is its Open Type System, which allows the language to be easily extended to provide compile-time checking and IDE awareness of information that is typically checked only at runtime in most other languages. Also of note is the language's ability tocan serve as both a full-featured general purpose language and as a concise scripting language. For instance, Gosu hashaving free-form Program types (.gsp files) for scripting as well as statically verified Template files (.gst files). Gosu can optionally execute these and all other types directly from source without precompilation, which also distinguishes it from other static languages.
 
==History==
Line 60:
 
===Data types===
A unique feature of Gosu is its Open Type System, which allows the language to be easily extended to provide compile-time checking and IDE awareness of information that is typically checked only at runtime in most other languages. Enhancements let you add additional functions and properties to other types, including built-in Java types such as String, List, etc. This example demonstrates adding a print() function to java.lang.String.<syntaxhighlight lang="gosu">
enhancement MyStringEnhancement : String {
function print() {
Line 75:
print(result)
</source>
 
==Uses==
This general-purpose programming language is used in several [[open-source software]] projects including [https://sparkgs.github.io/ SparkGS] and [https://github.com/gosu-lang/ragnardb Ragnar DB] among several others, and is widely used in the insurance industry via [[Guidewire Software]]'s commercial products.<ref name=slashdot/><ref>{{Cite news|url=http://www.pcpro.co.uk/news/362638/gosu-brings-fresh-language-skills-to-java-virtual-platform|title=Gosu brings fresh language skills to Java Virtual Platform|publisher=[[PC Pro]]|date=2010-11-09}}</ref>
 
==References==