Java

Which code is best? 3 JVM languages duke it out

At JavaOne, proponents showcase the virtues of JVM languages Frege, Kotlin, and Mirah

code best
Credit: Thinkstock

Java

Show More

The Java virtual machine has become a popular destination for programming languages other than Java itself. Three of those languages -- Frege, Kotlin, and Mirah -- squared off at the JavaOne conference this week, with each ready to reach new milestones in their development.

Frege, voted most popular language among attendees in the conference session, is a Haskell variant. The language scored a GitHub rating of 1,392 stars and is useful in cloud application development, said project committer Dierk Konig, director of engineering at Canoo Engineering. “The cloud story of Frege is really, Frege takes Haskell code and compiles it to Java [source code].” Therefore, the cloud story for Frege is exactly the same as Java, he said. Frege offers functional programming, a strong static type system, and global type inference. It can use any Java library.

“The next release will focus on getting all those little deviations from Haskell ironed out so that we are as close as possible to Haskell,” Konig said in an interview after the session. That release, version 3.24, is due soon. He explained there have been some deviations from the Haskell syntax that will be fixed.

Mirah, which had been headed by JRuby developer Charles Nutter, is now the pet project of maintainer Nick Howard, a senior software engineer at Twitter. The language has been billed as bringing Ruby capabilities to Java. It is a static language that uses Ruby syntax but has no runtime JARs. “If you understand Java and you’re familiar with Ruby, you might like Mirah,” Howard said. The language was rating 766 stars on GitHub and finished second in the JavaOne session polling.

ITWorld DealPost: The best in tech deals and discounts.
Shop Tech Products at Amazon