← Tue, Nov 24 digest

Rune: Rust VM for Emacs

read article ↗ hn thread ↗

Rune is an experimental, multi-threaded Emacs Lisp runtime and editor core written in Rust, aiming for bug compatibility with GNU Emacs.

summary is enough The repository readme provides a concise architectural overview, but the project is early-stage and follows a historical line of stalled Rust-Emacs rewrites.

summary

Rune is an experimental Emacs core and Lisp runtime written in Rust designed to enable multi-threaded execution and performance improvements in garbage collection and parsing. The project implements a custom Lisp reader, a bytecode VM compatible with Emacs opcodes, and property-testing macros that verify results against GNU Emacs. While it targets a minimal editor MVP, it faces the same daunting maintenance hurdles that ultimately stalled predecessor projects like Remacs and Emacs-ng.

key points

  1. Aims to introduce multi-threaded Elisp while preserving drop-in bug compatibility with existing packages.
  2. Features an assert_elprop! macro that runs property tests comparing Rune's evaluation directly against GNU Emacs.
  3. Architecture relies on tagged pointers, a hand-rolled Lisp reader, and a custom memory allocator implemented in Rust.

who should read it

Emacs power users and language runtime engineers interested in alternative architectures and multi-threaded Lisp environments.

discussion mixed

consensus

Commenters recognize the appeal of a multi-threaded Emacs in Rust but remain deeply skeptical of its long-term viability given the graveyard of similar stalled rewrites.

pushback

A few commenters emphasize potential security advantages, such as reducing memory vulnerabilities when parsing untrusted inputs via email or IRC clients.

best comment by rpdillon ↗

Yeah, I've been trying to follow...I think the first was Remacs, but Remacs hasn't had a commit in 5 years: https://github.com/remacs/remacs

Emacs-ng was the version pointed to by Remacs as maintained, but the last update in 2025: https://github.com/emacs-ng/emacs-ng

AI might give us some leverage here that didn't exist before, but it's obviously a hard problem.

It outlines the timelines and abandonment of previous Rust-Emacs efforts like Remacs and Emacs-ng to ground the discussion in historical context.

Generated by an LLM from the article and thread. Check the sources before relying on it.