JRuby Versus Python

View: New views
17 Messages — Rating Filter:   Alert me  

JRuby Versus Python

by Lance Gleason :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

JRuby

by Ramesh Rajamani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

 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

Parent Message unknown Re: JRuby

by Lance Gleason :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Re: JRuby

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

Reply to Author | View Threaded | Show Only this Message

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

Re: JRuby

by Ramesh Rajamani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Thanks for the answers...I used NetBean to learn the new frameworks JMaki and RAILS.  Have you used JMaki in web applications using JRuby? 
 
Regards,
Ramesh
 

> Date: Wed, 20 May 2009 07:35:42 -0700
> From: lgleasain@...
> Subject: Re: JRuby
> To: rameshrajamani@...
> CC: ajug-members@...
>
>
> 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.
> >


Get easy photo sharing with Windows Live™ Photos. Drag n’ drop
_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members

Re: JRuby

by rickcr-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I'm in Florida but follow this list. Is this presentation online
somewhere. I'd really like to see it.

On Wed, May 20, 2009 at 10:35 AM, Lance Gleason <lgleasain@...> wrote:

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



--
Rick R

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

test voucer- scjp

by 521 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


anyone need a test voucher?  i have one that expires june 13 and i can  
only make about 60% on practice tests as i have not studied java over  
6 months, i am trying to learn oracle and want to take an oracle exam,  
anyone want to trade?  or if someone wants this voucher they can have  
it and maybe assist me with some oracle questions/tips;  it says it's  
worth $300;  anyone interested?

barclay

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

Parent Message unknown Re: test voucer- scjp

by mikewebb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'd like it. I am afraid I have nothing to trade for it though.

-----Original Message-----

>From: 521@...
>Sent: May 21, 2009 1:51 PM
>To: ajug-members@...
>Subject: [ajug-members] test voucer- scjp
>
>
>anyone need a test voucher?  i have one that expires june 13 and i can  
>only make about 60% on practice tests as i have not studied java over  
>6 months, i am trying to learn oracle and want to take an oracle exam,  
>anyone want to trade?  or if someone wants this voucher they can have  
>it and maybe assist me with some oracle questions/tips;  it says it's  
>worth $300;  anyone interested?
>
>barclay
>
>_______________________________________________
>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

Re: test voucer- scjp

by 521 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ok, i'll think about it...

mikewebb@... wrote:

> I'd like it. I am afraid I have nothing to trade for it though.
>
> -----Original Message-----
>  
>> From: 521@...
>> Sent: May 21, 2009 1:51 PM
>> To: ajug-members@...
>> Subject: [ajug-members] test voucer- scjp
>>
>>
>> anyone need a test voucher?  i have one that expires june 13 and i can  
>> only make about 60% on practice tests as i have not studied java over  
>> 6 months, i am trying to learn oracle and want to take an oracle exam,  
>> anyone want to trade?  or if someone wants this voucher they can have  
>> it and maybe assist me with some oracle questions/tips;  it says it's  
>> worth $300;  anyone interested?
>>
>> barclay
>>
>> _______________________________________________
>> 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
>
>  

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

Re: test voucer- scjp

by 521 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

anyone have lots of scjp questions with answers provided for me to read
and read and read that they are able to share?

-java seems easy, it's just that there are many many rules, which i
understand are necessary with all the object talk going back and forth,
extending, implementing, type casting, etc.  -but really all it comes
down to is it's just data, doe!  hehe   does anyone have tons of
questions with answers provided for me to study/read over and over?

mikewebb@... wrote:

> I'd like it. I am afraid I have nothing to trade for it though.
>
> -----Original Message-----
>  
>> From: 521@...
>> Sent: May 21, 2009 1:51 PM
>> To: ajug-members@...
>> Subject: [ajug-members] test voucer- scjp
>>
>>
>> anyone need a test voucher?  i have one that expires june 13 and i can  
>> only make about 60% on practice tests as i have not studied java over  
>> 6 months, i am trying to learn oracle and want to take an oracle exam,  
>> anyone want to trade?  or if someone wants this voucher they can have  
>> it and maybe assist me with some oracle questions/tips;  it says it's  
>> worth $300;  anyone interested?
>>
>> barclay
>>
>> _______________________________________________
>> 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
>
>  

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

Re: test voucer- scjp

by Alan Honeycutt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

anyone have lots of scjp questions with answers provided for me to read
and read and read that they are able to share?

http://www.javaranch.com/roundup.jsp

Enjoy.

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

Re: test voucer- scjp

by 521 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


yes i've seen that, great too, i guess no-one has any questions w/  
answers and reasoning i can read through though eah?  i guess if one  
did, it would kind-of de-value someone passing the test though...  hehe

Quoting Alan Honeycutt <alan.n.honeycutt@...>:

>>
>> anyone have lots of scjp questions with answers provided for me to read
>> and read and read that they are able to share?
>>
> http://www.javaranch.com/roundup.jsp
>
> Enjoy.
>



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

Re: test voucer- scjp

by Burk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kathy Sierra and Bert Bates (two of the exam's authors) have published the "SCJP Study Guilde" and it's chock full of information about the topics covered by the exam. It has questions, answers, and explanations galore. I highly recommend it to anyone preparing for the exam.

Beware though, I was one of the techincal review team and helped make sure the contents were correct so I may be biased. OTOH, I don't get any royalties from sales of the book so you can probably trust me to be mostly objective about it.
"Any sufficiently analyzed magic is indistinguishable from science." Agatha Heterodyne (Girl Genius)


On Fri, May 22, 2009 at 11:27 AM, <521@...> wrote:

yes i've seen that, great too, i guess no-one has any questions w/
answers and reasoning i can read through though eah?  i guess if one
did, it would kind-of de-value someone passing the test though...  hehe

Quoting Alan Honeycutt <alan.n.honeycutt@...>:

>>
>> anyone have lots of scjp questions with answers provided for me to read
>> and read and read that they are able to share?
>>
> http://www.javaranch.com/roundup.jsp
>
> Enjoy.
>



_______________________________________________
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

Parent Message unknown Re: test voucer- scjp

by mikewebb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
That is definitely the way to go. Get her book and visit her JavaRanch website.  Then get Whizlabs to study.  And be sure to get better than a cow chip before you take the exam.


-----Original Message-----
From: SilverAnvil
Sent: May 22, 2009 2:20 PM
To: ajug-members@...
Subject: Re: [ajug-members] test voucer- scjp

Kathy Sierra and Bert Bates (two of the exam's authors) have published the "SCJP Study Guilde" and it's chock full of information about the topics covered by the exam. It has questions, answers, and explanations galore. I highly recommend it to anyone preparing for the exam.

Beware though, I was one of the techincal review team and helped make sure the contents were correct so I may be biased. OTOH, I don't get any royalties from sales of the book so you can probably trust me to be mostly objective about it.
"Any sufficiently analyzed magic is indistinguishable from science." Agatha Heterodyne (Girl Genius)


On Fri, May 22, 2009 at 11:27 AM, <521@...> wrote:

yes i've seen that, great too, i guess no-one has any questions w/
answers and reasoning i can read through though eah?  i guess if one
did, it would kind-of de-value someone passing the test though...  hehe

Quoting Alan Honeycutt <alan.n.honeycutt@...>:

>>
>> anyone have lots of scjp questions with answers provided for me to read
>> and read and read that they are able to share?
>>
> http://www.javaranch.com/roundup.jsp
>
> Enjoy.
>



_______________________________________________
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

test voucher- scjp

by 521 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


i just spoke with prometric and they do not care if it is me to use  
the voucher to take the scjp test;  i just logged in to register for  
the scjp test and they seem to be all over the world in major and  
minor cities/states;  the voucher shows as test=$300 then balance is  
$0 after the voucher is entered;  it expires June 30th 2009;  would  
anyone like to buy it from me for less-than $300 ($200)  i will sell  
it to them;  if not i am going to go ahead and take the test for the  
experience and maybe pass;  please let me know, here's the site to  
look for testing centers in your area http://prometric.com : if you're  
planning to take it anyway this is a good way to save bucks...

barclay





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

Re: test voucher- scjp

by Neil Shannon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Occasionally Sun runs free retake promotions, but you have to enter the
promo code when purchasing the voucher.  If you don't think you're ready
for the SCJP, it's probably a good idea to sell the voucher.  Sun's
really nit-picky on that exam...but overall it's worthwhile I guess.  
The SCWCD was more difficult, but it covers a lot of content.  If you
take the exam and fail, try and wait for the free retake promotion
before purchasing your next voucher, just in case :)

521@... wrote:

> i just spoke with prometric and they do not care if it is me to use  
> the voucher to take the scjp test;  i just logged in to register for  
> the scjp test and they seem to be all over the world in major and  
> minor cities/states;  the voucher shows as test=$300 then balance is  
> $0 after the voucher is entered;  it expires June 30th 2009;  would  
> anyone like to buy it from me for less-than $300 ($200)  i will sell  
> it to them;  if not i am going to go ahead and take the test for the  
> experience and maybe pass;  please let me know, here's the site to  
> look for testing centers in your area http://prometric.com : if you're  
> planning to take it anyway this is a good way to save bucks...
>
> barclay
>
>
>
>
>
> _______________________________________________
> 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

Re: test voucher- scjp

by 521 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

cool, tks for sharing that...

b

Neil Shannon wrote:

> Occasionally Sun runs free retake promotions, but you have to enter the
> promo code when purchasing the voucher.  If you don't think you're ready
> for the SCJP, it's probably a good idea to sell the voucher.  Sun's
> really nit-picky on that exam...but overall it's worthwhile I guess.  
> The SCWCD was more difficult, but it covers a lot of content.  If you
> take the exam and fail, try and wait for the free retake promotion
> before purchasing your next voucher, just in case :)
>
> 521@... wrote:
>  
>> i just spoke with prometric and they do not care if it is me to use  
>> the voucher to take the scjp test;  i just logged in to register for  
>> the scjp test and they seem to be all over the world in major and  
>> minor cities/states;  the voucher shows as test=$300 then balance is  
>> $0 after the voucher is entered;  it expires June 30th 2009;  would  
>> anyone like to buy it from me for less-than $300 ($200)  i will sell  
>> it to them;  if not i am going to go ahead and take the test for the  
>> experience and maybe pass;  please let me know, here's the site to  
>> look for testing centers in your area http://prometric.com : if you're  
>> planning to take it anyway this is a good way to save bucks...
>>
>> barclay
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>
>  

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