How can we have a dynamically typed language over JVM?

前端 未结 3 682
花落未央
花落未央 2021-02-13 22:46

We have Jython, JRuby, Groovy which are dynamically typed and runs over JVM. I understand that these languages compile to byt

3条回答
  •  花落未央
    2021-02-13 22:49

    As others have pointed out, a dynamic language simply means that some (and often all) type checking is done entirely at runtime. You can build very dynamic languages even in very statically typed (or even nearly untyped (x86 machine code)) environments.

    Java has also been adding more and more native support for dynamic languages. Sun published a very good overview of what this means and how it helps dynamic languages perform well and feel at home on the JVM.

提交回复
热议问题