Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> GNU Emacs has a lot of applications where it is the right thing. It's no longer the simple editor. It comes with more than a million lines of Lisp code implementing all kinds of complex features: like various network client applications, IDEs, ...

Multi-threading has landed in emacs anyway, by the way: https://www.gnu.org/software/emacs/manual/html_node/elisp/Th...



I experimented with that, but it doesn't use more than one CPU core, so it's more of a proof of concept at the moment.

You could use it to make non-blocking user experience perhaps, but you could also do it using `while-no-input` or a library like deferred.el or my https://github.com/meedstrom/asyncloop.

Anyway, there is `make-process` for multicore work. Takes some boilerplate and studying, but no more than with threads.


see the word "limited" in the documentation. It's some kind of "cooperative thread" mechanism...


We can also use SBCL's multi threading in Elisp

https://git.sr.ht/~hajovonta/glue/tree/master/item/README.or...


Yes, that runs Common Lisp code in an external Common Lisp instance via a SLIME / SLY connection, using the CL thread features. It can use Bordeaux-Threads as API for threads in various CL implementations. https://github.com/sionescu/bordeaux-threads




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: