Rune, an experimental Emacs core in Rust, aims at multi-threaded elisp

Rune (the name stands for Rust UNder Emacs) is an experimental Emacs core written in Rust. Its README says the project is still at a very early phase and lists three goals: bring multi-threaded elisp to Emacs; be "bug-compatible" with existing Emacs Lisp packages, so that everything should still work; and enable performance improvements, including faster GC, regex and JSON, by leveraging the Rust ecosystem. Those performance gains are stated as a goal, not as a result.
The current target is an editor MVP. According to the README, a basic elisp runtime exists, and the team is adding basic editing functionality in a minimal GUI. The planned list is: buffer, text insertion and deletion, cursor, line wrapping, scrolling, file IO and display tables. Lisp files are currently pulled from the emacs-29.1 lisp directory of the Emacs mirror on GitHub, and any modification made for bootstrapping carries the tag RUNE-BOOTSTRAP.
The README walks through the code layout. The main package, rune, depends on crates in a crates directory, including rune-macros, which defines the defun proc macro for declaring builtin functions. The rest lives in src/, in these modules: objects (modeled on Emacs objects, using tagged pointers with inline fixnums); reader (a hand-rolled Emacs Lisp reader that does not rely on any parsing libraries); env (the global obarray, where function bindings are currently global and immutable and value bindings are thread-local and mutable, so that once data can be shared between threads, new threads can run functions without copying them); gc (the allocator and garbage collector, plus all rooting code); bytecode (a VM that uses the same opcodes as Emacs and uses bytecomp.el to compile); interpreter (used only to bootstrap the elisp byte-compiler); and fns, data and alloc (builtin function definitions, some of them just stubbed out until needed).
Development works by trying to load new elisp files and seeing what breaks, which usually means implementing more primitive functions with the defun macro. The README's example is substring: take the Lisp signature (substring STRING &optional FROM TO) and write a Rust function with the equivalent types, using Object when the right type is unknown. Running cargo run --release -- --repl loads the bootstrapped elisp and opens a REPL; adding --no-bootstrap opens the REPL with only builtin functions; a plain cargo run --release loads the bootstrapped elisp and exits. A new file can be loaded with cargo run --release -- --load
For testing, Rune has an assert_elprop! macro that sends the same Lisp form to both Rune and GNU Emacs and compares the results. It can be combined with the proptest crate, for example to check make-vector over arbitrary byte sizes. The suite can also be run under MIRI with strict provenance, and the README gives steps for running the tests on Windows through Wine and an eglot setting for checking #[cfg(windows)] code.
The README also lists related work. Remacs, the original Rust and Emacs project, let Rust and the Emacs C core interoperate so that parts could be replaced piecemeal; it is currently unmaintained but is a big inspiration for Rune. emacs-ng, described as the spiritual successor to remacs, integrates the Deno runtime so extensions can be written in elisp or JavaScript. The list also names helix, a fast modern text editor written in Rust, and Crafting Interpreters as a big inspiration. Contributors are asked to open an issue.
Key facts
- Rune is an experimental Emacs core written in Rust; the README says it is at a very early phase.
- Stated goals: multi-threaded elisp, bug-compatibility with existing Emacs Lisp packages (everything should still work), and performance gains such as faster GC, regex and JSON from the Rust ecosystem.
- The current target is an editor MVP: a basic elisp runtime exists, and a minimal GUI with buffer, text insertion and deletion, cursor, line wrapping, scrolling, file IO and display tables is in progress.
- The bytecode VM uses the same opcodes as Emacs and compiles with bytecomp.el; Lisp files are pulled from the emacs-29.1 lisp directory.
- The assert_elprop! macro tests Rune against GNU Emacs by sending the same Lisp form to both and comparing results.
Why it matters
Rune's first stated goal is to bring multi-threaded elisp to Emacs. The design leans on Rust: function bindings are global and immutable and value bindings are thread-local, which the README says will let new threads run functions safely without copying them once sharing data between threads is added. The project also positions itself against Remacs, which replaced parts of the C core piecemeal and is now unmaintained, by building a fresh core instead.
Who it affects
For now, mainly Rust and Lisp developers who want to work on an Emacs implementation; the README invites contributors to open an issue. Emacs users and package authors are the longer-term audience, since the stated aim is that existing Emacs Lisp packages keep working.
How to use it
Clone the repository and use cargo. Run cargo run --release -- --repl to load the bootstrapped elisp and open the REPL, or add --no-bootstrap to get only the builtin functions. To contribute, load a new elisp file with cargo run --release -- --load
How solid is it
Everything here comes from the project's own README. It calls the project very early, says a basic elisp runtime exists, and says the editor functionality is still being added. Performance improvements and multi-threading are stated as goals. The README gives no benchmarks and names no maintainers or release timeline.
Risks and caveats
Rune is not described as a usable day-to-day editor; the editor MVP is work in progress. Multi-threaded elisp is a goal, and sharing data between threads is described as something to be added later. Compatibility is a goal too ("everything should still work"), and the Lisp files come from Emacs 29.1 only. The README says some builtin functions are just stubbed out until needed. Remacs, the earlier Rust and Emacs effort, is unmaintained.
“This project is moved forward by trying to load new elisp files and seeing what breaks.”
— Rune README