Rune: Rust VM for Emacs

(github.com)

61 points | by whacked_new 3 days ago ago

20 comments

  • rich_sasha 3 days ago ago

    Pretty cool. Always happy to see new ideas in EMacs. I love it and my life would be tangibly worse without it. Equally, it feels part 22nd century, part mediaeval.

    I wonder what end user improvements this might lead to. Better threading/external process mgmt down the line? Nicer GUI options? I’m not particularly concerned about vulnerabilities in EMacs, and I believe I maybe once had a crash ever that happened in C, rather than some dodgy elisp.

    Iirc there was a similar project, maybe called “Remacs”, which died a death. I think part of it was that they concluded after a rewrite, it wouldn’t really be any better. I didn’t follow closely though.

    • resistings-gend 3 days ago ago

      I'm definitely worried about vulns in emacs. I don't want loading up a file to be able to do ACE for example, that would be quite bad.

      Another example is using emacs as an email or IRC client, which process untrusted inputs by nature.

      • throwaway7356 3 days ago ago

        A large part of that is logic errors and local file variable mess. That is not something rust can help with.

  • whacked_new 3 days ago ago

    I'm wondering how feasible it would be to have a libemacs a la libghostty. That would basically contain the elisp runtime, or even elisp compatible runtime. Which maybe would run bytecode, then host other languages.

    • bjoli 2 days ago ago

      This would have been one of the large wins of guile-emacs imo. A separation between what runs elisp and the program emacs.

      Imagine a liborgmode.

    • weavie 2 days ago ago

      I vibecoded something like this a little while ago, but haven't had the time to actually run it to see if it works yet..

      • whacked_new 2 days ago ago

        How far did you get? Did you go through a core/UI layer split and set up some kind of protocol? I'm especially curious whether it's better to go down something like LLVM or a translation layer for something like common lisp.

  • imtringued 2 days ago ago

    I thought someone built a Rust interpreter inside emacs...

  • alfiedotwtf 3 days ago ago

    I’ve thought about doing this too, but I just couldn’t see a way of doing Rust s-exp at runtime nicely.

    Nice work. Looking forward to this

  • andros 2 days ago ago

    There are a lot of projects that aim to bring Rust to Emacs. It seems doomed!

  • pjmlp 3 days ago ago

    Even Emacs cannot escape the whole RIR.

    • rpdillon 2 days ago ago

      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.

      • 3836293648 2 days ago ago

        You're missing neomacs which is still active

  • indy 2 days ago ago

    There hasn't been a commit to the main branch in 3 months.

  • malicka 3 days ago ago

    Another vibe-coded Emacs reimplementation… while I like the idea these sell, “Emacs but even more performant and in Rust,” it’s just fundamentally uninteresting when it’s slopped out.

    • whacked_new 3 days ago ago

      The author gave a talk at emacsconf 2024 about the project (https://emacsconf.org/2024/talks/rust/) so even if the latest commits have agent work in them I'd give the author a bit more credit and credence.

    • DeathArrow 3 days ago ago

      >it’s just fundamentally uninteresting when it’s slopped out.

      All major software is using AI now. Microsoft, Google, Apple, Meta etc. They are all doing it.

      Rejecting code just because AI coding tools were used doesn't make sense anymore. We should reject bad, sloppy software whether is written by AI or not.

      I would gladly take careful AI written code over resource hogs of yesteryear, Electron + JS everywhere, done by hand.

      • anonymous908213 2 days ago ago

        Has anyone accused Microsoft, Google, Apple, or Meta of making good software in the last two years? We know they want to cut costs, that doesn't mean the users benefit from it.

      • rootnod3 2 days ago ago

        > They are all doing it.

        Always a great argument. Jumping off the cliff etc. :D