开发者

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 ...

  1. Lisp : Lisp as an Alternative to Java
  2. Scala,
  3. Jython,
  4. JRuby,
  5. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜