Tuesday December 24, 2013

Since You Can Compile Anything to JavaScript...

Francis Chong released a CocoaPod that lets you run Ruby scripts in your iOS and OS X applications. Quite clever. Using Apples fast JavaScriptCore framework, and a Ruby to JavaScript compiler (written in JavaScript, of course) you have a simple Ruby runtime to embed in your Objective-C apps without going to all the trouble of linking in the real thing.

Yes, yes, you shouldn’t write a full Ruby application this way. Please, don’t. But, hey, we’ve already jumped the shark.