JRuby最新事情@札幌

1,295 views
1,227 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
1,295
On SlideShare
0
From Embeds
0
Number of Embeds
123
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • JRuby最新事情@札幌

    1. 1. 12.0 Ruby 1.8.7 Ruby 1.9.1 10.0 JRuby 1.4.0 8.0 6.0 4.0 2.0 0 100 200 300 400 500
    2. 2. camelCase() snail_case() java_send java_alias
    3. 3. require 'java' import javax.swing.JFrame import javax.swing.JButton frame = JFrame.new 'Hello Application' button = JButton.new 'Hello World!' button.add_action_listener do frame.dispose end frame.get_content_pane.add button frame.pack frame.set_visible true
    4. 4. ScriptingContainer
    5. 5. ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine engine = manager.getEngineByName("jruby"); engine.eval("puts "Hello World!"");
    6. 6. require 'ffi' module Kernel extend FFI::Library attach_function :getlogin, [], :pointer end puts getlogin.read_string

    ×