[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
desirable.
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
way.
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
me.
Tom
- Re: Multithreading, again and again, (continued)
- Re: Multithreading, again and again, Richard Stallman, 2011/10/20
- Re: Multithreading, again and again, SAKURAI Masashi, 2011/10/19
- Re: Multithreading, again and again, Tom Tromey, 2011/10/20
- Re: Multithreading, again and again, Stefan Monnier, 2011/10/20
- Re: Multithreading, again and again, SAKURAI Masashi, 2011/10/20
- Re: Multithreading, again and again, Nix, 2011/10/21
- Re: Multithreading, again and again, Eli Zaretskii, 2011/10/21
- Re: Multithreading, again and again, SAKURAI Masashi, 2011/10/21
- Re: Multithreading, again and again,
Tom Tromey <=
- Re: Multithreading, again and again, Dave Abrahams, 2011/10/22
Re: Multithreading, again and again, Helmut Eller, 2011/10/18
Re: Multithreading, again and again, Tom Tromey, 2011/10/19
Re: Multithreading, again and again, Tom Tromey, 2011/10/19
- Re: Multithreading, again and again, Stefan Monnier, 2011/10/19
- Re: Multithreading, again and again, Tom Tromey, 2011/10/19
- Re: Multithreading, again and again, Stefan Monnier, 2011/10/19
- Re: Multithreading, again and again, Tom Tromey, 2011/10/20
- Re: Multithreading, again and again, Stefan Monnier, 2011/10/20
- Re: Multithreading, again and again, Dave Abrahams, 2011/10/20