[slimpl] Hello list, and an idea about asynchronous events
Dmitry Petukhov
dmgenp at gmail.com
Tue Feb 14 12:06:05 CST 2006
On 2/14/06, Larry Clapp <larry at theclapp.org> wrote:
>
>
> - I'd also like to investigate Perl threading, which could make the
> whole problem go away. (This is the "or maybe 5th" option.)
I don't see why we need to wait synchronously on a socket for output from
swank.
In my opinion, better way is to select() on swank socket in a separate
process, and alert vim instance via netbeans or --remote-send when we have
some data. Code within vim instance can talk with this process through any
IPC mechanism. This way we don't need periodic events in vim at all. This
also can be done with threads, but with separate process vim have less
chance to hang if something goes wrong in perl code.
i think of this scheme:
\es in vim --> embedded-perl ==> free-perl ==> swank
.... time passes ...
swank ==> free-perl --alert--> vim --> embedded-perl -> REPL
|| //
``========>======>======''
hope this scheme will not be messed up by MUAs ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lispniks.com/pipermail/slimpl/attachments/20060214/5d28268b/attachment.html
More information about the slimpl
mailing list