Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Clojure uses a lot of lazy evaluation in its collections library. Does that count?


Yes, I just listed the features of Clojure that weren't available in any other production-ready JVM language.


Why is Rhino coming soon?


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: