[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "concurrency" branch updated
From: |
John Wiegley |
Subject: |
Re: "concurrency" branch updated |
Date: |
Thu, 05 Nov 2015 10:07:44 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
>>>>> David Kastrup <address@hidden> writes:
> For example, Lua offers "coroutines" which are basically not more than
> independent stacks but not parallel execution: the corresponding functions,
> "yield" and "resume" both _take_ and _return_ values. Essentially, this is
> used as a control flow mechanism similar to function calls and returns, with
> the difference that such "functions" do not lose their place and local
> variables when "returning" but continue upon resuming.
What you describe sounds similar to several libraries used often in Haskell,
where continuations are used to shuttle control up and down a connected
pipeline of coordinated functions (see 'pipes' if interested). Parallel
execution cannot be automatically enabled there either, though it can be
injected between stages (see 'pipes-async').
John
- Re: "concurrency" branch updated, (continued)
- Re: "concurrency" branch updated, Ken Raeburn, 2015/11/04
- Re: "concurrency" branch updated, Eli Zaretskii, 2015/11/04
- Re: "concurrency" branch updated, Ken Raeburn, 2015/11/04
- Re: "concurrency" branch updated, Eli Zaretskii, 2015/11/04
- Re: "concurrency" branch updated, Ken Raeburn, 2015/11/05
- Re: "concurrency" branch updated, Richard Stallman, 2015/11/04
- Re: "concurrency" branch updated, Eli Zaretskii, 2015/11/04
- Re: "concurrency" branch updated, Ken Raeburn, 2015/11/05
- Re: "concurrency" branch updated, John Wiegley, 2015/11/05
- Re: "concurrency" branch updated, David Kastrup, 2015/11/05
- Re: "concurrency" branch updated,
John Wiegley <=
- Re: "concurrency" branch updated, Tom Tromey, 2015/11/05
- Re: "concurrency" branch updated, John Wiegley, 2015/11/05
- Re: "concurrency" branch updated, Richard Stallman, 2015/11/05
- Re: "concurrency" branch updated, Eli Zaretskii, 2015/11/06
- Re: "concurrency" branch updated, Tom Tromey, 2015/11/05
- Re: "concurrency" branch updated, Tom Tromey, 2015/11/05
- Re: "concurrency" branch updated, Eli Zaretskii, 2015/11/06
- Re: "concurrency" branch updated, Tom Tromey, 2015/11/06