[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delimited continuations to the rescue of futures

From: Ludovic Courtès
Subject: Re: Delimited continuations to the rescue of futures
Date: Sat, 17 Nov 2012 23:00:20 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Hi Mark!

Mark H Weaver <address@hidden> skribis:

> I guess the one remaining concern I have is that if there are any
> long-running futures in the process, then any 'touch' could take a very
> long time to complete, even if the future it is waiting for is a very
> short job.
> For example, (par-map - '(1 2 3)) could take several minutes to complete
> if (par-map process-image list-of-images) is being done in another
> thread.

Right.  That’s actually easy to fix, but the advantage of the current
solution is that it uses less code.  Anyway, you’re probably right, so
I’ll do that.

BTW, I’d find it awkward to do use both futures and explicit threads at
the same time.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]