Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread David Pirotte
Hi Chris, > When I tested guile-gnome a few years ago I could reliably get > g-idle-add to crash when calling it from a worker thread. If that is > no longer the case I am pleased to hear it. However, the little test > program at the end[1], which prints to the screen every 1/10th of a > second,

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread Chris Vine
On Mon, 22 Feb 2016 17:40:56 + Chris Vine wrote: [snip] > I have gone a little further with this and have added more convenience > wrapper procedures which makes a-sync rather easy to use. I am > preparing a guile-a-sync package which I will put on github. I have > everything going except th

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread Chris Vine
On Tue, 23 Feb 2016 00:31:21 + Chris Vine wrote: > On Mon, 22 Feb 2016 1 > When I tested guile-gnome a few years ago I could reliably get > g-idle-add to crash when calling it from a worker thread. If that is > no longer the case I am pleased to hear it. However, the little test > program at

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread Chris Vine
On Mon, 22 Feb 2016 17:28:04 -0300 David Pirotte wrote: > Hello Chris, > > Nice work, tell us when uploaded as a git repo, I'd like to look at > it when I have some time. > > > This is an example of how you might use a-sync with guile-gnome: > > ... > > > However, it is more useful with guile

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread David Pirotte
Hello Chris, Nice work, tell us when uploaded as a git repo, I'd like to look at it when I have some time. > This is an example of how you might use a-sync with guile-gnome: > ... > However, it is more useful with guile-gnome's GTK+ callbacks, or with glib > file watches or timeouts, because al

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread Christopher Allan Webber
Chris Vine writes: > On Mon, 22 Feb 2016 12:53:10 -0500 > "Thompson, David" wrote: >> On Mon, Feb 22, 2016 at 12:40 PM, Chris Vine >> wrote: >> >> > The other thing that may require further work is the >> > documentation. I am used to doxygen or gtk-doc, neither of which I >> > imagine will pa

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread Chris Vine
On Mon, 22 Feb 2016 12:53:10 -0500 "Thompson, David" wrote: > On Mon, Feb 22, 2016 at 12:40 PM, Chris Vine > wrote: > > > The other thing that may require further work is the > > documentation. I am used to doxygen or gtk-doc, neither of which I > > imagine will parse guile scheme code, so I wi

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread Thompson, David
On Mon, Feb 22, 2016 at 12:40 PM, Chris Vine wrote: > The other thing that may require further work is the documentation. I > am used to doxygen or gtk-doc, neither of which I imagine will parse guile > scheme code, so I will have to look into what is available (I don't like > info). > > I'll po

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread Chris Vine
On Mon, 22 Feb 2016 13:01:01 +0100 l...@gnu.org (Ludovic Courtès) wrote: > Chris Vine skribis: > > > It features an a-sync procedure (in coroutines.scm) which can be > > used to provide await semantics on asynchronous code (so as to > > remedy inversion of control), and will work with callbacks f

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread Marko Rauhamaa
l...@gnu.org (Ludovic Courtès): > (Back in the day I thinking > about something like that to avoid the callback hell in Guile-Avahi.) Don't know anything about Guile-Avahi, but callback hell happens to be my favorite programming model. Marko

Re: [potluck dish] Compiler for the Joy language

2016-02-22 Thread Ludovic Courtès
Hey! Eric Bavier skribis: > And happy birthday Guile! \o/ > $ guile > scheme@(guile-user)> ,L joy > joy@(guile-user)> "/base.joy" include . > joy@(guile-user)> 2 3 + 4 1 . > $1 = (1 4 5) > joy@(guile-user)> DEFINE foo == 2 3 + 4 1 ; bar == + + . > joy@(guile-user)> foo bar . > $2 = (10) > joy@

Re: Potluck - thread safe event loop with await semantics

2016-02-22 Thread Ludovic Courtès
Chris Vine skribis: > It features an a-sync procedure (in coroutines.scm) which can be used to > provide await semantics on asynchronous code (so as to remedy inversion > of control), and will work with callbacks for any event loop, including > the glib event loop wrapped by guile-gnome. More to