source developer, Ruby fun • Pukiwiki, Ruby on Rails tutorial movie in Japanese, IKEA hacker • Furo-grammer (Coding in hot tub) • FrogApps, Inc. CTO // ex-Appcelerati Friday, November 2, 12
MIT license • Can access native functions • Have plan for Android version • Already released MobiRuby based app • Search “mobiruby” in AppStore on iOS Friday, November 2, 12
by dad Matz • Less memory and storage • Not required POSIX, only C99 • CRuby subsetNot included File, Socket, Thread and more ext libraries Friday, November 2, 12
:clickedButtonAtIndex, C::Int do |me, idx| if idx.to_i == 1 app = Cocoa::UIApplication._sharedApplica urlstr = "http://mobiruby.org" url = Cocoa::NSURL._URLWithString(urlstr) app._openURL url end end end \ class Cocoa::MyAlertView < Cocoa::UIAlertView define C::Void, :alertView, Cocoa::Object, :clickedButtonAtIndex, C::Int do |me, idx| if idx.to_i == 1 app = Cocoa::UIApplication._sharedApplica urlstr = "http://mobiruby.org" url = Cocoa::NSURL._URLWithString(urlstr) app._openURL url end end end Hello world - 1st half Friday, November 2, 12
:clickedButtonAtIndex, C::Int do |me, idx| if idx.to_i == 1 app = Cocoa::UIApplication._sharedApplica urlstr = "http://mobiruby.org" url = Cocoa::NSURL._URLWithString(urlstr) app._openURL url end end end \ class Cocoa::MyAlertView < Cocoa::UIAlertView Hello world - 1st half Friday, November 2, 12
message "I am MobiRuby" cancelButton "I know!" do end button "What's?" do openURL "http://mobiruby.org" end end alert = MyAlertView.new alert.show Friday, November 2, 12
on iOS/ Android. It’s mruby. I need more time to make public (probably June) Should I give you access to private repos? Yes! I want to try it! What’s your github account? Friday, November 2, 12
Create and modify class dynamically • ObjC class <- Ruby class <- ObjC class • ObjC value interconverted with Ruby value • Supported delegate and blocks Friday, November 2, 12
message "I am MobiRuby" cancelButton "I know!" do end button "What's?" do openURL "http://mobiruby.org" end end alert = MyAlertView.new alert.show Friday, November 2, 12
• Finally released alpha 1 • Can call almost iOS native functions • Writing test codes • Testing limited Thread feature. • It's only for iOS and mruby hackers Friday, November 2, 12
RubyGems? • Can I use exists Cocoa libraries? • Can I define new method to exist Cocoa class? • What version iOS does it support? Friday, November 2, 12
based and compile to native code • extended Ruby syntax • Not Open source • Stable and faster • RubyMotion is ... • LLVM based and compile to native code • extended Ruby syntax • Not Open source • Stable and faster Friday, November 2, 12
approach is different. • RubyMotion is ... • LLVM based and compile to native code • extended Ruby syntax • Not Open source • Stable and faster Friday, November 2, 12