<?xml version="1.0" encoding="windows-1252"?>
<node id="149385" title="Re: Re: A preliminary stab at Flow-Based Programming" created="2002-03-05 10:01:12" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="53423">
Masem</author>
<data>
<field name="doctext">
I do believe that FBP is a feasible goal; it does require more processor overhead and memory use than your typical procedural or OOP programming, and just like with those situations, FBP isn't a solution to all problems, only to a small subset.  FBP also requires that the components are well designed with sufficient refactoring involved as to make sure most basic operations can be reconstructed with the right components.  I think after a few more rounds of work, what I've got right now will start to look a little bit more interesting.
&lt;P&gt;
But while I've got [matts] ear... :-)  One of the problems I had when putting the Merger together is that apparently SAX elements cannot tell whom sent the event or where the event is going.  Because of how I set it up, the Merger SAX events were recieving events from two different streams at the same time due to how SAXT and the event tree worked.   I had to use a somewhat icky hack for this (using 
&lt;code&gt;
do { package DB; @callarr = caller(3); }; 
my @args = @DB::args;
my $sender = $args[0];
&lt;/code&gt; which is similar to code in [cpan://Carp].) in order to id which dataset I was getting this from.  Now, of course, on the way to work I thought of a better solution, possibly using closures, that would be able to connect multiple incoming streams at the same component, but I haven't tried to program this in yet.  But in general, is there any other way of getting the sending of a SAX event while in a SAX event?
&lt;P&gt;
&lt;P&gt;
-----------------------------------------------------
&lt;BR&gt;
&lt;I&gt;
&lt;A HREF="http://mneylon.masemware.com/"&gt;Dr. Michael K. Neylon&lt;/A&gt; - &lt;a href="mailto:mneylon-pm@masemware.com"&gt;mneylon-pm@masemware.com&lt;/a&gt;
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
&lt;BR&gt;
&lt;FONT COLOR="#800000"&gt;&lt;I&gt;"I can see my house from here!"&lt;/I&gt;&lt;/FONT&gt;
&lt;BR&gt;
&lt;FONT COLOR="#808080"&gt;&lt;I&gt;It's not what you know, but knowing how to find it if you don't know that's important&lt;/I&gt;&lt;/FONT&gt;
&lt;/I&gt;</field>
<field name="root_node">
149294</field>
<field name="parent_node">
149322</field>
</data>
</node>
