Writing apps for the iPhone in Scheme
jlongster.com
jlongster.com
There was a recent post on HN about compiling various dynamic languages to C (I've lost the link). Of particular interest to me was JavaScript. For writing js code targeting the iPhone, PhoneGap and Appcelerator Titanium are cool, but still feel a bit gimped for doing truly native non-cross-platform stuff.
It's a sort of S-expression-based functional language that leverages the Objective-C runtime.
Also, supposedly there are apps out there which have embedded Lua. You just aren't allowed to download new code.
And once you get this far, it's easy to compile in the Scheme system, but load all of your code at runtime and edit it live. I'm going to add a remote REPL for debugging which will let you attach a REPL to a running app the iPhone, for example.
Maybe my blog posts on that will be more of the real world you are looking for!
[1] I was operating under the assumption that the source, not a binary, was provided to Apple. I stand corrected.
Also, Gambit Scheme is a generic system designed to target C so that it can compile to all kinds of architectures. It's a mature, robust system that comes with a lot of stuff.
Optimizing C compilers and platform independence properly. There have been a lot of research involved in making C compilers very fast, so you get to copy that for free.
"de Icaza identifies almost 40 applications (most of which are games) in Apple's App Store that are built on Unity and Mono...Mono's robust portability and advanced support for features like static compilation are enabling developers to use it in innovative ways that wouldn't be possible with Microsoft's .NET implementation"
http://arstechnica.com/open-source/news/2009/01/open-source-...