Debugging infrastructure (was Re: racing srfi-18 threads)

2009-12-12 Thread Neil Jerram
Andy Wingo writes: > Hi Neil, > > On Wed 02 Dec 2009 22:46, Neil Jerram writes: > >> Neil Jerram writes: >> >>> I now have it down to this: a program compiled inside the RHS of a >>> define-syntax form apparently has no meta; whereas the same program >>> compiled outside a define-syntax form do

Re: racing srfi-18 threads

2009-12-10 Thread Andy Wingo
Hi Neil, On Wed 02 Dec 2009 22:46, Neil Jerram writes: > Neil Jerram writes: > >> I now have it down to this: a program compiled inside the RHS of a >> define-syntax form apparently has no meta; whereas the same program >> compiled outside a define-syntax form does have meta: > > Apologies for

Re: racing srfi-18 threads

2009-12-02 Thread Neil Jerram
Neil Jerram writes: > I now have it down to this: a program compiled inside the RHS of a > define-syntax form apparently has no meta; whereas the same program > compiled outside a define-syntax form does have meta: Apologies for taking so long to follow up on this! I've been trying to remedy my

Re: racing srfi-18 threads

2009-11-19 Thread Neil Jerram
Andy Wingo writes: > On Mon 16 Nov 2009 23:16, Neil Jerram writes: > >> It seems that when run under the VM, (thunk? thunk) => #f. > > Ugly. Thanks for debugging this, Neil. I now have it down to this: a program compiled inside the RHS of a define-syntax form apparently has no meta; whereas the

Re: racing srfi-18 threads

2009-11-17 Thread Andy Wingo
On Mon 16 Nov 2009 23:16, Neil Jerram writes: > It seems that when run under the VM, (thunk? thunk) => #f. Ugly. Thanks for debugging this, Neil. > Andy / Ludo, can it be correct for (program-arities PROGRAM) to be #f > ? Well... no, I don't think so. Looks like a bug to me. > Thanks, Thank

Re: racing srfi-18 threads

2009-11-16 Thread Neil Jerram
Neil Jerram writes: > Tristan Colgate writes: > >> A similar, though much simpler, test case exhibits the same problem. >> I'll raise a bug. report and >> include a log of the issue. > > Hi Tristan, > > Thanks for reporting this. FWIW I've checked that it still happens > (exactly as you've desc

Re: racing srfi-18 threads

2009-11-08 Thread Neil Jerram
Tristan Colgate writes: > A similar, though much simpler, test case exhibits the same problem. > I'll raise a bug. report and > include a log of the issue. Hi Tristan, Thanks for reporting this. FWIW I've checked that it still happens (exactly as you've described) with the current Git HEAD. N

racing srfi-18 threads

2009-11-06 Thread Tristan Colgate
Hi All, I've been experimenting with guile-1.9 (latest git) srfi-18 support. I'm trying to implement a race between threads. I've written a macro that take a routine and a list of args, starts a thread for each arg and runs the routine with that argument. The result returned should be the retur