一款名为“Rune”(Rust UN der Emacs)的实验性开源项目发布文档与代码库,旨在利用Rust语言重写Emacs的核心引擎 1。该项目目前处于极早期阶段,主要目标是实现一个编辑器最小可行性产品(MVP),并计划通过引入Rust生态系统来提升性能,包括更快的垃圾回收、正则表达式处理及JSON解析能力 1。除了性能优化,开发团队还致力于解决Elisp的多线程支持问题,同时确保新内核能与现有的Emacs Lisp包保持“错误兼容” 1。
在功能规划上,Rune已明确列出了缓冲区管理、文本插入与删除、光标控制、行换行、滚动操作、文件输入输出以及显示表格等核心模块的开发路线 1。为了确保兼容性,该项目直接引用了GNU Emacs 29.1版本中的Lisp文件作为依赖资源 1。开发者提供了详细的构建与测试指引,用户可通过 cargo run --release -- --repl 命令启动交互式环境,并利用MIRI工具及自定义的 assert_elprop! 宏针对GNU Emacs进行属性测试验证 1。
尽管存在类似的前作如已停止维护的Remacs,或集成Deno运行时的emacs-ng以及独立的Helix编辑器,但Rune试图在保留Emacs原有生态优势的同时,通过底层重构探索新的可能性 1。
Rune, an acronym for "Rust UN der E macs," is an experimental project rewriting the core of the Emacs editor using the Rust programming language 1. The initiative is currently in a very early phase, with developers targeting a minimum viable product (MVP) for the editor 1. Key architectural components planned for implementation include buffer management, text insertion and deletion, cursor control, line wrapping, scrolling, file input/output, and display tables 1.
The primary goals of Rune are to introduce multi-threaded support for Elisp within Emacs, ensure "bug-compatible" functionality with existing Emacs Lisp packages, and leverage the Rust ecosystem for performance improvements such as faster garbage collection, regular expressions, and JSON processing 1. To maintain compatibility, the project pulls necessary Lisp files from the GNU Emacs mirror repository at version 29.1 1. Developers can run the software using the command cargo run --release -- --repl 1.
For quality assurance, Rune employs MIRI for testing and uses an assert_elprop! macro to perform property-based testing against GNU Emacs 1. The project documentation also references related initiatives, noting that Remacs is unmaintained, while emacs-ng utilizes a Deno runtime, and helix serves as another relevant example in the space 1.
评论
还没有评论,欢迎留下第一条。