JRuby in The Enterprise

2,555 views

Published on

Code on github: https://github.com/leonardoborges/railssummit09

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,555
On SlideShare
0
From Embeds
0
Number of Embeds
498
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

JRuby in The Enterprise

  1. 1. JRuby in the Enterprise Leonardo BorgesSunday, October 4, 2009
  2. 2. JRuby in the Enterprise Leonardo BorgesSunday, October 4, 2009
  3. 3. Who am I? • Consultant at ThoughtWorks Australia (former developer at HotelSearch.com) • Open source contributions - Rails - JRuby - rcov_plugin - readable_test_names_runner • Blogger • www.leonardoborges.com • First time speaker JRuby in the EnterpriseSunday, October 4, 2009
  4. 4. Who are you? JRuby in the EnterpriseSunday, October 4, 2009
  5. 5. Who are you? • Ruby? JRuby in the EnterpriseSunday, October 4, 2009
  6. 6. Who are you? • Ruby? • Rails? JRuby in the EnterpriseSunday, October 4, 2009
  7. 7. Who are you? • Ruby? • Rails? • Java? JRuby in the EnterpriseSunday, October 4, 2009
  8. 8. Who are you? • Ruby? • Rails? • Java? • JRuby? JRuby in the EnterpriseSunday, October 4, 2009
  9. 9. Who are you? • Ruby? • Rails? • Java? • JRuby? Why are you here? JRuby in the EnterpriseSunday, October 4, 2009
  10. 10. Why JRuby? • Better threading support • Leverage the knowledge • Improved performance of an existing team • Java integration (with a • Reuse existing logic vast array of libraries) • Testing • Active community • Full Ruby 1.9 support on the way JRuby in the EnterpriseSunday, October 4, 2009
  11. 11. ...but before we get dirty Java integration: Ruby meets swing JRuby in the EnterpriseSunday, October 4, 2009
  12. 12. JavaRuby meets swing Integration frame = javax.swing.JFrame.new("Hello Rails Summit 2009!") frame.setDefaultCloseOperation(javax.swing.JFrame::EXIT_ON_CLOSE) frame.setSize(java.awt.Dimension.new(200,200)) label = javax.swing.JLabel.new("JRuby rocks!") frame.getContentPane.add(label, java.awt.BorderLayout::CENTER) frame.setVisible(true) JRuby in the EnterpriseSunday, October 4, 2009
  13. 13. JavaRuby meets swing Integration frame = javax.swing.JFrame.new("Hello Rails Summit 2009!") frame.default_close_operation = javax.swing.JFrame::EXIT_ON_CLOSE frame.size = java.awt.Dimension.new(200,200) label = javax.swing.JLabel.new("JRuby rocks!") frame.content_pane.add(label, java.awt.BorderLayout::CENTER) frame.visible = true JRuby in the EnterpriseSunday, October 4, 2009
  14. 14. Case Study Introducing JTasks JRuby in the EnterpriseSunday, October 4, 2009
  15. 15. Extending the Case Study listing tasks with JRuby JRuby in the EnterpriseSunday, October 4, 2009
  16. 16. What’s next? JRuby 1.4 RC1 is out... • 1.8.7 compatible • Improved 1.9 Compatibility • Java method selection and Coercion API • Ruby2Java in the core API • and more... JRuby in the EnterpriseSunday, October 4, 2009
  17. 17. Conclusion JRuby in the EnterpriseSunday, October 4, 2009
  18. 18. Q&A JRuby in the EnterpriseSunday, October 4, 2009
  19. 19. References • www.engineyard.com/blog • www.jruby.org • www.leonardoborges.com • github.com/leonardoborges/readable_test_names_runner Slides / Source code • http://github.com/leonardoborges/railssummit09 JRuby in the EnterpriseSunday, October 4, 2009

×