social coding with jruby

Post on 08-May-2015

4.095 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Social Coding

With JRuby

伊藤忠テクノソリューションズ株式会社日本JRubyユーザー会

大場光一郎

2011-11-12;関西Ruby会議04;大阪南港ATC

Rubyist証明写真

http://www.flickr.com/photos/elana/3145561746/

@june29

@nari3

@xibbar

@sora_h

@jugyo

@arton

@conceal_rs @nahi

•JRubyのこと•JRubyの開発•Social Coding with JRuby

What is JRuby

• JavaVM上で動作するRuby処理系•高速• Native Threadに対応(GIL無し)• Java Integration• Ruby 1.8とRuby 1.9の構文• Open Source(GPL/LGPL/CPL)

1.0 1.2 1.4 1.6

2007年 2009年 2009年 2010年

1.8.6 100% compatible--1.9FFI

1.8.7 100% compatibleJava Embedded

GAE/J対応YAML(Yecht)

Rails対応 1.9.2 compatibleWindowsprofilerC ExtMaven

Started in 2002

require ‘java’

require ‘ant-1.8.2.jar’=> truejava_import org.apache.tools.ant.Target=> Java::OrgApacheToolsAnt::Targetp Target=> Java::OrgApacheToolsAnt::Targett = Target.new=> #<Java::OrgApacheToolsAnt::Target:0x3fb35ece>

h = java.util.HashMap.newh.isEmptyh.is_emptyh.is_empty?h.getForNullKeyh.for_null_key

h.put ‘ujihisa’, ‘married! congrats!’rh = a.to_hash=> {"ujihisa"=>"married! congrats!"}rh.to_java

java.lang.Thread.new do puts “Thread”end.start

% jirbirb(main)> JRUBY_VERSION=> “1.6.5”

Scripting Java

1.6.5(2010.10.25)

1.7.0-dev

1.6.5• C Extension (Experimental)• Windows (win32ole, etc...)• Ruby 1.9.2 / 1.8.7• .jrubyrc• Rubygems 1.8.9• Installer (OSX, Win)• RubyGems maven

both 1.9 and 1.8 are supported

1.7.0-dev

• Performance• IR• InvokeDynamic (Java SE 1.7u2)•動的最適化(dynopts)

gem install redcarredcar install

Development of JRuby

JRuby Ecosystem

bugs.jruby.org

git.jruby.org github.com/jruby

developer

user

jruby-dev

ci.jruby.org

test

#jruby

contributor

@tom_enebo @headius

@nicksieger @hiro_asari

@nahi subbuss

@yokolet @vsizikov

Help!

• Ruby1.9モードのバグ報告、パッチ• wiki.jruby.org•ドキュメントの強化•英語/日本語の翻訳•各種ライブラリの開発(特にC拡張)

JRuby is developed by Java.

“Rubyに興味があったのに、Javaで実装するということになって、今ではJavaばかり使っています(笑)”

- Thomas E.Enebo -http://www.atmarkit.co.jp/news/200705/10/jruby.html

% git clone git@github../jruby.git% git checkout -b foo_branch...% git add foo% git commit -m “foo bar”% git push origin foo_branch

Pull Request!!!

Pull request

Iʼm a contributor

範囲を絞る

継続

RubyKaigi2007

最初は、話しかけてT-Shirtもうらうので精一杯

JRubyKaigi2010

JRubyKaigi2011

“それが「貢献」になるかどうかなどとはまったく関係がなく、 単に利己的な理由によるためだけでも、積極的に関わること

を勧める理由になるだろう。”

高橋征義 - るびま第35号巻頭言http://jp.rubyist.net/magazine/?0035-ForeWord

https://twitter.com/#!/shugomaeda/status/134023660305514496

“それが「貢献」になるかどうかなどとはまったく関係がなく、 単に利己的な理由によるためだけでも、積極的に関わること

を勧める理由になるだろう。”

高橋征義 - るびま第35号巻頭言http://jp.rubyist.net/magazine/?0035-ForeWord

be connected to the world

top related