« Return to Thread: JRuby Versus Python

Re: JRuby

by Kakolla, Nag-2 :: Rate this Message:

Reply to Author | View in Thread

I liked your presentation style compared to what I am used to Ajug where your stumbling makes me feel u are one of us(on a lighter note)

On a serious note, I like where you actually running the code and showing how it implements rather than running thru slides.

I kinda grasped the essence of JRuby.

Thanx & Regards,
 
Nag Kakolla
404-978-8066
-----Original Message-----
From: Lance Gleason [mailto: ]
Sent: Wednesday, May 20, 2009 10:36 AM
To: Ramesh Rajamani
Cc: ajug-members@...
Subject: Re: [ajug-members] JRuby


I hopefully have a few answers for you :)

> 1)
> Can we create a custom library in Ruby language like
> java?

Yes,  people do it all the time.  Gems are the most common way,  but there are other ways as well.

Here is a link for more information
http://www.buildingwebapps.com/topic/5118-ruby-gems-and-libraries-modules-of

> 2) How is the security aspect of Ruby language? Since Ruby
> is developed using C language and i guess one can also
> implement pointers which is not allowed in Java language.
> Correct me if iam wrong...

You do not implement C pointers in Ruby (and definitely not in JRuby) so that is not a concern.  Security is addressed in Rails and Ruby,  but there has not been as much of a focus on it as there has with some of the Java Frameworks.....that doesn't mean that it can't be added.  There is active work in improving this area.

> 3) Yesterday
> you were telling in Java we have different classes and
> in JRuby we can maintain all the classes in one file. But i
> some how feel if we segregate the large file and split into
> different parts even novice can understand the code and
> modularity can be achieved. Correct me if iam wrong...

You can to a point,  but I would only recommend doing that if it makes sense.  When you have lots of classes it makes more sense to segregate the classes into different files (preferably with names that match the classes).  In Rails the convention forces you to do that.  Ruby gives you the freedom to break these rules when you need to......like alcohol,  breaking these rules is fine in moderation.

> 4) I tried the blog stuff couple of months back with JRuby
> in NetBean 6.1 under windows platform. The
> development work is fast when compare to Java. But
> i feel the gem update problem is there
> since Ruby version is looking for new version of
> NetBean and vice versa...

The gems can cause some issues from time to time.....for the most part they work but nothing is perfect......  I have found that the development tool support for Ruby (and to a lesser degree JRuby) is not a robust on Windows as it is on Linux and OSX,  but it is pretty good today and is constantly improving....  though I am guilty of preferring the Mac for a dev environment and deploying to Linux :).

> It was a nice presentation yesterday ...

Thanks,  it was my first long technical presentation and I have a lot of things that I want to change/improve before I do another one......feedback is welcome.

Lance
--- On Wed, 5/20/09, Ramesh Rajamani <rameshrajamani@...> wrote:

> From: Ramesh Rajamani <rameshrajamani@...>
> Subject: JRuby
> To: lgleasain@...
> Cc: ajug-members@...
> Date: Wednesday, May 20, 2009, 8:30 AM
>
>
>
> #yiv668492107 .hmmessage P
> {
> margin:0px;padding:0px;}
> #yiv668492107 {
> font-size:10pt;font-family:Verdana;}
>
>
>  
>
>  Hello Leasain,
>
>  
>
>                   
> I have few questions to you
>
>  
>
>                    1)
> Can we create a custom library in Ruby language like
> java?
>
>  
>
>                   
> 2) How is the security aspect of Ruby language? Since Ruby
> is developed using C language and i guess one can also
> implement pointers which is not allowed in Java language.
> Correct me if iam wrong...
>
>  
>
>                    3) Yesterday
> you were telling in Java we have different classes and
> in JRuby we can maintain all the classes in one file. But i
> some how feel if we segregate the large file and split into
> different parts even novice can understand the code and
> modularity can be achieved. Correct me if iam wrong...
>
>  
>
>                   
> 4) I tried the blog stuff couple of months back with JRuby
> in NetBean 6.1 under windows platform. The
> development work is fast when compare to Java. But
> i feel the gem update problem is there
> since Ruby version is looking for new version of
> NetBean and vice versa...
>
>  
>
>                   
> Iam currently doing SCEA and love to learn new technologies
> like JRuby. I also would like to know the
> realtime advantage or problem of using JRuby. 
>
>  
>
>                   
> It was a nice presentation yesterday ...
>
>  
>
>  
>
> Thanks and Regards,
>
> Ramesh Rajamani
>
>  
> > Date: Tue, 19 May 2009 21:53:43 -0700
> > From: lgleasain@...
> > To: ajug-members@...
> > Subject: [ajug-members] JRuby Versus Python
> >
> >
> > Thanks for the question Ann,
> >
> > I'm going to answer this on the mailing list in
> case this question is useful to others.
> >
> > Python is a great language. It has a lot of the power
> of Ruby. When you are off the JVM comparing C-Python to
> C-Ruby there are definite differences between the two
> languages that might lead you in one direction or another.
> For example with Python the garbage collector runs at a set
> interval for a determinate amount of time. Ruby on the other
> hand uses a mark and sweep collector that is a lot more like
> Java. Python on C is also a lot more performant than
> C-Ruby.
> >
> > When you bring both languages on the JVM two other
> differences come to mind. One, web development frameworks.
> Ruby has rails, Merb, Camping etc. along with loads of
> testing frameworks etc.. Python has DJango and a handful of
> testing frameworks, but also from the benchmarks that I have
> seen (and Your Mileage May Vary) it appears to be much
> slower than JRuby on the JVM.
> >
> > If you are looking for another language to learn,
> JRuby is fun. If you are not happy with DJango, need better
> performance than Jython (but not as much as pure Java would
> give you), or want to leverage other Ruby code then Ruby
> would be worth your while.
> >
> > If you don't have any specific uses for the
> language other than curiosity you might want to consider
> having a look at Clojure, Scala or (if you are really
> adventurous) Erlang. The functional paradigm will really
> stretch your mind.
> >
> > Thy Python community tends to have more of a
> scientific/mathmatical slant whereas the Ruby community has
> a younger start up Web 2.0 type of feel to it........and you
> are not forced to use all of those tabs with Ruby :)
> >
> > Lance
> >
> > PS: Great Blog!
> >
> > > Hi Lance,
> > >
> > > Thanks for your talk and demo of JRuby I actually
> re-downloaded Ruby
> > > tonight to start playing with it again. I was
> just curious, other than the
> > > object oriented aspect from Ruby, have you come
> across how it compares to
> > > other hybrid languages? I use Jython a lot at
> work and was curious if you
> > > have seen or heard how the two compare.
> > >
> > > Thanks,
> > > --
> > > Ann
> > > http://annalytical.addicks.us/wordpress/
> > >
> > > "Never trust a programmer with a
> screwdriver"
> >
> > _______________________________________________
> > ajug-members mailing list
> > ajug-members@...
> > http://www.ajug.org/mailman/listinfo/ajug-members
>
> MSN Quiz Test your skill and wits on this
> revered battleground of knowledge  IMing
> with Windows Live Messenger just got better.
>

_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members

_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members

 « Return to Thread: JRuby Versus Python