objective C FFI plugin?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

objective C FFI plugin?

LawsonEnglish
rummaging around in the .app package, I noticed what appears to be an
objective c bridge for squeak. Is this meant for general use cocoa
libs/ObjC, and if so, is there a good example of how to use it?


Thanks.


Lawson

Reply | Threaded
Open this post in threaded view
|

Re: objective C FFI plugin?

johnmci
Esteban is perhaps one of the experts in it use. Yes it can be used on iOS and os-x devices.
It takes clues from other bridges done for smalltalk and from things like f-script and python and ruby.
It allows reentry callbacks so you can trigger smalltalk methods from objective-C messages sends.


On 2010-11-23, at 6:17 PM, Lawson English wrote:

> rummaging around in the .app package, I noticed what appears to be an objective c bridge for squeak. Is this meant for general use cocoa libs/ObjC, and if so, is there a good example of how to use it?
>
>
> Thanks.
>
>
> Lawson
>

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





Reply | Threaded
Open this post in threaded view
|

Re: objective C FFI plugin?

EstebanLM
Hi,
I think that will change in the future... I mean, the ObjectiveCBridge
can benefict for using Alien callbacks (non-semaphore based)... but
yes, there are an "almost" working pluging. The unique serious problem,
a scheduler error caused by  the callback logic, was fixed a couple of
weeks ago, but not-yet integrated to any released vm, because I'm still
learning to make the vms and to integrate changes :)
In the mean time, I think the most complex example (And I don't know if
it can be seen as an "example" because of it's complexity) is Mars
itself, take a look at http://squeaksource.com/Mars (btw, Mars is made
to work with Pharo, I don't know if it is working on squeak right
now... althought the plugin should work)

Cheers,
Esteban

On 2010-11-24 00:43:06 -0300, John M McIntosh
<[hidden email]> said:

> Esteban is perhaps one of the experts in it use. Yes it can be used on
> iOS and os-x devices.
> It takes clues from other bridges done for smalltalk and from things
> like f-script and python and ruby.
> It allows reentry callbacks so you can trigger smalltalk methods from
> objective-C messages sends.
>
>
> On 2010-11-23, at 6:17 PM, Lawson English wrote:
>
>> rummaging around in the .app package, I noticed what appears to be an
> objective c bridge for squeak. Is this meant for general use cocoa
> libs/ObjC, and if so, is there a good example of how to use it?
>>
>>
>> Thanks.
>>
>>
>> Lawson