Re: Event design sketch

2004-05-14 Thread Rocco Caputo
an hour when it skips back. However, you usually do want your absolute-timed jobs to run when the wall clock says they should be. Something to keep in mind. -- Rocco Caputo - http://poe.perl.org/

Re: use parrot;

2001-10-21 Thread Rocco Caputo
en purely in > parrot assembly. 1. B::Parrot 2. Parrot.xs 3. Providing opcodes for libperl functions and linking it in. I haven't suggested asm(), so technically I'm safe. Right? :) -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

Re: Parrot multithreading?

2001-09-20 Thread Rocco Caputo
ice a potentially larger pool of parrot interpreters. Essentially, physical threads become execution pipelines for the virtual machine. The limit on system threads can be tuned to optimally spread execution across available CPUs. It could be as small as 1 on single-processor systems that don't switch thread contexts well. -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

Re: Parrot multithreading?

2001-09-20 Thread Rocco Caputo
set I1, main_timer_done set I2, 1 jsr set_timer return main_timer_done: jsr threads_active ne I1, 0, main_timer_loop end __END__ -- Rocco Caputo / [EMAIL PROTECTED] / poe.eekeek.org / poe.sourceforge.net

Re: Parrot's mascot

2001-09-15 Thread Rocco Caputo
fricangrey.jpg I can't seem to find a picture of a Norwegian Blue anywhere. -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

macros

2001-09-14 Thread Rocco Caputo
Attached is a patch to assemble.pl that adds very simple macros. I fear it's a bit of a hack, but I'm fighting my usual impulse to rewrite stuff. Attached is also macros.pasm, a simple usage case. It goes in t/ for want of a better place, but it's not a true test yet. -- Rocco

conveniences

2001-09-14 Thread Rocco Caputo
e test.pbc". -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net --- assemble.pl-origFri Sep 14 11:20:05 2001 +++ assemble.pl Fri Sep 14 12:26:38 2001 @@ -59,7 +59,9 @@ # get opcodes from guts. -open GUTS, "interp_guts.h"; +open(GUTS, &

Re: Calls for a Macro Assembler Guy

2001-09-14 Thread Rocco Caputo
e current assembler, > which seems reasonable) > > There probably isn't a huge amount to do with the thing--maintain macro > substitutions, handle local labels, manage sub definitions, and suchlike > things. > > Anyone? j0. I'll do it. -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

Re: Between-Opcode Callbacks

2001-07-07 Thread Rocco Caputo
ago I wrote a prototype of it in C for perl6-internals to tinker with. It's called "phat", there is some discussion about it in the list archive, and the working prototype (for prototypical values of "working") is still at <http://poe.perl.org/phat/phat.c>. -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

ideas for signalling threads (was: Re: Does perl really need to use sigsetjmp?)

2001-01-21 Thread Rocco Caputo
that these tend to be "survivable" signals; only the interested threads will ever notice them even when they're broadcast everywhere. Apropos of Perl 5: I've experimented long and hard on the language level in perl 5, and I have a test case for detect them without using handle

AIO vs. RISC OS; perl5 compatibility; subsystems (was: Re: Speaking of signals...)

2001-01-09 Thread Rocco Caputo
On Mon, 8 Jan 2001 23:12:15 -0200, Filipe Brandenburger wrote: >Rocco Caputo wrote: > >> ... >> [ *** code *** ] >> >>This could very well be an event driven program, with all the tedious >>mucking about with callbacks done under the hood. Regardless, it co

callbacks, aio, threads and events (and a working C prototype)

2001-01-08 Thread Rocco Caputo
a DBI module running in another. The client threads would be permitted to continue on, eventually receiving DBI responses as asynchronous callbacks. I think that's it. Thank you for reading. -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

Re: Events and threads

2001-01-06 Thread Rocco Caputo
ototype is at <http://poe.perl.org/poe2/>. current-snapshot.tar.gz in that directory is a tarball of the whole tree. Design notes are in Readme, the notes directory, and source comments. -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net

Re: Speaking of signals...

2001-01-06 Thread Rocco Caputo
On Fri, 5 Jan 2001 23:46:33 -0500, Uri Guttman wrote: >>>>>> "RC" == Rocco Caputo <[EMAIL PROTECTED]> writes: > > RC> With a tightly integrated event loop, blocking perl level I/O can be > RC> implemented in terms of internal asynchronous I/O.

Re: Speaking of signals...

2001-01-06 Thread Rocco Caputo
e print $client $_; # async I/O inside } } This could very well be an event driven program, with all the tedious mucking about with callbacks done under the hood. Regardless, it could run the same as long as either threads OR async I/O are available. -- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sourceforge.net