From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Tolpin Message-Id: <200402191617.i1JGHc7V015598@adat.davidashen.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] OT: small xml parser found! In-Reply-To: <1077206087.1790.18.camel@pc118> Content-Type: text/plain; charset=KOI8-R Date: Thu, 19 Feb 2004 20:17:38 +0400 Topicbox-Message-UUID: ee9e25fa-eacc-11e9-9e20-41e7f4b1d025 > > >> Why isn't Expat suitable? > > > callbacks are horrible. > > Reasons?. > > Callback-(handler)s are interrupt-(handler)s - remember Dijkstra's > original (1962?) dismissal of the idea of writing programs with > interrupt handlers instead of processes as first-class entities. (From > his paper on The THE Multiprogramming System? I forget the reference.) This is a misconception. Push API does not demand inequal roles for the interacting processes. Define callback handlers to trigger semaphores instead of calling routines. This is how it is done in many systems. Push APIs can be used equally for either paradigm. And they could even 42 years ago. David Tolpin http://davidashen.net/