Ruby & Ruby Cocoa runs on iPhone, too
Just after the news about Jruby running on Android, here comes news about Ruby & RubyCocoa running on iPhone.
According to the blog of the author who created this project (Takuma Mori ), he started this experiment after inspired by the fact that several iPhone applications are now written in C#.
- Open source Mono framework brings C# to iPhone and Wii
- The Biggest iPhone Development Surprise yet – C#
The current work is not based on the latest RubyCocoa, but 0.4.2. This is because one of the library(libffi) does not work on iPhone, and he had to use the version which does not rely on libffi. However, JSCocoa also has same problem and they are trying to make it work, so it may be supported on more recent RubyCocoa once the problem is solved.
Mori san translated his initial Japanese blog post into English at his Wiki page. However, his Japanese slide seems not translated, so I added a few extra info here.
- Dynamic linking does not work on iPhone, so it’s all statically linked
- Sumbmited IRB app to appstore(there is a screen capture at p49 of his slide), but got rejected. Mori san thinks it’s probably get accepted if he submits another Ruby app(not like iRB) which code code is pre-compiled prior to the submission as C# got away.
When I first looked at Ruby mobile environment, Rhodes was pretty much the only choice. Even though Jruby on Android and RubyCocoa on iPhone are far from production use at this moment, this will bring lots of Rubyiest’s attention to mobile app development, encourage competition among different implementations, and I hope it accelerates lots of innovation in this field.
Filed under: iPhone | 2 Comments
Tags: iPhone rubycocoa