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
0
votes
2 answers

Best frameworks or methods to write compilers targetting JVM?

Are there any frameworks similar to the LLVM or Parrot Compiler Toolkit that makes writing compilers targeting JVM easier? I'm hoping for the framework to have AST to code generator. So, I could write a language frontend which constructs the AST…
ruben2020
  • 1,549
  • 14
  • 24
0
votes
2 answers

Intrinsic / Bytecode Annotations Security

I am currently making a JVM-based programming language. Instead of having operators, I chose to allow symbols as method names and create compiler reference classes for primitive data types. These are annotated with so-called @Intrinsic annotations…
Clashsoft
  • 11,553
  • 5
  • 40
  • 79
0
votes
1 answer

Can I use the Ceylon language with RoboVM (iOS)?

I'm getting lately interested in the JVM, thanks to this awesome language called Ceylon. So if RoboVM enables you to write Java targetting iOS, I'm wondering if there could be a way to use Ceylon with RoboVM? Thanks!
knocte
  • 16,941
  • 11
  • 79
  • 125
0
votes
1 answer

How do I implement this generic Java interface with a Clojure record?

I'm trying to implement org.joda.time.ReadableInstant. It inherits from a generic interface, but apparently that shouldn't matter. The interface is: public interface ReadableInstant extends Comparable { long getMillis(); …
Joe
  • 46,419
  • 33
  • 155
  • 245
0
votes
1 answer

JMX results are confusing

I am trying to learn JMX for the last few days and now got confuse here. I have written a simple JMX programe which is using the APIs of package java.lang.management and trying to extract the Pid, CPU time, user time. In my result I am only getting…
Rohit
  • 445
  • 2
  • 7
  • 17
0
votes
3 answers

Why there is no virtual machine for other languages unlike Java?

Why there is a need for Java virtual machine? One is able to run codes written in other languages without using their virtual machine, while java requires JVM to run the code. Why is it that we have a virtual machine for Java, while for other…
0
votes
1 answer

How to check return type in xtext using xbase

With xtext I'm trying to develop a small language. def sum(Integer a, Integer b):Integer { return (a+b) } This is the grammar I use for this: Function: 'def' name=ValidID '('(params+=FullJvmFormalParameter (','…
tgoossens
  • 9,676
  • 2
  • 18
  • 23
0
votes
1 answer

Which class is used to print Thread Dump of JVM Java Virtual Machine?

I want to generate the thread dump of my running application. However, when I do kill -3 PID, it generate the thread dump at the console of the running application. I want to generate it to a file. I know I can run the application as ./run.sh >…
Archit Thakur
  • 105
  • 1
  • 1
  • 8
0
votes
3 answers

Commercial usage and integrability of functional languages

I have a strong interest in functional languages, because they have so many advantages, but I don't know if they are really used in practice and how well they can be integrated into a mainstream Java, C# or C++ environment. Could a programmer, who…
user1812379
  • 827
  • 3
  • 11
  • 22
0
votes
2 answers

Does Eclipse plugin have to be written in Java?

I read some tutorials about making Eclipse plugins, but every text was just about Java coding. Does it really have to be Java or there is some way to write a plugin in some other JVM language such as Scala or Clojure?
akalenuk
  • 3,815
  • 4
  • 34
  • 56
0
votes
2 answers

alternative for Jetty Npn with OpenJdk

Do you guys know of an alternative that works with Sun Jvm? We cannot use Open Jdk so I am look for an alternative NPN library that can work with Sun Jvm.
Rag
  • 1,363
  • 4
  • 19
  • 36
0
votes
2 answers

How do I determine which channel is left, right, etc.?

So, I decided to use JAsioHost ( https://github.com/mhroth/jasiohost ) to output audio through ASIO in my program. Interaction with ASIO is done via an instance of AsioDriverListener interface. ASIO host will call its void bufferSwitch(long…
Display Name
  • 8,022
  • 3
  • 31
  • 66
0
votes
1 answer

Strange type conversion from List[(Char, Char)] to Object

I have a recursive function count in Scala 2.9.2 that looks like this def count(traces: Seq[(Char, Char)], acc: (TP, TN, FP, FN)): (TP, TN, FP, FN) = { val (tp, tn, fp, fn) = acc traces match { case Nil => acc case ('(', '(')::rest =>…
Dan
  • 95
  • 8
-1
votes
1 answer

Why does java support different types of JVMs such as CVM, KVM?

We know that JAVA has several types of vitual machine supported. Why it's needed where Java could run based on one single/standard JVM? Why does java support different types of JVMs such as CVM, KVM?
-2
votes
1 answer

How to add Chinese support to an existing java application?

I got an application that coded with java. the application have a same window that i can add some text and hit the send button. it is sending the test to a server and then print it there. when i'm writing an English letter i have no problem. when…
USer22999299
  • 5,284
  • 9
  • 46
  • 78
1 2 3
9
10