tag:blogger.com,1999:blog-8655567.post4470149510253231298..comments2023-10-30T01:48:47.905-07:00Comments on Panic From Fuzzy: JRuby Bookfuzzyhttp://www.blogger.com/profile/04442788840388847156noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8655567.post-13286409582684288512007-12-14T07:17:00.000-08:002007-12-14T07:17:00.000-08:00Viking:"POR (Plain Old Ruby) is good enough for mo...Viking:<BR/><BR/>"POR (Plain Old Ruby) is good enough for most cases."<BR/><BR/>I've determined that the system I'm building may not be the "most" case based on integration, BI, etc.<BR/><BR/>I'm not sure yet though. It may just be that Java is a safety net for me in that if I get into a bind where I need a library that Ruby doesn't have or if there is a better option in Java, it is nice to know that it is easily available.<BR/><BR/>For instance if I want to integrate with some Pentaho API I can. If I don't want to use ActiveRecord and instead want to use iBatis or Hibernate I can. If I need to do something that REXML can't do I can use any Java XML library. I think there are lots of examples like this. <BR/><BR/>Time will tell of course. Lots to learn. But nothing that a little set-based dev can't sort out ;)fuzzyhttps://www.blogger.com/profile/04442788840388847156noreply@blogger.comtag:blogger.com,1999:blog-8655567.post-44017324102544556432007-12-14T07:02:00.000-08:002007-12-14T07:02:00.000-08:00Thanks for clarifying Charles. I know that perform...Thanks for clarifying Charles. I know that performance wasn't always on par, good to know.<BR/><BR/>I still have my concerns for Mike though around JRuby not really being Ruby. As someone who has done a good bit of Ruby development, when I sit down at jirb and have to wonder "was that a C-based module or do I need to be importing something from Java?", the context switch is an impediment to my productivity. <BR/><BR/>If I need a quick, productive Java scripting environment, JRuby is my first choice (especially now with readline support, prior to that Jython would have won out). But if I'm building a web application from scratch, I'm working on Rails 2.0 and I don't want to worry about bridging in Java. POR (Plain Old Ruby) is good enough for most cases and you can just reference the standard Ruby docs, libs, etc.Erik Onnenhttps://www.blogger.com/profile/14653098194183012398noreply@blogger.comtag:blogger.com,1999:blog-8655567.post-10555740042066099062007-12-13T05:58:00.000-08:002007-12-13T05:58:00.000-08:00erik: That's not really true. JRuby's compatibilit...erik: That's not really true. JRuby's compatibility is extremely high now, and for examples like you state there are no known incompatibilities. Rails runs excellent in JRuby--faster than in native Ruby--and that wouldn't be possible without JRuby having solid compatibility. And even without a spec, we have been able to map Ruby to the JVM with a very high confidence level; confidence enough for companies like Oracle and Sun to build large public-facing sites entirely on JRuby on Rails.<BR/><BR/>If you want the best performance from Rails and the best selection of libraries, JRuby is where you want to be.Charles Oliver Nutterhttps://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-8655567.post-37357837675287776572007-12-13T01:55:00.000-08:002007-12-13T01:55:00.000-08:00Hum, at this point I'd be very careful of JRuby. L...Hum, at this point I'd be very careful of JRuby. Looks pretty on paper, but the speed of the impl is all over the map. That is something you can work around, but more importantly, in talking with some guys I work with who in turn worked directly with some contributors, it's years off. Until Matz gives them a language spec, it's nearly impossible to map Ruby to the JVM in a deterministic way. In other words, you will spend a lot of time wondering, "will this block actually run and honor the closure without a JVM long jump". If that makes no sense, be rul, rul careful :)<BR/><BR/>For all but the most demanding, it's generally possible to scale ruby out anyway (mongrel). Unless you are really bound to the JVM, JRuby this is not where you want to be.Erik Onnenhttps://www.blogger.com/profile/14653098194183012398noreply@blogger.comtag:blogger.com,1999:blog-8655567.post-88167898116444499952007-12-12T18:47:00.000-08:002007-12-12T18:47:00.000-08:00I still entertain thoughts that I'll be able to do...I still entertain thoughts that I'll be able to do some new development again and lean towards Ruby. But links and interfaces tend to be the first stumbling block for me so seeing improved Java integration and API access keeps my hopes alive. Maybe 2008 will be the year...Kris Tuttlehttps://www.blogger.com/profile/16661982356619943285noreply@blogger.com