Rune: Rust VM for Emacs github.com · 9 points · 0 comments · HN thread TL;DR Run...
HN Best 200 @best
Rune: Rust VM for Emacs github.com · 9 points · 0 comments · HN thread
TL;DR Rune is an experimental Emacs Lisp core written in Rust, at a very early stage, aiming to add multi-threaded elisp, stay bug-compatible with existing Emacs packages, and gain performance from the Rust ecosystem. The current goal is a minimal editor MVP with buffers, editing, scrolling and file IO, with the project pulling Lisp files from the Emacs 29.1 source tree. The story has 9 points and no comments yet.
- Goals are multi-threaded elisp, bug-compatibility with existing Emacs Lisp packages, and faster GC, regex and JSON via Rust crates.
- Current milestone is an editor MVP: buffers, text insertion/deletion, cursor, line wrapping, scrolling, file IO and display tables, with a basic elisp runtime already working.
- Bytecode VM reuses Emacs opcodes and bytecomp.el; the reader is hand-written; the interpreter exists only to bootstrap the byte-compiler.
- Builtins are defined with a defun proc macro, and a assert_elprop! macro compares results against GNU Emacs, including proptest-based property tests.
- Tests can be run under MIRI, and Windows tests are supported via a wine prefix setup script.
Discussion The story has no comments yet, so there is no discussion to summarize.