[Vm-dev] Re: [Pharo-dev] Alien and FFI in Pharo

Robert Withers robert.w.withers at gmail.com
Tue Oct 13 15:14:32 UTC 2015


I just had a realization. I do need MT (is this what forking 
callout/callback threaded vm is called?) I think, for callout, not 
callback. The select call is a blocking call and will block the image 
thread. Is it true?

If so, let's figure it out, Craig. I'm with you.

thanks,
Robert

On 10/13/2015 03:20 AM, Robert Withers wrote:
> Hi Craig,
>
> I saw your thread on that. Luckily NIO is a blocking call-out when you
> call select, so no callbacks.
>
> Callbacks would be nice to have available. It sounds like it is
> potentially big in impact to the image environment...pure events. I
> don't wish to see conversation completely stop on it, but I do not have
> a compelling use for it yet. I'd rather see 64bit Cog/Spur on PI.
>
> thanks,
> Robert
>
> On 10/13/2015 03:00 AM, Craig Latta wrote:
>>
>>> I want to get NIO sockets working using FFI, which I understand means
>>> Alien. I can't seem to load Alien from the Catalog.
>>>
>>> What do you suggest I do?
>>
>>       If NIO sockets involve callbacks from threads forked by the
>> library, don't bother. Cog's scheduler deadlocks.
>>
>>
>> -C
>>
>> --
>> Craig Latta
>> netjam.org
>> +31   6 2757 7177 (SMS ok)
>> + 1 415  287 3547 (no SMS)
>>
>>


More information about the Vm-dev mailing list