On Thu, Sep 01, 2011 at 09:10:40AM +0200, Davorin Rusevljan wrote:
> On Thu, Sep 1, 2011 at 2:16 AM, David T. Lewis <[email protected]> wrote:
> > Are you talking about signaling the image when an IO event happens?
> > If so, see http://wiki.squeak.org/squeak/3384. The plugin is included
> > in standard unix VMs.
> 
> 
> I did a quick peek, if not perfect, it might be of much help.
> 
> On positive side:
> - it allows for async work with files and sockers

Files, sockets, pipes. Anything that looks like a file descriptor
on unix.

> 
> On might be improved side:
> - it depends on select call which in it self is not perfect for large
> number of file descriptors (like thousand(s))

Yes, the plugin provides a hook into the underlying aio mechanism in the VM.

> - it seems to require Smalltalk process for each file desciptor, and
> ProcessScheduler might also not be happy with thousands of smalltalk
> processe

Yes.

If you want to put a load on the aio plugin, try running the CommandShell
unit test suite with a standard unix interpreter VM.

> - unix only.
> 

Yes.

It will work on OS X also, but the plugin is not usually distributed 
on those VMs. There is no implementation for Windows.

> Anyway, even so:
> - it will still probably be much better than synchronous way of doing things.
> - it might be used to experiment, design and prototype nice callback
> based API on the Smalltalk side.
> 
> Thanks!
> 
> Davorin Rusevljan
> http://www.cloud208.com/

Reply via email to