This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)(Learn how and when to remove this template message)
1.2.0 Alpha 4 / May 17, 2013
|Written in||Smalltalk, Ruby|
|Operating system||Cross-platform: Solaris, AIX, Linux, Mac OS X|
|Type||Ruby programming language interpreter|
|License||MIT, GPL, others|
MagLev is an alternative implementation of the Ruby programming language built on the GemStone/S virtual machine from GemTalk Systems. Much of Maglev was set out to be written in Ruby as much as possible, resulting in some collaboration with the Rubinius project. As of the first beta release, the project runs RubyGems 1.3.5 natively, with support for C and Smalltalk extensions. MagLev has a distinct VM architecture that allows it to share code and data between runtimes and execution cycles through a Ruby API.
Maglev runs inside an image like Smalltalk, offering transparent object persistence[failed verification] to Ruby objects and classes. Object persistence is based on ACID transactions that allow multiple running instances to see a shared object graph. Maglev uses a process-based concurrency model, mapping Ruby threads to Smalltalk Processes[self-published source?], which are scheduled in the VM as green threads. Using MagLev should yield performance increases when using Ruby, along with allowing Ruby processes over multiple machines to use the same objects at the same time.
MagLev is installed with RVM, using the following code snippets, copied directly from the maglev github.
rvm install maglev rvm use maglev
The status can be checked using
$ maglev status
- GemStoneS 64 bit 3.1.x Documentation, July 3, 2012, retrieved July 29, 2012 CS1 maint: discouraged parameter (link)
- "Programming Guide for GemStone/S 64 Bit Version 1" (PDF), VMware, July 2012, retrieved July 29, 2012 CS1 maint: discouraged parameter (link)
- "MagLev – Object Persistence with Ruby and Smalltalk" (PDF), Bachelor thesis, Hasso Plattner Institute, July 1, 2013, retrieved February 22, 2014 CS1 maint: discouraged parameter (link)
- Phoenix, Evan (October 14, 2011), "Ruby, Concurrency, and You", Engine Yard Blog, retrieved July 29, 2012 CS1 maint: discouraged parameter (link)
- Fernandez, Obie (May 30, 2008), MagLev is Gemstone/S for Ruby, Huge News, retrieved July 29, 2012 CS1 maint: discouraged parameter (link)
- Taft, Darryl K. (June 6, 2008), "MagLev Rocks the Ruby House", eWeek, retrieved July 29, 2012 CS1 maint: discouraged parameter (link)
- Grigorik, Ilya (January 15, 2010), Distributed Ruby with the MagLev VM, retrieved July 29, 2012 CS1 maint: discouraged parameter (link)
- Schuster, Werner (November 15, 2011), "NoSQL OODB with Smalltalk-based Ruby VM: MagLev 1.0 Released", InfoQ, retrieved July 29, 2012 CS1 maint: discouraged parameter (link)