Well, what if I want to avoid to create new thread repeatedly?
I mean recycle or pre-allocate a bunch of threads, then reuse them.
How can I reuse a thread-object in Guile?
On Tue, Feb 7, 2012 at 3:14 AM, Andy Wingo wrote:
> Hi,
>
> Related to my previous mail, here is a thread pool implementati
Hello,
Thanks for emailing! I suppose I am the one to talk to, since I was
the last one to work on it.
I didn't make the PEG parsing syntax, but I would guess the reason
there isn't a string syntax for ignore is that there's no conventional
way to write it, but there is for the other PEG elements
On Tue 07 Feb 2012 22:58, Stefan Israelsson Tampe
writes:
> Just use #'f instead of (datum->syntax #'name 'f).
>
> I would love to use this, but when I tried that, the code failed in
> some cases, maybe because of the bugs you mensioned?
Try on master, perhaps?
Andy
--
http://wingolog.org
Hi,
The wip-threaded-web-server branch adds support for i/o threads to the
web server.
This work slows down the web server from around 7K reqs/s on my
dual-core Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz to about 5K reqs/s.
I think it's simply the playing with the mutexes and cond variables, and
n
On Tue, Feb 7, 2012 at 10:37 PM, Andy Wingo wrote:
> On Sat 04 Feb 2012 21:31, Stefan Israelsson Tampe
> writes:
>
> > #'(begin
> > (define f fkn-definition)
> > (define-syntax name
> > (make-syntax-case-transformer
> >(make-stxclass
> > ..
On Tue 07 Feb 2012 11:02, Daniel Hartwig writes:
> Note that these verbs conflict with those defined in (ice-9 q) where
> "push" adds elements to the front, not the rear, of the queue.
Hum, indeed. I guess (ice-9 q) is actually a deque...
> I presume the final version will include a type and e
On Sat 04 Feb 2012 21:31, Stefan Israelsson Tampe
writes:
> #'(begin
> (define f fkn-definition)
> (define-syntax name
> (make-syntax-case-transformer
> (make-stxclass
> ...
> (datum->syntax #'name 'f)
>
Oh, and the same will happen with GC_get_suspend_signal, which we
define at scmsigs.c:155.
Other than that, though, the new gc resolves the problem I had. I am
willing to chalk this up to a GC bug and not worry about it more.
Noah
On Tue, Feb 7, 2012 at 9:07 AM, Noah Lavine wrote:
> Hello,
>
>
Hello,
I inserted a GC_is_visible check in my code and learned that 'symbols'
is visible, but the things it points to were getting garbage collected
anyway. It seemed like a GC bug, so I'm trying to build Guile with the
latest version of GC and hoping that fixes it.
I just wanted to warn everyone
> async-queue-push!
> async-queue-pop! async-queue-try-pop!))
Note that these verbs conflict with those defined in (ice-9 q) where
"push" adds elements to the front, not the rear, of the queue.
This is a very tidy implementation. I presume the final version will
include a
On Mon 06 Feb 2012 23:57, l...@gnu.org (Ludovic Courtès) writes:
> Andy Wingo skribis:
>
>> I was thinking of adding the following to Guile, to eventually help make
>> the web server a little less terrible. What do you think?
>
> An “asynchronous queue” is a queue of tasks, right?
It's a messag
On Mon 06 Feb 2012 23:09, Mike Gran writes:
> maybe either (ice-9 q) or (ice-9 async-queue) could become a
> generalized version and the other could become a specific version or
> the same codebase.
I forgot to mention the other way: ice-9 q can't be a specific version
of anything else, because
Hi Mike,
On Mon 06 Feb 2012 23:09, Mike Gran writes:
>> From: Andy Wingo
>>Subject: ice-9 async-queue
>>;;; Asynchronous queues
>
> FYI, there is also an (ice-9 q). I haven't really looked
> at it, but, maybe either (ice-9 q) or (ice-9 async-queue)
> could become a generalized version and the
13 matches
Mail list logo