guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add read-wrapper REPL option


From: David Thompson
Subject: Re: [PATCH] Add read-wrapper REPL option
Date: Thu, 03 Oct 2013 19:34:32 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

On 09/29/2013 06:10 PM, David Thompson wrote:
> Guile-2D needs a REPL that runs within its event loop without blocking
> when reading user input. Mark Weaver has helped me add a new REPL
> option, read-wrapper, that can be used by Guile-2D to push the read
> operation into another thread while the main thread's event loop
> continues to run as normal. This avoids the problem of thread safety
> with the normal REPL server.
> 
> I think that this could be useful for other programs that run in an
> event loop. Perhaps Emacsy?
> 
> - Dave Thompson

Here is an updated patch. I've updated prompting-meta-read to preserve
the REPL stack when the reader thunk is called, in the case of the thunk
being called outside of the current thread.

Attachment: 0001-Add-read-wrapper-REPL-option.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]