Alternate java language
Are there compil开发者_运维技巧ers around that use a syntax other then the java language syntax to produce JVM bytecode?
Lots! scala, jruby, jython, Groovy, Clojure etc.
See http://en.wikipedia.org/wiki/List_of_JVM_languages
I don't know what you want to do but there are lots. You can even port Java code to other platforms like android.
Depending on what you want to do with the byte code you might like to look at Jasmin which is a Byte Code assembly language and ASM which is a byte reader/minuplator/writer.
You can even compile LOLCode based on the language of LOLCats :D
HAI
CAN HAS STDIO?
PLZ OPEN FILE "LOLCATS.TXT"?
AWSUM THX
VISIBLE FILE
O NOES
INVISIBLE "ERROR!"
KTHXBYE
Plenty. Look at this list of JVM languages for some examples.
There are plenty of them ...
- Lisp : Lisp as an Alternative to Java
- Scala,
- Jython,
- JRuby,
- Groovy etc ..
Have a look at the following link :
- Modern Alternatives to Java
Have you looked at Scala?
Alternatively, there is JRuby, Groovy and lots more arriving all the time. Scala seems to be the one that gets the most press at the moment though.
精彩评论