[NTLK] Proof of Concept: Moving data from Einstein to iOS

Matthias Melcher mm at matthiasm.com
Sun Nov 22 16:13:16 EST 2015


> On Nov 21, 2015, at 3:13 AM, Jake Bordens <jake at allaboutjake.com> wrote:
> 
> 
> Spent some time tonight on this:  <https://twitter.com/AllAboutJake/status/667887215469592576>
> 
> 
> This is a really ugly hack, and probably shouldn't find its way into the Einstein source tree.
> 
> Technical Details:
> 
> On the desktop, Paul setup libffi to allow you to call native libraries from Einstein.  This isn't implemented on iOS...  Instead, I just repurposed one of the libffi native function calls to pass data to the iOS UIActivityViewController.
> 
> To do this right, we'd need some native functions added to the NSRuntime native module for the purpose of passing data to iOS.  This is part of the Einstein REX.  I've never tried building this part of Einstein from source, and I don't know if my toolchain is even setup to do it properly.

Building REX from scratch is quite difficult as you need the MacOS toolchain. I have written the "mosrun" interpreter ("MacOS runtime environment") that lets you run all the Newton MPW tools on OS X (and probably any other OS, as the code is plain C++).

I did manage to compile the network driver module for Einstein and link it into the REX, but I was not able to build a new Rex from scratch. Paul code is missing resource forks, and I don't remember if he was able to find them in 2013 when we tried all this.

"https://github.com/MatthiasWM/dynee5/tree/master/Alienate"




More information about the NewtonTalk mailing list