Question

I'm finding embeddable Scheme interpreter(or JIT compiler or anything) into Cocoa Touch. I think just a C compatible Scheme engine may be fine. Please recommend some. I wish it's MIT/BSD style free license, but commercials are fine too.

And.. does Apple AppStore allow embedded scripting like Scheme?

Was it helpful?

Solution

I think James Long's blog is exactly what you're looking for: http://jlongster.com/software/iphone/scheme-iphone-example/

the above link is dead, try https://github.com/jlongster/gambit-iphone-example instead.

OTHER TIPS

You could do this so long as there was no DOWNLOADED or USER-ENTERED script/code. If all you were using Scheme for was internal scripting, that would be allowed.

Apple allows interpreted code and scripting in an app as long as the code or scripts are not downloaded. For instance, there are around half a dozen BASIC interpreters in the App store that allow a user to type their BASIC code in manually (but not download any) and run it in an interpreter or emulator. Lots of games that run Lua or Mono as well.

There is no way to run any JIT compiled code on a stock iOS device. The executable memory pages of all App store apps are marked read-only.

  • Various exceptions for JavaScript, UIWebViews and Safari.

You may be interested in Gambit Scheme.

For your second question: No, Apple doesn't allow interpreted code to run in your application.

EDIT

Ben Gottlieb is right, you cannot run user-scripts in your app, but internal code interpretation is supposed to be okay.

I believe TinyScheme is used by the GIMP for its script-fu. It's also BSD-licensed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top