Skip to content

Instantly share code, notes, and snippets.

@jballanc
Created October 11, 2013 16:18
Show Gist options
  • Save jballanc/6937671 to your computer and use it in GitHub Desktop.
Save jballanc/6937671 to your computer and use it in GitHub Desktop.

Background

  • MacRuby was going to be Ruby for OS X
  • JIT Compiler or AOT Compiler
  • Experimental static compilation
  • The Garbage Collector - libauto

Building an App

  • How does static compilation work?

Objects

  • RubyMotion objects are Obj-C objects
  • Ruby-ish introspection on Obj-C objects
  • Obj-C-ish introspection on Ruby objects

Memory

  • Garbage Collection vs (Automatic) Reference Counting
  • ARC vs RubyMotion
  • Don't worry about memory...except when you need to

Interfacing with Obj-C

  • CocoaPods and other shared frameworks/libraries
  • Calling Obj-C from RubyMotion
  • Calling into RubyMotion from Obj-C

Limitations

RubyMotion

  • eval and other metaprogramming
  • Reference cycles and GC trade-offs

MacRuby

  • GC "going away"
  • Reference Counting, run loops, and ruby scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment