title: Executing prolog code on an iPhone
body: <p>I currently have the need to execute prolog code in an application I am making. I am aware that Apple probably never would allow something like this in the App Store, but that is not the intention either. This is more a private project that will never reach the App Store.</p>
  
  <p><strong>Purpose</strong></p>
  
  <p>In this case prolog is used to describe an object (like for example a telephone) and its properties. The object will be drawn with OpenGL using coordinates specified in the prolog script. The reason for using prolog is that I need the ability to query the program about some of the features this object has, and prolog eases this a lot. Bottom line: I "need" to query a prolog script from my app.</p>
  
  <p><strong>Possible solutions</strong></p>
  
  <ul>
  <li>Embed an already existing implementation written in C. I am unsure if this will even work.</li>
  <li>Execute the prolog code on another machine and use the network to query prolog.</li>
  <li>It seems that it is possible to run some sort Ruby VM inside the app (shinycocos uses this as far as I understand), could this be used to run one of the Ruby Prolog implementations?</li>
  <li>Find some alternative to Prolog. This needs to give me some of the same possibilities I get with prolog.</li>
  </ul>
  
  <p>Sadly, google gives me close to no results at all, so I have a feeling that I might be quite alone on this project. If anyone have any experience or clue at all, I would be very thankful.</p>