In Emacs, Everything Looks Like a Service

(yummymelon.com)

66 points | by kickingvegas 4 hours ago

8 comments

  • deng 7 minutes ago
    This just proves that you can cram pretty much anything into the client/server dichotomy if you just define "client", "server" and "request" broad enough. Similarly, I remember how desperately people tried to argue that Emacs follows the "Unix philosophy" as long as your LISP functions are doing just one thing, and do them well. I don't know what you would gain from these things. Emacs follows the idea of LISP machines, I think that much anybody can agree on. From there, Emacs can be or do pretty much whatever you want. It's excellent in communicating with CLI tools - you can call that client/server if you want, but I wouldn't know what you'd gain from that definition. The reality is that Emacs has gone through a lot of fads and hypes over its decades of existence, and each time, it has taken something along the way. Heck, there's a whole semantic parsing engine buried within (CEDET), which nowadays is pretty much unused, because then LSPs came along, and now we have agents (which Emacs btw is a pretty decent frontend for).
  • pjmlp 1 hour ago
    > A common refrain is that Emacs is an operating system (OS). This isn’t true, but what invites comparison to an OS is its ability to orchestrate applications and utilities above the OS kernel level.

    Only because Lisp Machines, or variations thereof didn't took off in the mainstream.

    "Symbolics Lisp Machine demo"

    https://www.youtube.com/watch?v=o4-YnLpLgtk

    "Emacs and Lisp"

    https://funcall.blogspot.com/2025/04/emacs-and-lisp.html

    While Emacs was forked by Lucid as XEmacs to make one of the very first ideas of LSP, nowadays most features have been integrated back into Emacs

    https://dreamsongs.com/Cadillac.html

    "Lucid Energize Demo"

    https://www.youtube.com/watch?v=pQQTScuApWk

    • charcircuit 1 hour ago
      Even if LISP machines took off, an editor running on them still would not be an OS. Such claims come from people who don't understand what a platform is and who can conflate any platform with an operating system. You also see these people calling web browsers operating systems. By this flawed definition you could even call things like Roblox an operating system.
      • pjmlp 1 hour ago
        "An operating system is a collection of things that don't fit into a language. There shouldn't be one"

        -- Dan Ingalls

        • bcjdjsndon 49 minutes ago
          In the Linux world, isn't the c compiler necessary for Linux to function?
          • TylerE 39 minutes ago
            To build? Sure.

            To run? Absolutely not.

        • charcircuit 39 minutes ago
          Developers love building on platforms. Saying there shouldn't be platforms defies reality.

          Edit: Looking up the quote it seems to just be the person being pedantic in how they define operating systems.

  • kandros 1 hour ago
    One of the pivotal moments in my career has been when I used Emacs just enough to truly understand what "Emacs is an operating system" means, not just as a joke but as something I could believe in
    • bcjdjsndon 45 minutes ago
      But you already had an operating system and you could already code... Did Emacs really give YOU any capability you didn't have before? Don't forget this is a text editor, not an IDE or some general purpose automation harness

      You could add lisp to mspaint and mspaint suddenly becomes awesome somehow? I don't follow the logic

      • ryukafalz 13 minutes ago
        It certainly did for me, because it let me trivially write code that integrates deeply into the rest of the system.

        A simple example: I wrote a function that let me highlight an X.509 cert in a YAML document, regardless of indentation, and pass it to 'openssl x509' to show me what it is. This has saved me lots of time over the years not having to copy/paste, fiddle with whitespace, etc. But it's only valuable because the functionality is now right at my fingertips in the environment I'm already in!

      • rausr 33 minutes ago
        > Don't forget this is a text editor, not an IDE or some general purpose automation harness

        It's more correctly a Lisp execution environment with a text editor added as a bonus ;)

        • noufalibrahim 16 minutes ago
          A lisp interpreter with text editing primitives.
      • skydhash 11 minutes ago
        The Emacs API is kinda huge, with things like very raw network API, a very good approximation of fork/exec process management, buffers as the base communication mechanism with a lot of capabilities, various utility function with regards to interfacing with the user (windows, frame, faces, keyboard events), then the hooks and advice subsystem.

        With Unix, most programs are binary and while the shell is a good glue language, you can’t alter a program and the OS that much. With Emacs, only the core coded in C is sacred, anything else can be modified to fit your workflow. And there’s a lot of packages out there to provide you with raw materials.

  • mimo84 2 hours ago
    I have been using emacs for the past couple of years. Started because I wanted to try out org mode and stayed for the extreme flexibility it offers.
    • smitty1e 1 hour ago
      I've been on spacemacs.org for a while, but since I've got a Keychron G6 Pro where I can reprogram the caps lock, I'm going to try out some hard-core init.el stylings.

      Suggestions welcome.

      • mimo84 1 hour ago
        I also started on spacemacs but then I wanted to learn the basics of it and switched to writing my own configuration from scratch. What helped me the most is reading though the Mastering Emacs book by Mickey Petersen which is an amazing resource to learn the basics and beyond. Right now I'm in the process of reducing the number of external packages I use and I'm trying to use more of the built in functionality that is available "out of the box".
  • floathub 15 minutes ago
    Came across this recently, which I find is a good and short intro to Emacs for people who don't use it:

    https://www.youtube.com/watch?v=mJZDmO5yOxE

    • pedro_caetano 10 minutes ago
      Now I am really curious to see Anon Emoose's init.el
  • girvel 36 minutes ago
    I did not get this argument. Diagrams are nice, and I probably missed something in lisp code (not used to lisp syntax), but I see no argument that Emacs has more service-like interaction with other apps or its plugins than say vim or vscode. I agree that emacs is the most OS-like, but I would love if someone explained what exactly is the point in the article
  • driva 53 minutes ago
    It's a shell not an operating system but the concept of a shell isn't commonly understood.
    • archargelod 19 minutes ago
      I see shell as an instrument through which you use other tools. In that sense, vi feels much more like a shell, because you have to use other standard unix programs with `:.!` for much functionality.

      Where Emacs comes with all bells and whistles included in one big distribution, much like an operating system.

  • fgeytk2 2 hours ago
    [dead]