|
From: | Jörg F. Wittenberger |
Subject: | Re: [Chicken-users] Live programming with Chicken |
Date: | Fri, 04 Jul 2014 09:59:35 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
Am 03.07.2014 17:34, schrieb Daniel
Leslie:
Depends… If your job is to manage a lot of network i/o or other asynchronous events, what would you do without SRFI-18? Probably write your own event loop. That would be equivalent to green threads in turn. Having said that let me add a note about my personal taste: I'm using a wrapper over SRFI-18 (which could be implemented without SRFI-18) to provide a more Schemish API to threads. Like: (!map <proc> <list>) (!apply <proc> <list>) Which would do the same thing as "map" and "apply", just returning a promise to the result and apply <proc> in parallel to the calling thread and (in case of !map) in parallel to all elements in the list. So yes, SRFI-18 is kind of a hassle. But green threads retain their purpose.
|
[Prev in Thread] | Current Thread | [Next in Thread] |