MacRuby
Encyclopedia
MacRuby is an implementation of the Ruby
Ruby (programming language)
Ruby is a dynamic, reflective, general-purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features. Ruby originated in Japan during the mid-1990s and was first developed and designed by Yukihiro "Matz" Matsumoto...

 language that runs on the Objective-C
Objective-C
Objective-C is a reflective, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.Today, it is used primarily on Apple's Mac OS X and iOS: two environments derived from the OpenStep standard, though not compliant with it...

 runtime and CoreFoundation framework under development by Apple Inc. which "is supposed to replace RubyCocoa
RubyCocoa
RubyCocoa is a Mac OS X framework that provides a bridge between the Ruby and the Objective-C programming languages, allowing the user to manipulate Objective-C objects from Ruby, and vice-versa. It makes it possible to write a Cocoa application completely in Ruby as well as to write an application...

". It is based on Ruby 1.9 and uses the high performance Low Level Virtual Machine
Low Level Virtual Machine
The Low Level Virtual Machine is a compiler infrastructure written in C++ that is designed for compile-time, link-time, run-time, and "idle-time" optimization of programs written in arbitrary programming languages...

 compiler infrastructure starting with version 0.5. It supports both ahead-of-time and just-in-time compilation
Just-in-time compilation
In computing, just-in-time compilation , also known as dynamic translation, is a method to improve the runtime performance of computer programs. Historically, computer programs had two modes of runtime operation, either interpreted or static compilation...

.

MacRuby supports Interface Builder
Interface Builder
Interface Builder is a software development application for Apple's Mac OS X operating system. It is part of Xcode , the Apple Developer Connection developer's toolset. Interface Builder allows Cocoa and Carbon developers to create interfaces for applications using a graphical user...

 and ships with a core library called HotCocoa to simplify Cocoa
Cocoa (API)
Cocoa is Apple's native object-oriented application programming interface for the Mac OS X operating system and—along with the Cocoa Touch extension for gesture recognition and animation—for applications for the iOS operating system, used on Apple devices such as the iPhone, the iPod Touch, and...

programming. MacRuby has also been used as an embedded scripting language for Objective-C applications.

History

MacRuby was originally called "ruby+objc" 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. Version 0.2 was released in June 2008, and implemented Ruby strings, arrays and hashes as native Cocoa types. In September 2008, MacRuby 0.3 was released and included the HotCocoa library as well as several HotCocoa example programs. In October 2008, Apple created its first MacRuby page on its Developer Connection website. MacRuby 0.4 was released in March 2009, MacRuby 0.5, 0.6, 0.7, 0.8 in January, May, October, December 2010 respectively, and MacRuby 0.9 was released in February 2011. MacRuby 0.10, the latest release, was released on March 23, 2011.

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK