Sift: The Lisp formatter I kept trying to write (+lint and LSP)

(jointhefreeworld.org)

10 points | by jjba23 19 hours ago

2 comments

  • cheshire_cat 56 minutes ago
    Am I getting paranoid or does this text read very LLMish?
    • irthomasthomas 15 minutes ago
      You need to stop reading things and get your agent to read them for you.
    • 0c3ca83 17 minutes ago
      It's 100% AI. The formatter is also AI. I wonder if the AI cares about formatting.

      It's always interesting to me when the people who have given up on writing code build tools around it. It seems like some form of inertia, performing a pointless ritual because it feels right to them.

      I wonder what goes through their minds as they build tools to enable things that they no longer do.

  • dukoid 50 minutes ago
    Lisp people: Look at the elegance and simplicity of S-expressions! Isn't it a beauty?

    Also Lisp people: Here is a thesis-sized article about formatting them properly O:)

    • _ph_ 17 minutes ago
      Actually, due to the Lisp syntax, code formatting is usually a non-issue. It is mostly reduced to correct indenting, where a common style had been established very early on in the language history - which means really long ago. All editors, which are Lisp-aware usually do it very well.

      The problem remaining is, that there are editors around, which are not Lisp aware and to my continuing confusion, lots of users, which use them. So there is from time to time the requirement to predictably reformat source files. Of course, also helps a lot with automatic generated code. Just feed it to the formatter. I wrote a tool comparable to gofmt some time ago and it is very helpful.

    • guenthert 33 minutes ago
      From TFA: In the Lisp world the answer is usually “my editor does it”

      And that's where the story ends for most of us. Author's set-up seems to have had CI tools fighting the editor. Most of us would have disabled the misguided CI auto-formatter ...