From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

MacRuby logo.png
Developer(s)Laurent Sansonetti (Apple Inc.)
Stable release
0.12[1] / June 11, 2012; 7 years ago (2012-06-11)
Repository Edit this at Wikidata
Written inC, C++, Objective-C
Operating systemMac OS X
TypeRuby programming language interpreter and compiler
LicenseRuby License

MacRuby is a discontinued implementation of the Ruby language that ran on the Objective-C runtime and CoreFoundation framework under development by Apple Inc. which "was supposed to replace RubyCocoa".[2] It targeted Ruby 1.9 and used the high performance LLVM compiler infrastructure starting with version 0.5. It supports both ahead-of-time and just-in-time compilation.

MacRuby supported Interface Builder and shipped with a core library called HotCocoa to simplify Cocoa programming. MacRuby was also used as an embedded scripting language for Objective-C applications.[3]

In May 2012, Laurent Sansonetti announced RubyMotion, a port of MacRuby for iOS, OS X and Android.[4]

Development on MacRuby effectively ended in late 2011, coinciding with the principal author's departure from Apple Inc.. As of Jan 5 2015, The MacRuby project is no longer under active development;[5] MacRuby does not work on Mavericks, the team having shifted their focus to a commercial RubyMotion product for iOS and OS X.


MacRuby was originally called "ruby+objc"[6] and was developed by Laurent Sansonetti, who began work on it in late 2007. In March 2008, the first publicly available version, MacRuby 0.1, was announced on the official RubyTalk forum.[7] Version 0.2 was released in June 2008, and implemented Ruby strings, arrays and hashes as native Cocoa types.[8] In September 2008, MacRuby 0.3 was released[9] and included the HotCocoa library[10] as well as several HotCocoa example programs.[11] In October 2008, Apple created its first MacRuby page on its Developer Connection website.[12]

MacRuby 0.4 was released in March 2009, MacRuby 0.5, 0.6, 0.7 in January, May and October 2010 respectively. MacRuby 0.8, was released on December 13, 2010,[13] 0.9 on February 25, 2011 [14][15] 0.10 on March 23, 2011,[16] 0.11 on October 17, 2011,[17] 0.12 on June 11, 2012.[1]

See also[edit]


  1. ^ a b MacRuby 0.12 release note
  2. ^ Discussion of MacRuby as a replacement for RubyCocoa
  3. ^ Embedding MacRuby For Application Scripting
  4. ^ RubyMotion - About. Retrieved July 20, 2012.
  5. ^ Readme.rdoc. Retrieved February 12, 2015.
  6. ^ Developer Laurent Sansonetti first discusses "ruby+objc" (which became MacRuby) on his blog
  7. ^ Ruby-Talk: MacRuby 0.1 announcement
  8. ^ "Archived copy". Archived from the original on October 30, 2008. Retrieved October 25, 2008.CS1 maint: archived copy as title (link) MacRuby 0.2 described at MacOS Forge
  9. ^ "Archived copy". Archived from the original on October 19, 2008. Retrieved October 25, 2008.CS1 maint: archived copy as title (link) MacRuby 0.3 announcement
  10. ^ "Archived copy". Archived from the original on October 19, 2008. Retrieved October 25, 2008.CS1 maint: archived copy as title (link) HotCocoa Core Library page
  11. ^[permanent dead link] HotCocoa examples
  12. ^ MacRuby page at Apple Developer Connection
  13. ^[permanent dead link] MacRuby 0.8 announcement
  14. ^ MacRuby 0.9 release notes
  15. ^ MacRuby 0.9
  16. ^ 0.10 - update
  17. ^ brace yourselves, 0.11 is coming!

External links[edit]