|
|
|
|
|
by tmtvl
1278 days ago
|
|
Yes, that post was mentioned in the article I linked: Even Emacs current threads library suffers from data races which is one of the reason I believe it has not seen much adoption. (where suffers from data races is a link to Chris Wellons' post). The idea now is, as Chris states: There really needs to be a safe, high-level API with clean thread isolation. Perhaps this higher-level API will eventually build on top of the low-level threading API. While you are right that for 99% of standard usage single-threaded code is entirely fine, not utilizing between half to 15/16ths of potential processing power is a bit of a shame, especially considering it means doing something like indexing an entire project (yes, we can use GNU Global) will require the user to just sit and wait. |
|
I suppose if you still want that program to be written with Emacs Lisp, you could use async.el (https://github.com/jwiegley/emacs-async/) and there's finally an use-case for the threads: it'll be relatively safe to run those 16 threads only in the external Emacs-process.