InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

JRuby Roundup: JRuby 1.4 Final Released, New Windows Native Launcher, HPricot 0.8.2

Posted by Werner Schuster on Nov 06, 2009

Sections
Development
Topics
Java ,
JRuby ,
Ruby
Tags
Open Source Project Releases ,
XML ,
JRuby ,
Windows

JRuby 1.4.0 is now available (JRuby 1.4 download links).

InfoQ covered the changes and new features in JRuby 1.4 release candidates which were already nearly feature complete.

One addition late in the release cycle was a native launcher for JRuby on Windows. Vladimir Sizikov explains the native launchers advantages over the old .bat file based launcher:

I’ve been fixing some JRuby BAT launcher script errors recently, and it was tricky, as always: as soon as you fix one issue with the way the BAT file parses parameters, a new one pops up (and a couple of regressions on top of that). Spaces, brackets, quotes, & and ^ signs, you name it. We’ve been playing this game for years now, and every time it just gets uglier and uglier. [..]
[T]he JRuby native launcher for Windows [..] has nice Java detection, an ability to launch Java in-process (so in the Task Manager one can see jruby.exe process, not just java.exe), it handles most of JRuby command line arguments already, it allows to pass parameters to the JVM when needed (via –J switch, like we always did), and it can handle spaces and brackets in the path, etc.

Vladimir also mentions the proper way to check for the OS version Ruby runs on:

    require ‘rbconfig’
    WINDOZE = Config::CONFIG[‘host_os’] =~ /mswin|mingw/

Vladimir's blog post contains more details and the reasons why this is preferable.

Finally, Nick Sieger announces a new version of _why's Hpricot, a popular library for accessing HTML/XML. Hpricot 0.8.2 is available from Rubyforge. The new version addresses long standing issues (JRUBY-3732 explains the history) and makes Hpricot work on JRuby again.

No comments

Watch Thread Reply

Educational Content

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.

Max Protect: Scalability and Caching at ESPN.com

Sean Comerford unveils ESPN.com’s architecture, what components are used and why, and the current changes the website goes through.

The Seven Deadly Sins of Enterprise Agile Adoption

Are there repeated patterns of failure on Enterprise Agile Enablement efforts? Sanjiv and Arlen discuss Seven Deadly Sins to avoid when adopting Agile in an enterprise.

Questions for an Enterprise Architect

Erik Dörnenburg answers: What is Enterprise and Evolutionary Architecture?, discussing 4 issues: Turning strategy into execution, Ensuring conformance, Where do the architects sit? Buying or building?

Wrap Your SQL Head Around Riak MapReduce

Sean Cribbs explains what Map-Reduce and Riak are, why and how to use Map-Reduce with Riak, and how to convert SQL queries into their Map-Reduce equivalents.