Slideshow transcript
Slide 1: Rubyists Dream of Eclectic Java Leveraging Enterprise Java for Ruby fu Vishnu Gopal www.vish.in
Slide 2: Me • Born and brought up a Keralite. Mallu. • Worked in the Mobile VAS sector • Founded Torque: www.torque.co.in • Uzanto & SlideShare: www.slideshare.net • Me: www.vish.in
Slide 3: Ruby • New kid on the block (?) • Dynamic programming, meta-programming • Less is more, succinct code • Riding the Rails wave • Ruby (MRI) is Slow(er)
Slide 4: Java • Most popular programming language • Rich toolset, GUI tools, editors, RAD IDEs • Enterprise support and adoption • Community and Libraries • Java is OpenSource • Cumbersome, heavy language, strict typing
Slide 5: JVM • A tried and true Virtual Machine • JSR 223: Scripting for the Java Platform • Java 6 increased performance! • SUN
Slide 6: Java + Ruby • JVM is cool, Java has tools • Ruby brings elegance • Any solution must: • Preserve Ruby’s ability to reflect on itself • Not sacrifice Java performance and toolset • Be an elegant bridge
Slide 7: Java + Ruby = JRuby • Ruby interpreter written in 100% Java • Walks, talks and quacks like Ruby • Almost all of the Ruby Standard Library has been ported • Even runs Rails! (with warnings)
Slide 8: Interlude One JRuby v/s Ruby
Slide 9: Rails on JRuby • You can use Camping/JRuby well • Ruby hype is mostly Rails • JRuby running Rails is a huge milestone • Not there yet, but good progress • Simple web applications run well • SQLite adapter isn’t supported
Slide 10: SlideShare on JRuby • Complicated app • 90K+ of Ruby Code • Plugins, homegrown extensions • Memcached libraries, fragment caching, backgroundrb • Ported over in 3 hours of work • Around 40% functionally complete
Slide 11: Interlude Two SlideShare on JRuby
Slide 12: Slideshare/JRuby Workarounds • script/console (in dev mode) worked without a hitch • script/server had problems • Resolved by: • removed @@instance variables • removed flash notices • removed OutputCompression plugin
Slide 13: Future • JVM is cool, Java toolset scene is cooler • Netbeans/Ruby/tools integration • Dynamically add in Java modules to Rails applications • Glassfish and autodeploy as WARs • Get Rails adoption into the enterprise
Slide 14: Finis Questions? www.slideshare.net/vishnu
Slide 15: Alternatives to JRuby • Scripting Language: • JPython • Grails & Groovy • Other Java cool stuff: • Google Web Toolkit



Add a comment on Slide 1
Login or Signup to add a comment!- Favorites & Groups
Showing 1-50 of 4 (more)