Mais conteúdo relacionado Semelhante a RubyならMacでしょう (20) RubyならMacでしょう1. Ruby Mac
Ruby, on your Mac of course
Vincent Isambart
2. Ruby Mac
Ruby, on your Mac of course
/ Self-introduction
MacRuby / MacRuby’s story
MacRuby / In development
Q&A
3. Self-introduction
Vincent Isambart (IRC: scritch)
@vincentisambart
2003: Ruby / Discovered Ruby
2006: RHG / RHG translation
2008-2009: MacRuby
4. Mac Ruby
Ruby on Mac
% ruby -v
ruby 1.8.6
(2008-08-11 patchlevel 287)
8. 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
9. 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
10. 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
11. ( )
What did not change (much)
/ Parser
YARV
Ruby
Ruby standard library
14. 12 : 0.5
Dec 2009: 0.5 dev started
0.4
Goal: Solving all 0.4’s problems
15. How?
VM
By creating a new VM
rm vm*.c # bye bye YARV
20. 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
22. 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
24. If you want to help
1.9 / Learn 1.9
RubySpec / Help RubySpec
Ruby / Make pure Ruby libs
/ Make tutorials
26. FAQ
iPhone...
CPU
The CPU is different
Investigating
JIT
Can’t use the JIT ObjC GC
Can’t use the ObjC GC