guile and coroutines controlled from C

2012-07-28 Thread Vincent Bernat
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 should be able to write a scenario in a

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-08-02 Thread Vincent Bernat
❦ 1 août 2012 15:13 CEST, Ian Price  : >> Your example is great! It fits exactly what I need. Since I am still >> pretty new, I need some time to understand each line but this seems a >> very good start for what I want to do. I just need to translate some >> parts in C since the event loop is he