develooper Front page | perl.perl5.porters | Postings from July 2001

Re: Asynchronous callbacks from C

Thread Previous | Thread Next
From:
David M. Lloyd
Date:
July 5, 2001 06:46
Subject:
Re: Asynchronous callbacks from C
Message ID:
Pine.LNX.4.21.0107050841140.17653-100000@homebody.freemm.org
On Thu, 5 Jul 2001, Paul Johnson wrote:

> On Thu, Jul 05, 2001 at 03:12:25PM +0200, Artur Bergman wrote:
>
> > 01-07-05 15.04, skrev David M. Lloyd på dmlloyd@tds.net följande:
> >
> > > I can't help but be jealous of PHP/Zend in this respect.  I have a friend
> > > who just wrote a signal handling *add-on* module (that is, there was no
> > > hacking required of the core engine) because he was able to use an API
> > > function to insert a C callback that is called between every opcode (or
> > > whatever they call them... I think they have a subtly different name for
> > > the same concept).
> > > 
> > > It would be awesome to have something like that in Perl.  I guess that the
> > > performance hit associated with such a callback would be minimal... well
> > > worth the added power.
> > 
> > Like Benjamin said, we have PERL_ASYNC_CHECK that checks between opcodes,
> > this could added as a option to that.
> 
> Or you could use a plugable runops function.  Then you can do whatever
> you want without hacking the core.  This sounds like just what you're
> after.

Exactly what is a plugable runops function?  Is that something that exists
in perl today (5.6)?  Is there an API interface to it?

- D

<dmlloyd@tds.net>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About