[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
buffer transactions (was Re: Very interesting analysis of "the state of
From: |
Nic |
Subject: |
buffer transactions (was Re: Very interesting analysis of "the state of Emacs") |
Date: |
Mon, 05 May 2008 00:23:46 +0100 |
Richard M Stallman <address@hidden> writes:
> Good point. But I don't think it's a problem either: what I meant by
> "multithreading within a single buffer" is that we'd have a lock per
> buffer. Whenever lisp code enters a buffer, we'd acquire the lock.
>
> What does it mean to "enter a buffer"? Does calling `set-buffer' do
> that?
>
> If it means entering the code of a primitive that directly examines or
> alters the buffer contents, I would suggest not allowing a thread
> switch inside of them (or most primitives). If the threads are
> implemented explicitly in our C code, switching can happen only where
> we want it to happen. That would avoid lots of problems. We would
> only allow thread switches at places where Lisp code can be run.
Just an idle thought... has anyone considered transactional support
for buffer modification in emacs? This would enable simultaneous
access to buffers by different processes/threads and (it seems) could
be implemented by changing the insert primitives in scope for a
background process to record a transaction log of all the changes a it
wants to make to a buffer (or variable for that matter) and merging it
with the state of the actual buffer on completion of the process.
--
Nic Ferrier
http://www.woome.com - Enjoy the minute!
- Re: Very interesting analysis of "the state of Emacs", Jonathan Rockway, 2008/05/01
- Re: Very interesting analysis of "the state of Emacs", David Hansen, 2008/05/01
- Re: Very interesting analysis of "the state of Emacs", Miles Bader, 2008/05/01
- Re: Very interesting analysis of "the state of Emacs", Jonathan Rockway, 2008/05/01
- Re: Very interesting analysis of "the state of Emacs", Stefan Monnier, 2008/05/02
- CEDET and threads (was Re: Very interesting analysis of "the state of Emacs"), Eric M. Ludlam, 2008/05/02
- Re: Very interesting analysis of "the state of Emacs", Richard M Stallman, 2008/05/03
- Re: Very interesting analysis of "the state of Emacs", Stefan Monnier, 2008/05/03
- Re: Very interesting analysis of "the state of Emacs", Richard M Stallman, 2008/05/04
- buffer transactions (was Re: Very interesting analysis of "the state of Emacs"),
Nic <=
- Re: buffer transactions (was Re: Very interesting analysis of "the state of Emacs"), Richard M Stallman, 2008/05/05