Hey all,
I just wanted to give a quick shout-out about my latest hackery with node: an Objective-C interpreter running through Node! This is some crazy stuff offering some crazy possibilites, include writing OSX or iOS native apps entirely with node and Javascript! Now, note that this idea is still very new, I just started on it this weekend, and you can't
currently do these cool things. But it's coming!
I'm building a high-level framework I'm calling `NodObjC`[0], which offers an easy-to-use API directly generated from the APIs defined in the Frameworks themselves. Here's the example from the README:
var $ = require('NodObjC');
// First you need to "load" the Framework
var Foundation = $.import('Foundation');
// Make the 'NSMutableArray' constructor be global
var NSMutableArray = Foundation.NSMutableArray;
// Now let's create an NSMutableArray
var array = NSMutableArray.alloc().initWithCapacity_(3);
// Add some JS objects to the array
array.addObject_("Hello World!");
array.addObject_({ an: 'object' });
array.addObject_(NSMutableArray);
// Print out the contents (calling [array describe])
console.log(array);
Additionally, the low-level module that exposes the guts of the Objective-C Runtime which I'm calling `node-objc`[1] is also available. I would not recommend using this API directly, but it's what `NodObjC` uses to do it's magic.
Both are still very incomplete, but I have big visions and really just wanted to spark some community interest. So please, let me know what you think and it'll motivate me to keep going!!