unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* discussion about fibers etc
@ 2017-09-12 10:46 Stefan Israelsson Tampe
  0 siblings, 0 replies; only message in thread
From: Stefan Israelsson Tampe @ 2017-09-12 10:46 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

Hi all,

I noticed two features that other languages have that can be good to have.

1) With guile-2.2. it is possible that the guile execution checks from time
to time to stall
enabling coroutines to be used as lightweight threads in fibers etc. In
java one can force
an exception to be thrown in a thread and as far as I can see it is not
impossible now to
add such a feature to fibers. WDYT?

2) In many exception mechansims we have a finally clause that will always
be called at
unwinding. The simple approach to implement this is to use a dynamic wind.
This does
not work in fibers because then the dynamic wind is called each time we
stall the thread
as far as I know. However if we att the yield would set a thread local
fluid to true one could
in the unwind of the dynamic wind skip the action when yielding. Is there
any susch feature
added, it would be very useful.

Regards
Stefan

[-- Attachment #2: Type: text/html, Size: 1108 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-12 10:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-12 10:46 discussion about fibers etc Stefan Israelsson Tampe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).