Re: [Felix-language] felix game stuff

2007-08-21 Thread skaller
On Tue, 2007-08-21 at 16:40 +0300, Rhythmic Fistman wrote: > On 8/19/07, skaller <[EMAIL PROTECTED]> wrote: > > On Sun, 2007-08-19 at 13:13 +0300, Rhythmic Fistman wrote: > > > > > My driver itself cheats in this respect, using > > > an schannel with some c code that reschedules every fthread > >

Re: [Felix-language] felix game stuff

2007-08-21 Thread skaller
On Tue, 2007-08-21 at 16:38 +0300, Rhythmic Fistman wrote: > On 8/19/07, skaller <[EMAIL PROTECTED]> wrote: > called timing fns. No, my problem here turned out to be a form > of starvation: the flx runtime when executing a read or write > always reschedules an fthread, however instead of that thr

Re: [Felix-language] felix game stuff

2007-08-21 Thread Rhythmic Fistman
On 8/19/07, skaller <[EMAIL PROTECTED]> wrote: > On Sun, 2007-08-19 at 13:13 +0300, Rhythmic Fistman wrote: > > > My driver itself cheats in this respect, using > > an schannel with some c code that reschedules every fthread > > hanging on an schannel, as though you executed a "read n times, > > d

Re: [Felix-language] felix game stuff

2007-08-21 Thread Rhythmic Fistman
On 8/19/07, skaller <[EMAIL PROTECTED]> wrote: > So the point of this note is that you should carefully > restrict the visibility of any channels you create > to the fthreads that communicate using them: if any > active thread COULD use the channel, other threads > waiting on it will not die. I t

Re: [Felix-language] felix game stuff

2007-08-19 Thread skaller
On Sun, 2007-08-19 at 13:13 +0300, Rhythmic Fistman wrote: > My driver itself cheats in this respect, using > an schannel with some c code that reschedules every fthread > hanging on an schannel, as though you executed a "read n times, > discarding result". Um. I actually think you should use t

Re: [Felix-language] felix game stuff

2007-08-19 Thread skaller
On Sun, 2007-08-19 at 13:13 +0300, Rhythmic Fistman wrote: [] [CCing to Andreas in case he can throw more light on this] A general note on fthreads and schannels. As Andreas Rossberg noted on LtU (Lambda the Ultimate), Felix fthread/schannel is a "very poor man's promise/future". As I understand

Re: [Felix-language] felix game stuff

2007-08-19 Thread skaller
On Sun, 2007-08-19 at 13:13 +0300, Rhythmic Fistman wrote: > p.s. I typedefef the schannel[event_type] thing, but that doesn't seem > to create the associated constructor (mk_mynewname()), I can use the > new name but I still have to remember the original type, saying > var blah = mk_schannel[even

Re: [Felix-language] felix game stuff

2007-08-19 Thread skaller
On Sun, 2007-08-19 at 13:13 +0300, Rhythmic Fistman wrote: > My driver itself cheats in this respect, using > an schannel with some c code that reschedules every fthread > hanging on an schannel, as though you executed a "read n times, > discarding result". Um. So in conclusion, I think I'm close