To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Gosu (programming language)

From Wikipedia, the free encyclopedia

Gosu
DeveloperGuidewire and open source contributors
Stable release
1.17.8[1] Edit this on Wikidata / 28 January 2024; 53 days ago (28 January 2024)
Typing disciplinestatic
PlatformExecute on the Java Virtual Machine, statically and dynamically compiles to bytecode
OSany supporting JVM
LicenseApache License 2.0
Filename extensions.gs, .gsp, .gst, .gsx
Websitegosu-lang.github.io
Influenced by
Java, C#
Influenced
Kotlin

Gosu is a statically typed general-purpose programming language that runs on the Java Virtual Machine. Its influences include Java, C#, and ECMAScript. Development of Gosu began in 2002 internally for Guidewire Software, and the language saw its first community release in 2010 under the Apache 2 license.[2]

Gosu can serve as a scripting language, having 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.

YouTube Encyclopedic

  • 1/3
    Views:
    4 440
    490
    1 933
  • 01 Guidewire Gosu Programming Language | Introduction of Gosu Language
  • 02 How to download & set Gosu Library | Guidewire Gosu Language | Gosu Lab
  • Game Development with Gosu

Transcription

History

Gosu began in 2002 as a scripting language called GScript at Guidewire Software.[3][4] It has been described as a Java variant that attempts to make useful improvements while retaining the fundamental utility and compatibility with Java. It was used to configure business logic in Guidewire's applications and was more of a simple rule definition language. In its 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 2010. The 0.8 beta was released in December 2010, and 0.8.6 beta was released in mid-2011 with additional typeloaders, making Gosu capable of loading XML schema definition files and XML documents as native Gosu types. The latest version is 1.10, released in January 2016, along with a new IntelliJ IDEA editor plugin.

Guidewire continues to support and use Gosu extensively within InsuranceSuite applications. Guidewire has decided to freeze the development of new Gosu programming language constructs at this time. Guidewire continues to evolve InsuranceSuite through RESTful APIs and Integration Frameworks that can be accessed using Java.

Philosophy

Gosu language creator and development lead, Scott McKinney, emphasizes pragmatism, found in readability and discoverability, as the overriding principle that guides the language's design.[5] For instance, Gosu's rich static type system is a necessary ingredient toward best of breed tooling via static program analysis, rich parser feedback, code completion, deterministic refactoring, usage analysis, navigation, and the like.

Syntax and semantics

Gosu follows a syntax resembling a combination of other languages. For instance, declarations follow more along the lines of Pascal with name-first grammar. Gosu classes can have functions, fields, properties, and inner classes as members. Nominal inheritance and composition via delegation are built into the type system as well as structural typing similar to the Go programming language.

Gosu supports several file types:

  • Class (.gs files)
  • Program (.gsp files)
  • Enhancement (*.gsx files)
  • Template (*.gst files)

In addition to standard class types Gosu supports enums, interfaces, structures, and annotations.

Program files facilitate Gosu as a scripting language. For example, Gosu's Hello, World! is a simple one-line program:

print("Hello, World!")

Gosu classes are also executable a la Java:

class Main {
  static function main(args: String[]) {
    print("Hello, World!")
  }
}

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.

enhancement MyStringEnhancement : String {
  function print() {
    print(this)
  }
}

Now you can tell a String to print itself:

"Echo".print()

The combination of closures and enhancements provide a powerful way of coding with Collections. The overhead of Java streams is unnecessary with Gosu:

var list = {1, 2, 3}
var result = list.where(\ elem -> elem >= 2)
print(result)

Uses

This general-purpose programming language is used primarily in Guidewire Software's commercial products.

References

  1. ^ "Release 1.17.8". 28 January 2024. Retrieved 20 February 2024.
  2. ^ "Gosu Programming Language Released To Public". Slashdot. 2010-11-09.
  3. ^ http://www.guidewire.com
  4. ^ https://gosu-lang.github.io/
  5. ^ "Language of the Month: Gosu". Dr. Dobb's Journal. 2012-12-07.

Further reading

External links

This page was last edited on 21 March 2024, at 04:31
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.