Re: guile and coroutines controlled from C

2012-07-29 Thread Vincent Bernat
❦ 30 juillet 2012 06:56 CEST, Ian Price  : >> #v+ >> (let ((v1 (do-something-blocking "arg1" "arg2")) >> (v2 (do-something-blocking "arg3" "arg4"))) >> (when (< (+ v1 v2) 10) (...))) >> #v- >> >> `do-something-blocking` is a registered function written in C. I want to >> be able to pause t

Re: guile and coroutines controlled from C

2012-07-29 Thread Thien-Thi Nguyen
() Ian Price () Mon, 30 Jul 2012 05:56:43 +0100 (use-modules (ice-9 q)) ;; yech, but it'll do [...] See also module (ice-9 runq), documented at: http://www.gnuvola.org/software/guile/doc/Run-Queues.html and possibly other places. -- Thien-Thi Nguyen ..

Re: guile and coroutines controlled from C

2012-07-29 Thread Ian Price
Vincent Bernat writes: > Hi! > I would like to add Guile scripting to an actual program to allow a user > to write simple network-related scenarios. Those scenarios will be run > in parallel on several entities. The application is event-driven and I > want to hide this fact to the user. She shoul