>>>>> "SC" == Simon Cozens <[EMAIL PROTECTED]> writes:

  SC> On Wed, Sep 27, 2000 at 02:40:27AM -0400, Dan Sugalski wrote:
  >> I don't much care how its faked (if it is) as long as it works. 

  SC> Well, given that line disciplines means we have to write our own
  SC> IO subsystem, can't we fake it ourselves?

well, there are 2 uses of async i/o, explicit calls to read/write files
(to be handled by the event loop/callbacks) and some sort of implicit
use to speed up normal sequential file i/o under the hood.

the implicit one should also be enabled by some sort of pragma. it will
do more work than is needed in some cases so it should default to not
being enabled. let the user turn it on if they know their files are all
sequential and could use the speedup.

the i/o subsystem will support both forms and hook into the event loop
subsystem. internally, the implicit form will just use the event loop
for support. delivery of the callbacks will be an issue then as well
which is also another reason for requiring the user to turn it on. the
event loop pragma will have attributes to control how events are
delivered. 

uri

-- 
Uri Guttman  ---------  [EMAIL PROTECTED]  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com

Reply via email to