[Etoys] dbus bindings

Bert Freudenberg bert at freudenbergs.de
Fri Sep 29 17:05:11 EDT 2006

Am 29.09.2006 um 22:21 schrieb Markus Gaelli:

> On Sep 29, 2006, at 10:05 PM, Andreas Raab wrote:
>> Bert Freudenberg wrote:
>>> Right now we're still using Python's dbus bindings, forwarding  
>>> messages via a pipe into Squeak. This was the simplest to get  
>>> working.
>> And also by far the safest bet since the Python bindings will be  
>> updated for sure so we only have to care about the part that we  
>> want to care about (how to get the messages from/to the image).  
>> Generally, my feeling is that for our needs (make eToys run  
>> robustly) this is all we should be doing - I don't see the need to  
>> write our own bindings if all we need is to exchanges a few  
>> messages back and forth.
> Makes sense. But piping needs OS-Process, no? And OS-Process is not  
> save/secure so it will have to go, no?
> If so, how will Squeak communicate with other processes?

Look at the implementation ;-)

No, I create a named pipe on the python side (mkfifo), hand that name  
as cmd line argument to the image, and open the pipe in Squeak using  
the AsyncFile plugin. The normal FilePlugin would block the whole VM,  
but AsyncFile works.

- Bert -

More information about the Etoys mailing list