• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
JRuby最新事情@札幌
 

JRuby最新事情@札幌

on

  • 1,478 views

 

Statistics

Views

Total Views
1,478
Views on SlideShare
1,359
Embed Views
119

Actions

Likes
0
Downloads
6
Comments
0

4 Embeds 119

http://recompile.net 94
http://blog.livedoor.jp 21
http://takai.blog.jp 3
http://74.125.153.132 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

JRuby最新事情@札幌 JRuby最新事情@札幌 Presentation Transcript

  • 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
  • camelCase() snail_case() java_send java_alias
  • 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
  • ScriptingContainer
  • ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine engine = manager.getEngineByName("jruby"); engine.eval("puts "Hello World!"");
  • require 'ffi' module Kernel extend FFI::Library attach_function :getlogin, [], :pointer end puts getlogin.read_string