addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [ljc] Ruby Versus Java

From: Kevin W.
Sent on: Tuesday, August 7, 2012 6:11 PM
The main difference is that Ruby doesn't run on the JVM, unless you're referring to JRuby, in which case you'll not be able to use a number of "native" Ruby libraries, but you will gain access to Java libraries.

Ruby is also slower than Java - this being the reason why Twitter migrated from Ruby to Scala (also a JVM language), and why we're now seeing the fail-whale much less often.  JRuby is also slower, in large part a consequence of being dynamically typed on the JVM.  Having said that... Charles Nutter (JRuby creator) has done more to get good dynamically typed performance from the JVM than anyone else I know.

As for syntax... Ruby wins over Java hands down, it's far more developer friendly.  In this space, you also want to look at other JVM languages:

Scala - statically typed, object/function hybrid, rapidly growing adoption
Clojure - dynamically typed, LISP syntax, rapidly growing adoption
Ceylon - statically typed, relatively immature, feature set halfway between Java and Scala
Kotlin - statically typed, relatively immature, feature set halfway between Java and Scala
Groovy - dynamically typed, well established, 
Fantom - semi-statically typed, limited generics, uses the JVM and .net with equal ease
Mirah - Statically typed "reboot" of JRuby, also by Charles Nutter

Community is a difficult point to answer.  Ruby has two communities: those who use rails, and those who don't.

I've heard it said that "the best thing about Ruby is its community" and "the worst thing about Ruby is its community".  I think that both these points are completely valid :)

On 7 August[masked]:55, alexander sharma <[address removed]> wrote:

I wanted to ask what the advantages are of using ruby over java.

Is the syntax better?



People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy