Wow. A quite extensive list of available languages that can run on the JVM. I think some of them are interpreted by Java code, while others are compiled streight into Java bytecode.
Categories
Wow. A quite extensive list of available languages that can run on the JVM. I think some of them are interpreted by Java code, while others are compiled streight into Java bytecode.
3 replies on “Languages for the JVM”
Wait a minute! You need .NET to run many different languages on the same runtime! 🙂
I love the Groovy Swingbuilder! Can you believe you can write Swing apps as tersely as this:
import groovy.swing.SwingBuilder; theMap = ["color":"green", "object":"pencil", "location":"home"]; // create a JFrame with a label and text field for each key in the Map swing = new SwingBuilder(); frame = swing.frame(title:'A Groovy Swing', location:[240,240], defaultCloseOperation:javax.swing.WindowConstants.EXIT_ON_CLOSE) { panel() { for (entry in theMap) { label(text:entry.key) textField(text:entry.value) } button(text:'About', actionPerformed:{ pane = swing.optionPane(message:'SwingBuilder Demo v0.0') dialog = pane.createDialog(null, 'About') dialog.show() }) button(text:'Quit', actionPerformed:{ System.exit(0) }); } } frame.pack(); frame.show();(code from http://www.onjava.com/pub/a/onjava/2004/09/29/groovy.html?page=last)
Argh – the link got mangled on that last comment. Trying again: http://www.onjava.com/pub/a/onjava/2004/09/29/groovy.html?page=last