3 ms·
There seem to be 4 primary programming paradigms available on the JVM... Clojure - concurrency (immutable by default), macros (lisp-style) Scala - object/func
by vorg 13y ago
There seem to be 4 primary programming paradigms available on the JVM...
Clojure - concurrency (immutable by default), macros (lisp-style)
Scala - object/functional fusion, lazy evaluation
Ruby dialect (JRuby or Groovy) - "methodMissing" meta-object protocol
Java - low-level OOP (but functional lambdas and lazy streams coming in Java 8)
COMING SOON: Javascript (Rhino or Nashorn) - functional with prototype-style OOP
- chongli 13y agoClojure uses a lot of lazy evaluation in its collections library. Does that count?
- vorg 13y agoYes, I just listed the features of Clojure that weren't available in any other production-ready JVM language.
- mnbvcxza 13y agoWhy is Rhino coming soon?
- vorg 13y agoThat was "Javascript on the JVM is coming soon". I don't think Rhino's being used much in production (correct me if I'm wrong) perhaps because of slow execute times, but the far racier Nashorn is likely to kick out any lingering use of languages used for JVM scripty stuff, e.g. Groovy, Xtend, Beanshell.