• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
RubyならMacでしょう
 

RubyならMacでしょう

on

  • 1,855 views

RubyならMacでしょう

RubyならMacでしょう
Ruby, on your Mac of course

Statistics

Views

Total Views
1,855
Views on SlideShare
1,855
Embed Views
0

Actions

Likes
1
Downloads
8
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

    RubyならMacでしょう RubyならMacでしょう Presentation Transcript

    • Ruby Mac Ruby, on your Mac of course Vincent Isambart
    • Ruby Mac Ruby, on your Mac of course / Self-introduction MacRuby / MacRuby’s story MacRuby / In development Q&A
    • Self-introduction Vincent Isambart (IRC: scritch) @vincentisambart 2003: Ruby / Discovered Ruby 2006: RHG / RHG translation 2008-2009: MacRuby
    • Mac Ruby Ruby on Mac % ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287)
    • RubyCocoa
    • RubyCocoa RubyCocoa’s problems Threading Method names Speed Type conversion
    • 2008: MacRuby MacRuby starts (Mac) Ruby Goal: Best Ruby implementation for the (Mac) desktop
    • Ruby 1.9 Why based on Ruby 1.9? 1.9 1.9 was unstable 1.9 Some features Few people knew 1.9 were not finished
    • Ruby 1.9 Why based on Ruby 1.9? Starting from scratch is too much work 1.9 Ruby 1.9 1.8 1.9 is Ruby’s future 1.9 is better than 1.8 Open-source
    • 1.9 MacRuby 0.4 Diff between 1.9 and MR 0.4 Ruby GC Obj-C GC Ruby object Obj-C object Ruby core class Obj-C core class
    • ( ) What did not change (much) / Parser YARV Ruby Ruby standard library
    • Cocoa more Ruby-like HotCocoa
    • MacRuby 0.4 MacRuby 0.4’s problems Incompatibilities Threading with 1.9 Merging 1.9 Speed
    • 12 : 0.5 Dec 2009: 0.5 dev started 0.4 Goal: Solving all 0.4’s problems
    • How? VM By creating a new VM rm vm*.c # bye bye YARV
    • Speed and threads Calculations are super-fast You can use multiple cores
    • Testing test-vm.rb RubySpec
    • AOT compiling Fast start time Hide the code
    • C Stop creating C libraries ruby-ffi
    • MacRuby 0.5 MacRuby 0.5’s weak points Memory allocation is slow Not very portable 32 Does not work in 32 bits Hard to compile C JIT C extensions don’t work JIT takes time Rake does not work properly
    • MacRuby 0.5 MacRuby 0.5’s weak points In development
    • MacRuby 0.5 MacRuby 0.5’s weak points Memory allocation is slow Not very portable 32 Does not work in 32 bits Hard to compile C JIT C extensions don’t work JIT takes time Rake does not work properly
    • Cocoa Creating a Cocoa application : RubyCocoa : MacRuby 0.4 : MacRuby 0.5
    • If you want to help 1.9 / Learn 1.9 RubySpec / Help RubySpec Ruby / Make pure Ruby libs / Make tutorials
    • Q&A http://www.macruby.org twitter: @macruby IRC: #ruby-osx (freenode)
    • FAQ iPhone... CPU The CPU is different Investigating JIT Can’t use the JIT ObjC GC Can’t use the ObjC GC