POpen, opening lots of processes
wferi at afavant.elte.hu
Mon Jan 12 13:23:59 EST 2004
Tomasz Zielonka <t.zielonka at zodiac.mimuw.edu.pl> writes:
> On Sun, Jan 11, 2004 at 10:22:09PM +0100, Ferenc Wagner wrote:
>>> It isn't suitable for exchanging bigger amounts of data
>>> between processes.
>> May I ask why?
> Well, if you were collecting big amounts of data (like
> dozens of megabytes) from the child process, you would
> probably rather want to either:
> a) consume it incrementally
> b) store it in a more economic data structure
> Of course, both can be done in Haskell. I wonder if I
> could change my code to abstract it away...
I remember a discussion on the Haskell list about consuming
database requests. The consensus was to use some pre-fold
like callbacks (proposed by Oleg?) as the most general
solution for such problems. You may want to look into that.
More information about the Glasgow-haskell-users