Questions tagged [jvm-languages]

Languages that compile their source code to the byte code of the java virtual machine are commonly called JVM languages. A common feature of those languages is that the Java APIs can be used more or less seamlessly.

The following list could be completed over time.

Important JVM languages:

  1. Java (object oriented)
  2. Scala (object oriented/functional)
  3. Clojure (Lisp-y)
  4. Groovy (OO scripting)

Implementations of popular languages for the JVM:

  1. Python
  2. Ruby

Recent/upcoming languages:

  1. Kotlin (object oriented, ...)
  2. Ceylon (object oriented, ...)
  3. Frege (pure functional, like Haskell 2010)
150 questions
1
vote
3 answers

What is class property of an object point to - MyClass.class

In java, what is the need/use of ".class" property of an object. e.g., MyClass.class. What does .class point to.
user632942
  • 443
  • 4
  • 8
  • 16
1
vote
1 answer

Can you run Jython on the JVM that runs on Pulse smart pens?

I'm looking at developing an application that takes advantage of the Pulse smart pen. I would rather do it in python than java. Its not clear what version of the jvm runs on the pen, as evidence here in the tech specs Are there limitations on…
DevelopingChris
  • 39,797
  • 30
  • 87
  • 118
1
vote
1 answer

Efficient formula binding at runtime

One of the elements of my UI is a table showing a list of items, aggregated by category, with some formulae (see target output below). What would be the best approach to allow the user to bind cells to spreadsheet-like formulae? performance: the…
assylias
  • 321,522
  • 82
  • 660
  • 783
1
vote
1 answer

Which JVM based script language use "when" as branch control keyword (instead of "if")?

I saw a presentation with a code-snippet with "when" instead of "if". The code saw like a JVM-based scripting language, used indentation instead of "{}" and not each line was finished with ';' Could you give me a clue, which language it could be?
Valentin H
  • 7,240
  • 12
  • 61
  • 111
1
vote
3 answers

Which JVM language suits my needs?

I want to learn some JVM language, but there are so many EDIT : How to choose a language between all the JVM languages? As for my needs, I just want to learn something new, maybe to currently use it for some hobby-project, but would love it if the…
Liran Orevi
  • 4,755
  • 7
  • 47
  • 64
1
vote
2 answers

JVM languages for J2ME platform

I'm currently writing an embedded application for J2ME environment (CLDC 1.1 configuration and IMP-NG profile). Being spoiled by all those new features in JVM-based languages (Groovy, Scala, Clojure, you name it), I was considering using one of them…
pwes
  • 2,040
  • 21
  • 30
1
vote
1 answer

How to handle field named as keywords in jasmin

I'm writing a compiler for a subset of java, and I'm almost done. The one thing I have problems with is handling classes, fields and method that are named like jasmin-keywords. For example: class Test { public static void main(String[] args) { …
Torandi
  • 1,615
  • 2
  • 9
  • 12
1
vote
2 answers

Enterprise language, compiled or for JVM

We are currently developing carrier grade telecom applications in C++, Rational Rose and Java to run on an embedded platform based on Enea OSE which provides interfaces for the above three languages (actually C, Rose and java). I'm interested in…
0
votes
3 answers

Compiling Scala scripts. How works a Scala script?

Groovy Groovy comes with a compiler called groovyc. For each script, groovyc generates a class that extends groovy.lang.Script, which contains a main method so that Java can execute it. The name of the compiled class matches the name of the script…
Arturo Herrero
  • 12,772
  • 11
  • 42
  • 73
0
votes
0 answers

expression 2 uav script

How do I make an expression2 script for a drone that orbits the map without hitting walls and then home in onto a target after a target (player name) has been set by typing a command into the chat I tried with this but eneded up hitting into walls…
0
votes
0 answers

How to implement type information for static code analylsis tool for a custom JVM language?

I have to implement a static code analysis tool for a custom JVM language and I would like to have most of the methods that are accessible in the Java Class class like for example: getDeclaredMethods(): Method[]. I have come up with two…
BlueLettuce16
  • 2,013
  • 4
  • 20
  • 31
0
votes
2 answers

Ceylon Higher Order Function

I have the code: shared Integer getInt() { return 42; } shared Integer() i1() { return getInt; } shared Callable i2() { return getInt; } shared Callable i3() { return getInt; } void run() { // OK …
0
votes
2 answers

Write result to a volatile var to prevent dead-code elimination in tests

I'm going to measure performance of some code. For the purpose, I introduced the following method: def timed[T](body: => T) = { val start = System.currentTimeMillis blackHole = body val end = System.currentTimeMillis end - start } The…
Aliaxander
  • 2,547
  • 4
  • 20
  • 45
0
votes
1 answer

Kotlin: UnsupportedOperationException for reified generic with get/set operator

I am trying to convert the functions read and write in my library to operator functions get and set, respectively. My functions use a reified generic type, they are also inline methods. (You can see my library here.) The compiler has no issue…
Jire
  • 9,680
  • 14
  • 52
  • 87
0
votes
1 answer

non-Java JVM languages - Any particular JVM feature that is not exploited by the Java language

I was contemplating on the necessity of different non-Java languages coming up on the JVM. Apart from syntactic sugar and built-ins, does any of them actually exploit some corner of the JVM, which has not been peeked into by the Java language? The…
sutanu dalui
  • 663
  • 7
  • 25
1 2 3
9
10