[Top][All Lists]

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

Re: Multithreading, again and again

From: Tom Tromey
Subject: Re: Multithreading, again and again
Date: Sat, 22 Oct 2011 13:30:30 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

>> Anyway, I think the single-thread event driven approach is better for
>> Emacs, like Node.js and other languages do.

Yes, maybe so, but I think there are two reasons concurrency is

One reason is that, in practice, the current event-driven approach
sometimes falls down.  E.g., ERC can time out when something in Emacs
blocks too long.  These are bugs, and worse, won't be immediately fixed
by concurrency -- but at least could be, in the long run, in a permanent

The other reason is that concurrency makes it easier to convert code to
run in the background, without a need for a drastic rewrite.  I think
Gnus is the prime candidate here -- make 'g' work in the background by
just inserting a (make-thread) at the appropriate juncture.  Rewriting
arbitrary code in the process-filter style is too much work, it seems to


reply via email to

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