JRuby
Charles Nutter、Thomas Enebo、Ola Bini、Nick Sieger | |
9.4.1.0
/ 2023 | |
リポジトリ | |
| |
プラットフォーム |
Java |
Rubyインタプリタ | |
ライセンス | CPL/GPL/LGPL |
http://www.jruby.org/ |
JRuby は、RubyインタプリタのJavaによる
JRuby の
歴史 [編集 ]
JRuby は2001
NetBeans Ruby Pack は NetBeans 6.0 から
JRuby 1.1 は
JRuby 1.1.1 は Fedora 9 にパッケージとして
バージョン 1.1.1
2015
Rails[編集 ]
JRuby はバージョン 0.9(2006
マルチ Virtual Machine 共同 開発 [編集 ]
2008
Java仮想 マシン上 の動的 呼 び出 し[編集 ]
JSR 292 (Supporting Dynamically Typed Languages on the JavaTM Platform) [18]は
新 たに JVM レベルでinvokedynamic
命令 を追加 し、動的 型 検査 に基 づくメソッド呼 び出 しを可能 にする。実行 時 に動的 にクラスやメソッドを変化 させられるようにする。
サンのオープンソースプロジェクト Da Vinci Machine で、このJSRのプロトタイプ
JRubyチームは、
設計 [編集 ]
2006
JRuby は
JRubyプログラミング[編集 ]
JRuby は
JRuby から Java を呼 び出 す[編集 ]
JRuby のJFrame
に JLabel
を
include Java
frame = javax.swing.JFrame.new()
frame.getContentPane().add(javax.swing.JLabel.new('Hello, World!'))
frame.setDefaultCloseOperation(javax.swing.JFrame::EXIT_ON_CLOSE)
frame.pack()
frame.set_visible(true)
また、JavaコードをよりRuby
frame.content_pane.add label
frame.visible = true
Java から JRuby を呼 び出 す[編集 ]
JRuby は
性能 [編集 ]
JRuby は
インタプリタモード[編集 ]
このモードでは、JRuby は
Ruby 1.9 (YARV)ベンチマークを Java 6 で
JITモード[編集 ]
JITモードは JRuby 1.1 から
また、
AOTモード[編集 ]
サーバVMのままさらにインタプリタからコンパイルモードに
脚注 [編集 ]
- ^ “JRuby 9.4.1.0 Released”. 2023
年 2月 10日 閲覧 。 - ^ Jacki (2006
年 9月 7日 ). “Sun Welcomes JRuby Developers”. On the Record. 2006年 9月 9日 閲覧 。 - ^ Ola Bini. “ThoughtWorks”. On the Record. 2008
年 9月 16日 閲覧 。 - ^ “JRuby guys jumped from fear of the unknown” (2009
年 8月 3日 ). 2009年 12月15日 閲覧 。 - ^ Ruby & JRuby Support Available in NetBeans IDE
- ^ Ruby brightens the NetBeans platform
- ^ a b “JRuby performance benchmark”. shootout.alioth.debian.org (2007
年 11月5日 ). 2007年 11月5日 閲覧 。 - ^ a b Cangiano, Antonio (2007
年 3月 12日 ). “The Great Ruby Shootout”. 2008年 2月 1日 閲覧 。 - ^ Nutter, Charles (2008
年 4月 25日 ). “JRuby 1.1.1 in RedHat Fedora”. 2008年 4月 26日 閲覧 。 - ^ “jruby”. fedoraproject.org. 2008
年 4月 26日 閲覧 。 - ^ “JRuby 1.1.3 Released”. jruby.codehaus.org (2008
年 7月 19日 ). 2008年 7月 19日 閲覧 。 “Our goal is to put out point releases more frequently for the next several months (about 3-4 weeks a release). We want a more rapid release cycle to better address issues brought up by users of JRuby.” - ^ “Ruby 2.2
互換 の「JRuby 9.0.0.0」リリース”. OSDN Magazine (2015年 7月 23日 ). 2015年 7月 24日 閲覧 。 - ^ “Rails Support”. JRuby Team. 2008
年 2月 17日 閲覧 。 - ^ Nutter, Charles (2008
年 8月 24日 ). “Zero to Production in 15 Minutes”. 2008年 8月 27日 閲覧 。 - ^ 2807のRails
固有 テストケースのうち 98.6% にパスした。詳 しくは JRuby 0.9.8 Released参照 - ^ “Success Stories”. JRuby Wiki (2008
年 1月 29日 ). 2008年 2月 17日 閲覧 。 - ^ “
東京大学 とサン・マイクロシステムズ、産学 連携 モデルによる共同 研究 テーマを決定 、研究 活動 を開始 ”. サン・マイクロシステムズ (2008年 1月 10日 ). 2008年 9月 16日 閲覧 。 - ^ see JSR 292
- ^ “Sub-Projects and Investigations”. Sun Microsystems (2007
年 ). 2008年 2月 6日 閲覧 。 - ^ Rose, John (2008
年 8月 26日 ). “Happy International Invokedynamic Day!”. 2008年 9月 3日 閲覧 。 - ^ Lorimer, R.J. (2008
年 9月 1日 ). “Dynamic Invocation Runs on OpenJDK”. infoq.com. 2008年 9月 3日 閲覧 。 - ^ Nutter, Charles (2008
年 9月 11日 ). “A First Taste of InvokeDynamic”. 2008年 9月 13日 閲覧 。 “I managed to successfully wire InvokeDynamic directly into JRuby's dispatch process! Such excitement! The code is already in JRuby's trunk, and will ship with JRuby 1.1.5 (though it obviously will be disabled on JVMs without InvokeDynamic).” - ^ a b Nutter, Charles (2007
年 9月 27日 ). “The Compiler Is Complete”. 2007年 10月 12日 閲覧 。 - ^ “Script your Java applications and efficiently reuse your Java libraries with this dynamic language”. javaworld.com (2006
年 7月 17日 ). 2008年 4月 26日 閲覧 。 - ^ JSR 223: Scripting for the Java Platform Specification Request
- ^ Nutter, Charles (2007
年 4月 16日 ). “Paving the Road to JRuby 1.0: Performance”. 2007年 11月5日 閲覧 。 - ^
一部 のテストケースを除 くと、Ruby 1.8 に比 べて 50%程度 の遅 さである(一部 とは全部 で39のうち、thread_create_join, sieve, count_words, mandelbrot, and answer の5つ) - ^ Nutter, Charles (2007
年 10月 12日 ). “Performance Update”. 2007年 10月 12日 閲覧 。 - ^ Nutter, Charles (2007
年 10月 12日 ). “Performance Update”. 2007年 10月 12日 閲覧 。 - ^ Nutter, Charles (2008
年 2月 16日 ). “JRuby RC2 Released; What's Next?”. 2008年 2月 17日 閲覧 。 “JRuby's performance regularly exceeds Ruby 1.8.6, and in many cases has started to exceed Ruby 1.9.” - ^ Sieger, Nick (2007
年 10月 25日 ). “JRuby on Rails: Fast Enough”. 2007年 10月 28日 閲覧 。 - ^ JRuby 50
倍 速 、MacRubyはすでに到達 域 -竹内 関数
関連 項目 [編集 ]
外部 リンク[編集 ]
- JRuby
公式 サイト - JRubyウィキ
- JRubyHub.com: The hub for all resources related to JRuby and JRuby on Rails (JRoR)
- JRuby development in NetBeans
- Easy to install distribution of JRuby, Tomcat and Glassfish
- JRubyを
知 る! Think IT - JRubyチュートリアル CodeZine
- Java + RubyのJRuby - EJBからSwingまでRubyからJavaを
使 い倒 す マイコミジャーナル - 「
本家 Rubyより速 い」、JRuby開発 者 に聞 く アットマーク・アイティ
マルチメディア[編集 ]
- JRuby: The power of Java and Ruby - YouTube
- JavaOne 2007 Exploiting JRuby
- JavaOne 2007 JRuby on Rails
- Roumen's Ruby Flash Demo (Part One): JRuby on Rails in NetBeans
- Roumen's Ruby Flash Demo (Part Two): Advanced JRuby editing features in NetBeans
- Java Posse, Interview with Charles Oliver Nutter and Thomas Enebo about JRuby