Questions tagged [gosu]

Gosu is an imperative statically-typed object-oriented programming language for the Java Virtual Machine (JVM) that is designed to be expressive, easy-to-read, and reasonably fast. The language is rooted in concepts from Java, C#, and ECMAScript, but borrows some constructs from Ruby and dynamic languages.

Gosu:

  • is object oriented
  • is statically typed
  • is imperative
  • is 100% compatible with Java
  • features type inference
  • supports closures
  • provides simplified generics
  • is provided via the Apache License v2.0

One of the features that stands apart from other JVM languages it its "open type system". For example, there is an XSD Type Loader that will inspect XSD (XML Schema) files on the classpath and generate types for the Gosu compiler without an additional code-generation step.

For more information, go to http://gosu-lang.github.io/

117 questions
19
votes
4 answers

What's the essential similarities and differences between Scala and Gosu (related to Java)?

I am studying Scala right now, and have been doing so for the last month. Today, (via Twitter) I stumbled upon another language that seems to be quite similar, Gosu. What are the essential similarities and differences between Scala and Gosu with…
chaotic3quilibrium
  • 5,661
  • 8
  • 53
  • 86
6
votes
2 answers

Is Gosu C# for the JVM?

From what I gather, Gosu is simply C# for the JVM (which is a good thing). Is it true? What are some difference between Gosu and C# (Except the class library and the fact it runs on JVM) ?
ripper234
  • 222,824
  • 274
  • 634
  • 905
5
votes
5 answers

Partial read of xml file

I need to read the first 15 lines from about 100 XML files that are up to 200,000 lines long. Is there a way to use something like BufferedReader to do this efficiently? The steps outlined in this question use DocumentBuilder.parse(String); this…
AnthonyW
  • 1,910
  • 5
  • 25
  • 46
3
votes
1 answer

Java: Map storing lambdas as values

I want to learn possibilities within "newer" syntax and API of Java. By newer I mean 10+ (let's say 10-13). It is mostly around declaration of lambdas and storing different implementations conforming to same signature as values in the map. As…
Marek Pulka
  • 111
  • 1
  • 5
3
votes
3 answers

How do I run two different versions of Java concurrently on OS-X?

I was unsure on whether to put this on Superuser or Stack Overflow, but I opted for here because it concerns software development regarding the Gosu programming language. The Gosu programming language requires Java 8 and does not accept Java 11 or…
HolyKnowing
  • 121
  • 3
  • 15
3
votes
3 answers

Format Code Appears Twice

I am getting the following error on the oracle query below. I'm not seeing an issue with the format that I am giving in the query. I'm thinking it might have something to do with the .SSS but I can't be certain: SELECT * FROM ( …
iceMan33
  • 359
  • 2
  • 16
3
votes
2 answers

How do generics work in Gosu?

It has reified generics ... how is that implemented? Any significant difference from C#'s generics?
ripper234
  • 222,824
  • 274
  • 634
  • 905
3
votes
0 answers

trying to create a GX model for PolicyPeriod entity

I am trying to create a GX model for PolicyPeriod entity. When I try to test it using Gosu scratch pad it takes lot of time to execute/display output (10 to 15 mins). Is there a better way of testing this: I am trying to check the…
srihari
  • 43
  • 7
2
votes
0 answers

Java jar reference picking up wrong package with same directory

I have a reference: lmg.pm.cl.rules.Activity Which is meant to reference an imported .jar file. However the exact same path exists four levels up, but without the Activity class. This is the incorrect directory, but is the one intelliJ is picking…
notAChance
  • 1,360
  • 4
  • 15
  • 47
2
votes
3 answers

Filter out users in a drop down on PCF

In ClaimCenter I am trying to filter a drop down list to only display users that have a certain role. I am using a User input cell. There is no value range on the userinput cell only value. The value is set the user that they select so right now…
iceMan33
  • 359
  • 2
  • 16
2
votes
2 answers

What do the backslashes do in this Gosu code?

I'm not too deep in Gosu, so this code confused me. I've googled, etc., but to no avail. What are the backslashes doing in this snippet? GET_STUFF.execute(\ -> { var gig = withPackagedGig(request.id, request.signature, \ k -> { …
Jonathan M
  • 17,145
  • 9
  • 58
  • 91
2
votes
1 answer

Accessing Properties of the Secondary Entity

Can any one help me with the following question? In the Gosu code below, how can I include the city information in Address table in the result from the query (without turning the tables around - starting from Address table)? Address table has a…
kev
  • 21
  • 2
2
votes
2 answers

Using an enum instead of a switch case in Gosu

I want to avoid creating a switch case and instead use an enum but when writing the following code, I get a compile error saying unexpected token public: public enum Status { INACTIVE { public void doSomething() { //do something …
forgetaboutme
  • 613
  • 1
  • 6
  • 18
2
votes
1 answer

Cannot Traverse in Window Mode Exception

I'm working with Guidewire (GOSU) and I noticed there is not much information on the internet for this language. Trying my luck here. I am creating a GX Model in guidewire studio and i am trying to map a property. But I keep getting an exception…
iceMan33
  • 359
  • 2
  • 16
2
votes
3 answers

Can't run GOSU queries in scratchpad

Recently I upgraded my Guidewire studio from version 8 to 9. From that onwards the database Queries are throwing error while running in scratchpad. The same code works fine in version 8. Please find the code and the error below. CODE var object =…
Aravind Pillai
  • 739
  • 7
  • 21
1
2 3 4 5 6 7 8