<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Planet Scheme</title><link href="https://planet.scheme.org/" rel="alternate"/><link href="https://planet.scheme.org/atom.xml" rel="self" type="application/atom+xml"/><id>https://planet.scheme.org/</id><updated>2026-12-03T23:05:46Z</updated><entry><title>jointhefreeworld: Sift: the Lisp formatter I kept trying to write (+lint +LSP)</title><link href="https://jointhefreeworld.org/blog/articles/lisps/sift-the-lisp-formatter-i-kept-trying-to-write/index.html" rel="alternate"/><id>https://jointhefreeworld.org/blog/articles/lisps/sift-the-lisp-formatter-i-kept-trying-to-write/index.html</id><updated>2026-12-03T00:00:00+01:00</updated><content type="html">&lt;div id=&quot;content&quot; class=&quot;content&quot;&gt; &lt;p&gt;
sift is one  &lt;a href=&quot;https://www.gnu.org/software/guile/&quot;&gt;Guile&lt;/a&gt; program: a formatter, a linter and a language server for Scheme, Racket, Emacs Lisp and Common Lisp. It has 95 rules, formatting is idempotent, and it runs in your editor, your terminal, CI, a container and a browser tab.
&lt;/p&gt;

 &lt;p&gt;
I’ve been writing Lisp for a few years, and for most of that time my tooling was a pile of workarounds. Two editors disagreed about indentation. CI formatted the code one way and my editor another. A compiler warning was prose: no stable code, no severity, no JSON, no way to suppress it next to the line that caused it, no fix. A repository with Scheme, Emacs Lisp and Common Lisp needed three tools, three configs and three CI steps. sift is the first thing I’ve built that reads the file instead of guessing at it.
&lt;/p&gt;

 &lt;p&gt;
 &lt;i&gt;This is the program I’ve been trying to write for years. I finally got it.&lt;/i&gt;
&lt;/p&gt;

 &lt;p&gt;
Find sift at  &lt;a href=&quot;https://github.com/jjba23/sift&quot;&gt;https://github.com/jjba23/sift&lt;/a&gt;, and try it in your browser at  &lt;a href=&quot;https://jointhefreeworld.org/sift/&quot;&gt;https://jointhefreeworld.org/sift/&lt;/a&gt;.
&lt;/p&gt;

 &lt;div&gt;
   &lt;img src=&quot;https://jointhefreeworld.org/ggg/dist/scheme-guile.svg&quot; alt=&quot;Scheme Guile&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;img src=&quot;https://jointhefreeworld.org/ggg/dist/scheme-racket.svg&quot; alt=&quot;Racket&quot;/&gt;&lt;img/&gt; &lt;img src=&quot;https://jointhefreeworld.org/ggg/dist/emacs-lisp.svg&quot; alt=&quot;Emacs Lisp&quot;/&gt;&lt;img/&gt; &lt;img src=&quot;https://jointhefreeworld.org/ggg/dist/lisp-sbcl.svg&quot; alt=&quot;Common Lisp&quot;/&gt;&lt;img/&gt;&lt;/div&gt;

 &lt;figure&gt; &lt;img src=&quot;/static/img/sift-demo.gif&quot; alt=&quot;sift lint, fix and format in a terminal, then the same file in Emacs&quot; loading=&quot;lazy&quot;/&gt;&lt;img/&gt; &lt;figcaption&gt; &lt;code&gt;sift lint&lt;/code&gt;,  &lt;code&gt;sift fix --write&lt;/code&gt;, the formatter's diff, and the same file in Emacs with Flymake, Eglot and formatting. Recorded from a checkout.&lt;/figcaption&gt;&lt;/figure&gt; &lt;hr/&gt;&lt;hr/&gt; &lt;h2&gt;The problem  &lt;a id=&quot;the-problem&quot; class=&quot;anchor&quot; href=&quot;#the-problem&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-orgb9d5f63&quot;&gt;
 &lt;p&gt;
Lisp is a tree of nested lists. The language knows it; most of the tooling around it pretends otherwise, sometimes with regex.
&lt;/p&gt;

 &lt;p&gt;
Go has  &lt;a href=&quot;https://go.dev/blog/gofmt&quot;&gt;gofmt&lt;/a&gt; and Rust has  &lt;a href=&quot;https://github.com/rust-lang/rustfmt&quot;&gt;rustfmt&lt;/a&gt;: one program, the same answer on every machine. In the Lisp world the answer is usually “my editor does it”, “the compiler warns about it”, “we have a  &lt;code&gt;fmt&lt;/code&gt; task somewhere”, or “run  &lt;a href=&quot;https://guix.gnu.org/manual/en/html_node/Invoking-guix-style.html&quot;&gt; &lt;code&gt;guix style&lt;/code&gt;&lt;/a&gt; on the package file”. Those are local opinions, some with a batch mode.
&lt;/p&gt;

 &lt;p&gt;
That was my situation. My projects are Guix and Guile, Emacs Lisp and a little Common Lisp; Racket is the fourth dialect sift grew into. Formatting was a  &lt;code&gt;maak fmt&lt;/code&gt; task running  &lt;code&gt;guix style&lt;/code&gt; on every  &lt;code&gt;.scm&lt;/code&gt; file and Emacs’s  &lt;code&gt;indent-region&lt;/code&gt; on every  &lt;code&gt;.el&lt;/code&gt; file. Linting was  &lt;a href=&quot;https://www.gnu.org/software/emacs/manual/html_node/emacs/Checkdoc.html&quot;&gt; &lt;code&gt;checkdoc&lt;/code&gt;&lt;/a&gt;, the byte-compiler,  &lt;a href=&quot;https://www.gnu.org/software/guile/manual/html_node/Compilation.html&quot;&gt; &lt;code&gt;guild compile -W3&lt;/code&gt;&lt;/a&gt;,  &lt;a href=&quot;https://guix.gnu.org/manual/en/html_node/Invoking-guix-lint.html&quot;&gt; &lt;code&gt;guix lint&lt;/code&gt;&lt;/a&gt;,  &lt;code&gt;stylelint&lt;/code&gt;, and a hand-written checker that read every  &lt;code&gt;.el&lt;/code&gt; form to prove the config still loaded. Each tool was good at its slice. None of them was the thing I wanted, and they disagreed at the boundaries.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;The failed attempts  &lt;a id=&quot;the-failed-attempts&quot; class=&quot;anchor&quot; href=&quot;#the-failed-attempts&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-orgca2b440&quot;&gt;
 &lt;p&gt;
I didn’t design sift in one go. I kept solving the problem with the tools I had, and each attempt taught me one piece.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;The keyboard macro  &lt;a id=&quot;the-keyboard-macro&quot; class=&quot;anchor&quot; href=&quot;#the-keyboard-macro&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-orgd9fb00d&quot;&gt;
 &lt;p&gt;
Tabs to spaces, trailing whitespace gone,  &lt;code&gt;indent-region&lt;/code&gt;, save, stare at the diff. Then a  &lt;code&gt;sed&lt;/code&gt; script. It felt like magic for about a day, until I hit a form whose indentation depended on what the form meant. The mechanical part is easy. The structural part is the whole problem.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;Emacs in batch  &lt;a id=&quot;emacs-in-batch&quot; class=&quot;anchor&quot; href=&quot;#emacs-in-batch&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org9178de1&quot;&gt;
 &lt;p&gt;
The obvious next step was Emacs’s own indentation engine over the whole tree. I had a file called  &lt;code&gt;batch-indent.el&lt;/code&gt;:
&lt;/p&gt;

 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt;( &lt;span class=&quot;org-keyword&quot;&gt;defun&lt;/span&gt;  &lt;span class=&quot;org-function-name&quot;&gt;indent-file&lt;/span&gt; ( &lt;span class=&quot;org-type&quot;&gt;&amp;optional&lt;/span&gt; save)
   &lt;span class=&quot;org-doc&quot;&gt;&quot;Format the whole buffer.&quot;&lt;/span&gt;
  (indent-region (point-min) (point-max) nil)
  (untabify (point-min) (point-max))
  (delete-trailing-whitespace)
  ( &lt;span class=&quot;org-keyword&quot;&gt;when&lt;/span&gt; save
    (save-buffer)))&lt;/pre&gt; copy&lt;/div&gt;

 &lt;p&gt;
Lisp indentation is structural, and the modes encode decades of convention, so for a while this felt like a formatter. But the answer depends on  &lt;code&gt;scheme-mode&lt;/code&gt;,  &lt;a href=&quot;https://www.nongnu.org/geiser/&quot;&gt;Geiser&lt;/a&gt;, the project’s  &lt;code&gt;indent-rules&lt;/code&gt; and the Emacs version, so two machines could format the same file two ways and both were right according to their setup. It only indents, so it doesn’t own the printer, isn’t a fixed point, and has no lint, no exit status and no report.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;guix style  &lt;a id=&quot;guix-style&quot; class=&quot;anchor&quot; href=&quot;#guix-style&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-orgf0b4df6&quot;&gt;
 &lt;p&gt;
Next I tried the canonical tool where one existed.  &lt;code&gt;guix style&lt;/code&gt; knows how a package definition should look, and it has taste. It also formats package definitions, not Scheme: not my modules, not my SXML, not my general procedures or comments. It reflows, so every new idea about line breaks turns every file into a diff. And the  &lt;code&gt;.el&lt;/code&gt; files still went to Emacs, which left the repo with two formatters and a boundary where they disagreed. I kept the ambition, and the suspicion that reflowing was the enemy.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;The compiler  &lt;a id=&quot;the-compiler&quot; class=&quot;anchor&quot; href=&quot;#the-compiler&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org0ec3789&quot;&gt;
 &lt;p&gt;
Then I tried to stop writing a linter and use the ones the language already had:  &lt;code&gt;checkdoc&lt;/code&gt; and the byte-compiler for Emacs Lisp,  &lt;code&gt;guild compile -W3&lt;/code&gt; for Scheme,  &lt;code&gt;guix lint&lt;/code&gt; in Guix buffers, plus a small checker that read every  &lt;code&gt;.el&lt;/code&gt; form and compared the module list in  &lt;code&gt;init.el&lt;/code&gt; with the files on disk:
&lt;/p&gt;

 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt;( &lt;span class=&quot;org-keyword&quot;&gt;while&lt;/span&gt; ( &lt;span class=&quot;org-keyword&quot;&gt;progn&lt;/span&gt; (forward-comment (point-max)) (not (eobp)))
  (read (current-buffer)))&lt;/pre&gt; copy&lt;/div&gt;

 &lt;p&gt;
This taught me the most important lesson of the bunch: the language’s own reader and compiler know more than any regex. A file that doesn’t read is a finding. A docstring that doesn’t name its arguments is a convention the byte-compiler cares about.  &lt;code&gt;lexical-binding&lt;/code&gt; isn’t taste; it’s a header the file needs.
&lt;/p&gt;

 &lt;p&gt;
But  &lt;code&gt;read&lt;/code&gt; throws away the evidence. It discards comments, keeps no positions, and can’t represent a block comment, a datum comment or a reader prefix as a node.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;The pretty-printer  &lt;a id=&quot;the-pretty-printer&quot; class=&quot;anchor&quot; href=&quot;#the-pretty-printer&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org291a4a0&quot;&gt;
 &lt;p&gt;
Once the tree worked, I thought the next step was a pretty-printer that decided line breaks from structure, the way  &lt;a href=&quot;https://prettier.io/&quot;&gt;Prettier&lt;/a&gt; does. The output was beautiful. Then I ran it on a 300-line file and the diff touched every line.  &lt;code&gt;git blame&lt;/code&gt; stopped working, and every future change would be buried under the formatter’s opinions. I reverted the file and never wrote that pretty-printer again. That’s where the no-reflow rule comes from.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;read plus a scanner  &lt;a id=&quot;read-plus-a-scanner&quot; class=&quot;anchor&quot; href=&quot;#read-plus-a-scanner&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-orgfceefd6&quot;&gt;
 &lt;p&gt;
Before I wrote the reader, I tried to build the linter on Guile’s  &lt;code&gt;read&lt;/code&gt; plus a line scanner:  &lt;code&gt;read&lt;/code&gt; gave me forms, the scanner gave me lines, and a table mapped one to the other. Comments fell through the table. A comment inside a form, a  &lt;code&gt;#;&lt;/code&gt; datum comment, a string with a semicolon in it: the two representations disagreed and I couldn’t tell which one was right. I gave up and wrote the reader. One representation has to win, and it has to carry positions.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;The pre-commit hook  &lt;a id=&quot;the-pre-commit-hook&quot; class=&quot;anchor&quot; href=&quot;#the-pre-commit-hook&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org2e72d89&quot;&gt;
 &lt;p&gt;
I wired  &lt;code&gt;guix style&lt;/code&gt; and  &lt;code&gt;emacs --batch&lt;/code&gt; into a pre-commit hook. It was fast and useful, and it caught tabs and trailing whitespace before they landed, but it only caught what those tools caught, it couldn’t fix anything, and every repository had its own copy. The pipeline shape was right. The tool behind it was missing.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;One tool per dialect  &lt;a id=&quot;one-tool-per-dialect&quot; class=&quot;anchor&quot; href=&quot;#one-tool-per-dialect&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org3930485&quot;&gt;
 &lt;p&gt;
The obvious next move was one tool per dialect: Racket’s formatter for Racket,  &lt;code&gt;guix style&lt;/code&gt; for Scheme, Emacs for Elisp, something else for Common Lisp. It worked, in the sense that each dialect got a tool. It gave me four tools, four configs, four CI steps and four styles that disagreed at the boundaries.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;What it is  &lt;a id=&quot;what-it-is&quot; class=&quot;anchor&quot; href=&quot;#what-it-is&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;h3&gt;One executable  &lt;a id=&quot;one-executable&quot; class=&quot;anchor&quot; href=&quot;#one-executable&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org105d918&quot;&gt;
 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt;sift format [OPTIONS] [FILE...]      &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;print the formatted file
&lt;/span&gt;sift lint [OPTIONS] [FILE...]        &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;report findings
&lt;/span&gt;sift check [OPTIONS] [FILE...]       &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;print the patch, exit 1 if any
&lt;/span&gt;sift fix [OPTIONS] [FILE...]         &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;lint --fix
&lt;/span&gt;sift ci [OPTIONS] [FILE-OR-DIR...]   &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;format check + lint, never writes
&lt;/span&gt;sift lsp                             &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;a language server on stdin/stdout
&lt;/span&gt;sift doctor                          &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;what ran, what it read, what it decided
&lt;/span&gt;sift list-checkers [--dialect D]     &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;the catalogue as a table
&lt;/span&gt;sift explain RULE                    &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;one rule's reasoning
&lt;/span&gt;sift config show|explain|trust ...   &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;the settings, and which layer won
&lt;/span&gt;sift install-hooks [--force]         &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;a pre-commit hook that runs `ci'&lt;/span&gt;&lt;/pre&gt; copy&lt;/div&gt;

 &lt;p&gt;
Status 0 is clean, 1 is findings, 2 is a usage error or a file that can’t be read.
&lt;/p&gt;

 &lt;p&gt;
The dialect is explicit ( &lt;code&gt;--dialect&lt;/code&gt;), then the extension, then the shebang, then a marker in the first 200 lines:  &lt;code&gt;#lang&lt;/code&gt; is Racket,  &lt;code&gt;defpackage&lt;/code&gt; is Common Lisp,  &lt;code&gt;define-module&lt;/code&gt; is Scheme,  &lt;code&gt;lexical-binding&lt;/code&gt; is Emacs Lisp. If none answers, it says so. It never guesses.
&lt;/p&gt;

 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt;$ cat square.scm
(define (square x)
(* x x))

$ sift check square.scm
--- square.scm
+++ square.scm
@@ -1,2 +1,2 @@
 (define (square x)
 &lt;span class=&quot;org-function-name&quot;&gt;-&lt;/span&gt;(* x x))
+  (* x x))
$ echo $ &lt;span class=&quot;org-variable-name&quot;&gt;?&lt;/span&gt;
1&lt;/pre&gt; copy&lt;/div&gt;

 &lt;p&gt;
 &lt;code&gt;check&lt;/code&gt; prints the patch and exits 1. It never modifies your files.  &lt;code&gt;sift format --write square.scm&lt;/code&gt; makes the change, and the next  &lt;code&gt;sift check&lt;/code&gt; exits 0.
&lt;/p&gt;

 &lt;p&gt;
When the environment and the tool disagree, ask the tool:
&lt;/p&gt;

 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt;$ sift doctor
sift 1.41.2
  guile       3.0.11
  library     /home/joe/Hacking/sift/src
  rules       95
  dialects    scheme, racket, elisp, cl

Compilers
  scheme available
  elisp available
  cl not found

Configuration
  project  /home/joe/project/sift.yaml

Settings that are not the default
  brackets: square    &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;/home/joe/project/sift.yaml
&lt;/span&gt;  severity: warning    &lt;span class=&quot;org-comment-delimiter&quot;&gt;# &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;/home/joe/project/sift.yaml&lt;/span&gt;&lt;/pre&gt; copy&lt;/div&gt;
&lt;/div&gt;
 &lt;h3&gt;The formatter  &lt;a id=&quot;the-formatter&quot; class=&quot;anchor&quot; href=&quot;#the-formatter&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-orgc7dce5b&quot;&gt;
 &lt;p&gt;
Every node carries its source location. Comments, blank lines, datum comments and reader prefixes are nodes, not trivia. A file with one broken form still gets a tree, because a linter that says nothing about a file it couldn’t parse fails exactly when it’s needed.
&lt;/p&gt;

 &lt;p&gt;
The reader knows each dialect’s read syntax rather than a compromise:  &lt;code&gt;#\a&lt;/code&gt; is a character in Scheme, Racket and Common Lisp and  &lt;code&gt;?a&lt;/code&gt; in Emacs Lisp;  &lt;code&gt;#:key&lt;/code&gt; is an uninterned symbol and  &lt;code&gt;:key&lt;/code&gt; a keyword;  &lt;code&gt;#| ... |#&lt;/code&gt; nests;  &lt;code&gt;#;&lt;/code&gt; comments out the next datum;  &lt;code&gt;#lang&lt;/code&gt; opens a Racket module; a square bracket is a vector in Emacs Lisp and a clause delimiter in Scheme. sift doesn’t average the two.
&lt;/p&gt;

 &lt;p&gt;
The formatter does six things: normalise line endings, normalise spacing, place closing delimiters, compute indentation, optionally align inline comments, and preserve blank lines up to the style’s limits. Everything else comes out as written, including line breaks, strings, escapes and comments. Run it twice and you get the same bytes; the suite formats every fixture and then formats the result to check.
&lt;/p&gt;

 &lt;p&gt;
Indentation is three rules. A form whose first element is a symbol is looked up in the dialect’s table; a data list or vector aligns under its first element; anything else lines its arguments up under the first argument. That’s the whole algorithm. The tables exist for the forms where structure alone isn’t enough.
&lt;/p&gt;

 &lt;p&gt;
Two styles.  &lt;code&gt;community&lt;/code&gt; keeps closing delimiters trailing,  &lt;code&gt;dangling&lt;/code&gt; puts each on its own line. Scheme writes  &lt;code&gt;cond&lt;/code&gt; clauses with square brackets, as Guile and Guix do, and  &lt;code&gt;--brackets=parens&lt;/code&gt; or  &lt;code&gt;--brackets=preserve&lt;/code&gt; changes that; Emacs Lisp and Common Lisp keep what they were given. The  &lt;code&gt;clause-brackets&lt;/code&gt; rule ( &lt;code&gt;SIFT036&lt;/code&gt;) reports a file that hasn’t been formatted yet, and its fix swaps the two characters.
&lt;/p&gt;

 &lt;p&gt;
It refuses to reflow a long line (the  &lt;code&gt;line-length&lt;/code&gt; rule warns instead), invent a missing parenthesis, rewrite an expression, or format inside a  &lt;code&gt;#;&lt;/code&gt; datum comment, a  &lt;code&gt;#.&lt;/code&gt; form or a  &lt;code&gt;#&lt;...&gt;&lt;/code&gt; object.  &lt;code&gt;sift fix&lt;/code&gt; doesn’t reformat, because a fix that moved whitespace would touch every line of the patch it was meant to make readable.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;The linter  &lt;a id=&quot;the-linter&quot; class=&quot;anchor&quot; href=&quot;#the-linter&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org9462fe2&quot;&gt;
 &lt;p&gt;
A rule is a record: name, code, description, dialects, default severity, procedure and example. The driver reads the file once, runs the rules the dialect applies to, folds in what the reader reported, honours suppression comments, and sorts the findings by file, line, column and rule. There are 95 rules, each with a stable code ( &lt;code&gt;SIFT001&lt;/code&gt; through  &lt;code&gt;SIFT095&lt;/code&gt;), assigned by hand and never reused.  &lt;code&gt;sift explain RULE&lt;/code&gt; reads the reasoning out of the program, and  &lt;a href=&quot;https://github.com/jjba23/sift/blob/trunk/doc/rules.org&quot;&gt; &lt;code&gt;doc/rules.org&lt;/code&gt;&lt;/a&gt; is generated from the records.
&lt;/p&gt;

 &lt;p&gt;
The catalogue, condensed:
&lt;/p&gt;

 &lt;table border=&quot;2&quot; cellspacing=&quot;0&quot; cellpadding=&quot;6&quot;&gt; &lt;colgroup&gt; &lt;col class=&quot;org-left&quot;/&gt; &lt;col class=&quot;org-left&quot;/&gt;&lt;/colgroup&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot; class=&quot;org-left&quot;&gt;Where&lt;/th&gt;
 &lt;th scope=&quot;col&quot; class=&quot;org-left&quot;&gt;What it checks&lt;/th&gt;
&lt;/tr&gt;&lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt;all four&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;whitespace, line length, delimiters, empty bodies,  &lt;code&gt;progn&lt;/code&gt;, blank lines, comment levels, single-letter names, the  &lt;code&gt;if&lt;/code&gt; /  &lt;code&gt;when&lt;/code&gt; /  &lt;code&gt;unless&lt;/code&gt; family, keyword arguments, complexity&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt;Scheme and Racket&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;internal defines,  &lt;code&gt;letrec&lt;/code&gt;, quasiquote, clause brackets, docstrings, eta and beta reduction,  &lt;code&gt;let&lt;/code&gt; simplification&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt;Emacs Lisp&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;docstrings,  &lt;code&gt;lexical-binding&lt;/code&gt;,  &lt;code&gt;interactive&lt;/code&gt;,  &lt;code&gt;provide&lt;/code&gt;,  &lt;code&gt;declare&lt;/code&gt;,  &lt;code&gt;require-cl&lt;/code&gt;,  &lt;code&gt;save-excursion-set-buffer&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt;Common Lisp&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;package prefixes, double colons, dangling parentheses, LOOP style,  &lt;code&gt;identity&lt;/code&gt;,  &lt;code&gt;ecase-otherwise&lt;/code&gt;,  &lt;code&gt;mixed-lambda-list&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt;Guix&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;gexps,  &lt;code&gt;#$output&lt;/code&gt;,  &lt;code&gt;with-imported-modules&lt;/code&gt;, phase names,  &lt;code&gt;sha256&lt;/code&gt;, package synopses,  &lt;code&gt;inputs&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt;SXML&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;attribute lists, children, empty elements&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;
 &lt;code&gt;sift explain if-without-else&lt;/code&gt; prints that record: the code, the name, the description, the dialects, the severity, a failing example and the expected fix. A diagnostic and a documentation page are the same data, which is the part I like most.
&lt;/p&gt;

 &lt;p&gt;
A rule may carry a fix, which is one range.  &lt;code&gt;sift lint --fix&lt;/code&gt; applies fixes from the highest offset down, then lints once to show what’s left; there’s no loop. If a fix introduced a parse error the file didn’t have, every fix of that run is discarded and the original findings are reported. A file the reader couldn’t finish is refused, because a fix around a missing parenthesis would be a guess.  &lt;code&gt;--force&lt;/code&gt; is for a caller who knows better.
&lt;/p&gt;

 &lt;p&gt;
Some rules have no fix on purpose.  &lt;code&gt;unmatched-parens&lt;/code&gt; won’t guess where a  &lt;code&gt;)&lt;/code&gt; belongs.  &lt;code&gt;wrap-in-let&lt;/code&gt; won’t invent a binding name. The naming rules won’t rename anything.  &lt;code&gt;blank-line-in-body&lt;/code&gt; won’t delete a line. Deciding how to split or name code is your work.
&lt;/p&gt;

 &lt;p&gt;
Suppression is a comment, not a config list:
&lt;/p&gt;

 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt; &lt;span class=&quot;org-comment-delimiter&quot;&gt;;; &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;sift:disable-next-line keyword-arguments
&lt;/span&gt;(make-window a b c d e f g)

 &lt;span class=&quot;org-comment-delimiter&quot;&gt;;; &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;sift:disable wrap-in-let
&lt;/span&gt;( &lt;span class=&quot;org-keyword&quot;&gt;define&lt;/span&gt; ( &lt;span class=&quot;org-function-name&quot;&gt;f&lt;/span&gt; x)
  ...)
 &lt;span class=&quot;org-comment-delimiter&quot;&gt;;; &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;sift:enable wrap-in-let&lt;/span&gt;&lt;/pre&gt; copy&lt;/div&gt;

 &lt;p&gt;
 &lt;code&gt;disable-next-line&lt;/code&gt; covers the next line,  &lt;code&gt;disable&lt;/code&gt; covers to the end of the top-level form, and  &lt;code&gt;enable&lt;/code&gt; ends it. An exception list in a config file is a list no review reaches. This one is in the diff.
&lt;/p&gt;

 &lt;p&gt;
Fixing isn’t filtered by severity.  &lt;code&gt;severity: warning&lt;/code&gt; says what fails a build, not what’s worth repairing on request.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;Configuration  &lt;a id=&quot;configuration&quot; class=&quot;anchor&quot; href=&quot;#configuration&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org5dcdb80&quot;&gt;
 &lt;p&gt;
 &lt;code&gt;format&lt;/code&gt; prints,  &lt;code&gt;--write&lt;/code&gt; writes,  &lt;code&gt;check&lt;/code&gt; answers with a patch and a status,  &lt;code&gt;lint&lt;/code&gt; reports,  &lt;code&gt;lint --fix&lt;/code&gt; fixes, and  &lt;code&gt;ci&lt;/code&gt; asks both questions without touching the tree. A job that edits the tree it’s judging is a job whose verdict means nothing.
&lt;/p&gt;

 &lt;p&gt;
The same findings come out as the compile-style line  &lt;code&gt;file:line:column: severity: [rule] sentence&lt;/code&gt;, JSON,  &lt;a href=&quot;https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html&quot;&gt;SARIF&lt;/a&gt;, GitHub annotations, or  &lt;code&gt;null&lt;/code&gt;.  &lt;code&gt;--watch&lt;/code&gt; re-runs when a file the run read changes.  &lt;code&gt;SIFT_JOBS&lt;/code&gt; is the only setting that controls parallelism.
&lt;/p&gt;

 &lt;p&gt;
Settings are  &lt;code&gt;sift.yaml&lt;/code&gt;, or a  &lt;code&gt;sift.scm&lt;/code&gt; the project has trusted. They’re layered: defaults, system, user, project, command line. Discovery stops at the repository root. YAML is data and can’t execute anything; Scheme is code and must be trusted explicitly, with  &lt;code&gt;--config&lt;/code&gt;,  &lt;code&gt;SIFT_TRUST_CONFIG=1&lt;/code&gt; or  &lt;code&gt;sift config trust sift.scm&lt;/code&gt;. An unknown key is refused with a position, and  &lt;code&gt;sift config show --verbose&lt;/code&gt; names the layer that won.
&lt;/p&gt;

 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt;line-length: 90
brackets: square
severity: warning
checkers: [trailing-whitespace, docstring-missing]
stdlib: true&lt;/pre&gt; copy&lt;/div&gt;

 &lt;p&gt;
The formatter has few knobs on purpose: a formatter with a hundred options has no opinion. The tuning lives in the linter, where you choose which of the 95 rules run, what their thresholds are, and which severity fails a build. The language server reads the same files, so  &lt;code&gt;sift.yaml&lt;/code&gt; is the single place where editor behaviour is written down: inlay hints, hover, completion, stdlib, downloads, compiler diagnostics, import organization.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;The language server  &lt;a id=&quot;the-language-server&quot; class=&quot;anchor&quot; href=&quot;#the-language-server&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org72f4f55&quot;&gt;
 &lt;p&gt;
 &lt;code&gt;sift lsp&lt;/code&gt; speaks LSP over standard input and output, so the editor and the pipeline get the same findings, fixes and formatting.
&lt;/p&gt;

 &lt;p&gt;
It answers diagnostics, quickfixes, fix-all, the extract and inline refactors, import organization, formatting, hover, definition, references, highlights, symbols, completion, inlay hints, rename and signature help; a file rename keeps a Scheme module or an Emacs Lisp  &lt;code&gt;provide&lt;/code&gt; in step.
&lt;/p&gt;

 &lt;p&gt;
It refuses the type hierarchies, semantic tokens, code lenses, folding, range formatting, format-on-type, pull diagnostics and workspace folder changes. sift models no types, expands no macro, and has no opinion about what to fold. “Method not found” is more useful than a plausible lie.
&lt;/p&gt;

 &lt;p&gt;
The project is read in a thread from  &lt;code&gt;initialize&lt;/code&gt; on. Two thousand files arrive in batches of sixty-four, so the first answer comes after the first batch and each later batch replaces the snapshot whole. A jump has 100 ms, a reference search 200 ms, and  &lt;code&gt;sift/indexStatus&lt;/code&gt; says how far the reading has got.
&lt;/p&gt;

 &lt;p&gt;
The standard library is indexed from source: Guile’s modules, Emacs’s  &lt;code&gt;load-path&lt;/code&gt; and package trees,  &lt;a href=&quot;https://asdf.common-lisp.dev/&quot;&gt;ASDF&lt;/a&gt; and  &lt;a href=&quot;https://www.sbcl.org/&quot;&gt;SBCL&lt;/a&gt; sources, Racket’s  &lt;code&gt;collects&lt;/code&gt; and  &lt;code&gt;pkgs&lt;/code&gt;, and what each implementation says about itself.  &lt;code&gt;car&lt;/code&gt; is compiled into libguile and no file says where, so the implementation is asked once to write down every name it documents, as source. A jump to  &lt;code&gt;car&lt;/code&gt; lands in code that reads like the file it’s in. Writing that felt a little illegal, and it’s the LSP work I’m proudest of.
&lt;/p&gt;

 &lt;p&gt;
The server can ask the dialect’s compiler for a second opinion on open or save:  &lt;code&gt;guild&lt;/code&gt;,  &lt;code&gt;emacs&lt;/code&gt;,  &lt;code&gt;sbcl&lt;/code&gt;, whichever is installed. A missing compiler is simply not asked, and  &lt;code&gt;compiler-diagnostics: false&lt;/code&gt; turns it off.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;The editing loop  &lt;a id=&quot;the-editing-loop&quot; class=&quot;anchor&quot; href=&quot;#the-editing-loop&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-orga75eda1&quot;&gt;
 &lt;p&gt;
My Emacs configuration ( &lt;a href=&quot;https://github.com/jjba23/heks-emacs&quot;&gt;heks-emacs&lt;/a&gt;) puts a  &lt;a href=&quot;https://www.nongnu.org/geiser/&quot;&gt;Geiser&lt;/a&gt; REPL in the middle of Scheme development.  &lt;code&gt;C-c g r&lt;/code&gt; starts or switches to the project’s REPL: a  &lt;code&gt;guix repl&lt;/code&gt; in a package buffer, a plain  &lt;code&gt;guile&lt;/code&gt; one elsewhere, one per project.  &lt;code&gt;C-c g e&lt;/code&gt; evaluates the definition at point,  &lt;code&gt;C-c g b&lt;/code&gt; loads the file,  &lt;code&gt;C-c g k&lt;/code&gt; interrupts,  &lt;code&gt;C-c g d&lt;/code&gt; opens the debugger.
&lt;/p&gt;

 &lt;p&gt;
sift runs in the same buffer, at the same time, without asking the REPL for anything.  &lt;code&gt;sift-flymake&lt;/code&gt; runs  &lt;code&gt;sift lint --stdin --format=json&lt;/code&gt; on the buffer’s own text, saved or not, and turns findings into  &lt;a href=&quot;https://www.gnu.org/software/emacs/manual/html_node/emacs/Flymake.html&quot;&gt;Flymake&lt;/a&gt; diagnostics with the rule’s code and name. The drift backend marks the lines  &lt;code&gt;sift format&lt;/code&gt; would rewrite.  &lt;code&gt;C-c g H&lt;/code&gt; explains the rule at point,  &lt;code&gt;C-c g a&lt;/code&gt; applies its fix,  &lt;code&gt;C-c g A&lt;/code&gt; applies every fix,  &lt;code&gt;C-c g f&lt;/code&gt; formats. Nothing is written; every step is one  &lt;code&gt;undo&lt;/code&gt; away.
&lt;/p&gt;

 &lt;p&gt;
The REPL and the linter answer different questions. The REPL knows what the program does when it runs: the loaded state, the values, the stack, the debugger. sift knows what the file says and what a pipeline will say about it, which is how it can tell you that a  &lt;code&gt;cond&lt;/code&gt; clause after  &lt;code&gt;else&lt;/code&gt; can never run, that an import is unused, or that a line isn’t formatted the way  &lt;code&gt;sift ci&lt;/code&gt; will require. A REPL can’t tell you your file is unformatted, and a formatter can’t tell you what an expression returned. So sift is asked first, because it needs nothing but itself;  &lt;code&gt;guild compile&lt;/code&gt; and  &lt;code&gt;guix lint&lt;/code&gt; are the second opinion on save; Geiser is the third, for what only a running image knows.
&lt;/p&gt;

 &lt;p&gt;
The loop I do a hundred times a day: start the REPL, write a one-armed  &lt;code&gt;if&lt;/code&gt;, watch  &lt;code&gt;SIFT012&lt;/code&gt; appear on a dirty buffer, read the rule, apply the fix, evaluate the definition, format, reload. No save and no build in the middle.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h3&gt;Editors, CI and the browser  &lt;a id=&quot;editors-ci-and-the-browser&quot; class=&quot;anchor&quot; href=&quot;#editors-ci-and-the-browser&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org6f297de&quot;&gt;
 &lt;p&gt;
The clients are thin wrappers over the program:
&lt;/p&gt;

 &lt;table border=&quot;2&quot; cellspacing=&quot;0&quot; cellpadding=&quot;6&quot;&gt; &lt;colgroup&gt; &lt;col class=&quot;org-left&quot;/&gt; &lt;col class=&quot;org-left&quot;/&gt;&lt;/colgroup&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot; class=&quot;org-left&quot;&gt;Editor&lt;/th&gt;
 &lt;th scope=&quot;col&quot; class=&quot;org-left&quot;&gt;What to use&lt;/th&gt;
&lt;/tr&gt;&lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt;Emacs&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;emacs/sift.el&lt;/code&gt;: Flymake and Eglot&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;a href=&quot;https://neovim.io/&quot;&gt;Neovim&lt;/a&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;editors/vim/neovim.lua&lt;/code&gt;: a  &lt;code&gt;vim.lsp.start&lt;/code&gt; setup&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;a href=&quot;https://www.vim.org/&quot;&gt;Vim&lt;/a&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;editors/vim/&lt;/code&gt;:  &lt;code&gt;:SiftLint&lt;/code&gt;,  &lt;code&gt;:SiftFormat&lt;/code&gt;,  &lt;code&gt;:SiftFix&lt;/code&gt;,  &lt;code&gt;:SiftExplain&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;a href=&quot;https://code.visualstudio.com/&quot;&gt;VS Code&lt;/a&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;editors/vscode/&lt;/code&gt;: no build step, no dependencies&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;a href=&quot;https://helix-editor.com/&quot;&gt;Helix&lt;/a&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;format on save through  &lt;code&gt;sift format --stdin&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt;the browser&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;web/&lt;/code&gt;: sift compiled to  &lt;a href=&quot;https://webassembly.org/&quot;&gt;WebAssembly&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;
In a pipeline, one command asks both questions:
&lt;/p&gt;

 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt;sift ci src/ tests/&lt;/pre&gt; copy&lt;/div&gt;

 &lt;p&gt;
It exits 1 if either check finds something, 2 if a file can’t be read or parsed, and it never writes. There’s a reusable  &lt;a href=&quot;https://github.com/features/actions&quot;&gt;GitHub workflow&lt;/a&gt;:
&lt;/p&gt;

 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt;name: sift
on: [push, pull_request]
jobs:
  sift:
    uses: jjba23/sift/.github/workflows/sift.yml@v1.41.2&lt;/pre&gt; copy&lt;/div&gt;

 &lt;p&gt;
It annotates the diff and uploads SARIF to code scanning, so an unfixed finding becomes an alert instead of a line in a log. There’s also a composite action, a pre-commit hook, a  &lt;a href=&quot;https://pre-commit.com/&quot;&gt; &lt;code&gt;pre-commit&lt;/code&gt;&lt;/a&gt; declaration, a  &lt;a href=&quot;https://dprint.dev/&quot;&gt;dprint&lt;/a&gt; process plugin, and a  &lt;a href=&quot;https://www.docker.com/&quot;&gt;Docker&lt;/a&gt; image.
&lt;/p&gt;

 &lt;p&gt;
The browser build sounds like a stunt and isn’t.  &lt;code&gt;web/&lt;/code&gt; is formatting and linting compiled to WebAssembly with  &lt;a href=&quot;https://spritely.institute/hoot/&quot;&gt;Guile Hoot&lt;/a&gt;, with an editor page around it. The same reader, formatter and 95 rules are in the tab; the two rules that need a project report nothing, and no input leaves the tab. The whole contract is one procedure of one string to one string:
&lt;/p&gt;

 &lt;div class=&quot;jfw-code&quot;&gt; &lt;pre&gt;(web-request  &lt;span class=&quot;org-string&quot;&gt;&quot;{\&quot;op\&quot;:\&quot;lint\&quot;,\&quot;source\&quot;:\&quot;(if a b)\&quot;}&quot;&lt;/span&gt;)
 &lt;span class=&quot;org-comment-delimiter&quot;&gt;;; &lt;/span&gt; &lt;span class=&quot;org-comment&quot;&gt;=&gt; &quot;{\&quot;ok\&quot;:true,\&quot;result\&quot;:{\&quot;warnings\&quot;:[…],\&quot;counts\&quot;:{…}}}&quot;&lt;/span&gt;&lt;/pre&gt; copy&lt;/div&gt;

 &lt;p&gt;
The module is 3.4 MB. A screenful formats in 17 ms and lints in 56 ms; 1.2 kB is 52 ms and 145 ms; 6 kB is 780 ms and 1.2 s. The first two rows never reach the 300 ms debounce. The number isn’t the interesting part. The source of truth stayed put: the tab runs the same modules  &lt;code&gt;bin/sift&lt;/code&gt; runs, four Guile libraries have stand-ins in  &lt;code&gt;web/compat&lt;/code&gt;,  &lt;a href=&quot;https://srfi.schemers.org/srfi-13/&quot;&gt;SRFI-13&lt;/a&gt; is thirteen procedures with a test that compares the browser’s answers to Guile’s byte for byte, and eight tests hold the dependency one way.
&lt;/p&gt;

 &lt;p&gt;
The page is live at  &lt;a href=&quot;https://jointhefreeworld.org/sift/&quot;&gt;https://jointhefreeworld.org/sift/&lt;/a&gt;: an editor with the dialect, style and severity as controls, findings linked to the source, an outline, completion, inlay hints and a rules browser.
&lt;/p&gt;

 &lt;figure&gt; &lt;img src=&quot;/static/img/sift-web.png&quot; alt=&quot;The sift editor in a browser tab&quot; loading=&quot;lazy&quot;/&gt;&lt;/figure&gt;&lt;/div&gt;&lt;figure&gt; &lt;figcaption&gt;The browser build at jointhefreeworld.org/sift. The same reader, formatter and rules, compiled with Guile Hoot.&lt;/figcaption&gt;&lt;/figure&gt;&lt;div/&gt;
 &lt;h3&gt;What a run costs  &lt;a id=&quot;what-a-run-costs&quot; class=&quot;anchor&quot; href=&quot;#what-a-run-costs&quot;&gt;#&lt;/a&gt;&lt;/h3&gt; &lt;div class=&quot;outline-text-3&quot; id=&quot;text-org13023d0&quot;&gt;
 &lt;p&gt;
On my machine:
&lt;/p&gt;

 &lt;pre class=&quot;example&quot; id=&quot;orgfa2c9d1&quot;&gt;
lint the tree (28 files, 14896 lines)       337ms, 160.7 MiB allocated
check the tree (28 files): format           253ms,  59.0 MiB allocated
lint (lsp.scm, every checker)               171ms,  19.2 MiB allocated
read the tree (28 files)                    143ms,  44.7 MiB allocated
&lt;/pre&gt;

 &lt;p&gt;
Both numbers matter: a pass that conses per node makes every other pass slower, and the allocation count shows it even when the clock looks good. Three questions dominated the cost of a lint, each originally answered by walking something a second time: whether a node is code or data, what a form is called, and where the lines begin. Computing each once took a lint of the repository from twenty-five seconds to under one, and the allocation from a gigabyte and a half to a hundred and forty megabytes.
&lt;/p&gt;

 &lt;p&gt;
The suite I ran while writing this: 119 suites, 1160 tests, 2624 assertions, about a minute. The reader is tested dialect by dialect, the formatter on a golden corpus plus an idempotence pass, each rule with a passing case, a failing case and a re-lint after its fix, the CLI as a subprocess, the language server over the wire. The project formats itself, so  &lt;code&gt;maak self-check&lt;/code&gt; is a real gate.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;The style  &lt;a id=&quot;the-style&quot; class=&quot;anchor&quot; href=&quot;#the-style&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-org751e0d4&quot;&gt;
 &lt;p&gt;
The style is the common practice of the four communities, written down in  &lt;a href=&quot;https://github.com/jjba23/sift/blob/trunk/doc/style.org&quot;&gt; &lt;code&gt;doc/style.org&lt;/code&gt;&lt;/a&gt;:  &lt;a href=&quot;http://mumble.net/~campbell/scheme/style.txt&quot;&gt;Riastradh&lt;/a&gt;,  &lt;a href=&quot;https://google.github.io/styleguide/lispguide.xml&quot;&gt;Google’s Common Lisp guide&lt;/a&gt;,  &lt;a href=&quot;https://www.gnu.org/software/emacs/manual/html_node/elisp/Documentation-Tips.html&quot;&gt;the Emacs Lisp manual’s docstring tips&lt;/a&gt;,  &lt;a href=&quot;https://small.r7rs.org/&quot;&gt;R7RS&lt;/a&gt;, and the conventions of Guile and Guix.
&lt;/p&gt;

 &lt;p&gt;
The short version: two columns for every body; arguments align under the first; one blank line between top-level forms, never inserted where there was none; closing delimiters trail unless a project says  &lt;code&gt;dangling&lt;/code&gt;; square brackets for Scheme clauses as a setting, not a law; keywords line up; your macros get your indent rules, because no formatter knows what your macro means; no reflowing, since a line break records where you judged the form to end; a reader prefix glues to its datum; a comment stays on its line.
&lt;/p&gt;

 &lt;p&gt;
sift declines some Riastradh rules: a 72 or 80 column limit (the default is 96, or 80 for Emacs Lisp), pages and form feeds (they rewrite every line number below the break), 21-line top-level forms, and  &lt;code&gt;with-&lt;/code&gt; versus  &lt;code&gt;call-with-&lt;/code&gt; prefixes, which needs to know whether an argument is called.
&lt;/p&gt;

 &lt;p&gt;
What it won’t do is the other half of the style. It doesn’t rename, reorder or inline a procedure on its own, and it doesn’t introduce a delimiter. It never guesses a dialect. A fix it can’t verify is discarded, not applied with a warning. Lint reports, fix is opt-in, and CI never writes. Suppression belongs next to the code, and codes never move, because a code is what an editor and a bug report quote. Few knobs: a formatter with a hundred options has no opinion. Refuse what you can’t answer. The browser is a compile of the same modules and the editors are thin wrappers, so there’s no second implementation. MIT, because a formatter in other people’s pipelines can’t carry a licensing question.
&lt;/p&gt;

 &lt;p&gt;
It doesn’t expand macros, type-check or know your conventions. It reports and you decide. Where it can be wrong, the rule says so:  &lt;code&gt;wrap-in-let&lt;/code&gt; is a suggestion,  &lt;code&gt;keyword-arguments&lt;/code&gt; counts, thresholds are settings. The LSP has two limits: references are matched by name within one dialect, and the project is read in the background, so a jump answers from what’s been read. Range formatting, format-on-type, fold ranges, macro-introduced names, pull diagnostics and a  &lt;code&gt;--since REV&lt;/code&gt; mode are in scope and not built yet.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;Compared to the neighbours  &lt;a id=&quot;compared-to-the-neighbours&quot; class=&quot;anchor&quot; href=&quot;#compared-to-the-neighbours&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-org81191dd&quot;&gt;
 &lt;p&gt;
Clojure is the one Lisp community that has this.  &lt;a href=&quot;https://github.com/weavejester/cljfmt&quot;&gt;cljfmt&lt;/a&gt; formats and  &lt;a href=&quot;https://github.com/clj-kondo/clj-kondo&quot;&gt;clj-kondo&lt;/a&gt; lints, both good, and both Clojure-only. Outside it, Scheme has  &lt;code&gt;scheme-mode&lt;/code&gt;,  &lt;code&gt;guild compile -W3&lt;/code&gt; and  &lt;code&gt;guix style&lt;/code&gt;, and none of them is a general formatter, a project linter or an LSP. Emacs Lisp has  &lt;code&gt;checkdoc&lt;/code&gt; and the byte-compiler, but a compiler warning is prose: no stable code, JSON, SARIF, CLI or fix. Common Lisp has  &lt;a href=&quot;https://slime.common-lisp.dev/&quot;&gt;SLIME&lt;/a&gt; and  &lt;a href=&quot;https://github.com/joaotavora/sly&quot;&gt;SLY&lt;/a&gt;, which are an environment, not a program a pipeline runs. Racket has its own tools, and a repo with Scheme and Elisp still needs the others.
&lt;/p&gt;

 &lt;p&gt;
The canonical formatters are the other reference point. rustfmt and gofmt are one language, one style and no linting; their authority comes from being canonical, while sift has to write the style down.  &lt;a href=&quot;https://clang.llvm.org/docs/ClangFormat.html&quot;&gt;clang-format&lt;/a&gt; makes configuration its product, which is the opposite bet.  &lt;a href=&quot;https://prettier.io/&quot;&gt;Prettier&lt;/a&gt; is the closest in philosophy, but it reflows and doesn’t preserve every comment and blank line.
&lt;/p&gt;

 &lt;p&gt;
The neighbours do three things I want to steal: a checkable macro configuration from clj-kondo, answers from real analysis from SLIME and SLY, and the authority of a canonical tool from rustfmt and gofmt.
&lt;/p&gt;

 &lt;p&gt;
Inside Guix and Guile the gap is habits:  &lt;code&gt;assoc-ref %outputs&lt;/code&gt;, a  &lt;code&gt;#$output&lt;/code&gt; that makes a file, a  &lt;code&gt;use-modules&lt;/code&gt; inside a gexp that  &lt;code&gt;with-imported-modules&lt;/code&gt; doesn’t mark, an unquoted phase name, a  &lt;code&gt;sha256&lt;/code&gt; that isn’t  &lt;code&gt;(base32 &quot;...&quot;)&lt;/code&gt;, a synopsis that opens with an article,  &lt;code&gt;inputs&lt;/code&gt; written as a labelled alist. Those are rules with codes and fixes now.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;Under the hood  &lt;a id=&quot;under-the-hood&quot; class=&quot;anchor&quot; href=&quot;#under-the-hood&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-org143db9b&quot;&gt;
 &lt;p&gt;
 &lt;code&gt;src/sift/&lt;/code&gt; is one module per job:
&lt;/p&gt;

 &lt;pre class=&quot;example&quot; id=&quot;org65a290b&quot;&gt;
records.scm       locations, findings, rule records, codes, AST nodes
reader.scm        the permissive, location-preserving reader
format.scm        the pipeline, indentation tables, renderer
checkers/         one module per family of rules
lint.scm          run, suppress, filter, sort, fix, re-lint
render.scm        human, JSON, GitHub, null, SARIF
config.scm        discovery, merging, provenance, trust
lsp.scm           diagnostics, actions, formatting, hover, navigation
cli.scm           args-fold, dispatch, exit codes
&lt;/pre&gt;

 &lt;p&gt;
 &lt;code&gt;records&lt;/code&gt; is the vocabulary;  &lt;code&gt;reader&lt;/code&gt; and  &lt;code&gt;format&lt;/code&gt; use it; the checkers use  &lt;code&gt;records&lt;/code&gt; and  &lt;code&gt;check/base&lt;/code&gt;;  &lt;code&gt;lint&lt;/code&gt; assembles them;  &lt;code&gt;render&lt;/code&gt; prints;  &lt;code&gt;lsp&lt;/code&gt; speaks the protocol;  &lt;code&gt;cli&lt;/code&gt; wires it up. Nothing in  &lt;code&gt;format&lt;/code&gt; or a checker knows about ports or exit codes.
&lt;/p&gt;

 &lt;p&gt;
The implementation is Guile 3.0 and the standard library. No C dependency, no build step. The launcher is a small  &lt;a href=&quot;https://en.wikipedia.org/wiki/POSIX&quot;&gt;POSIX&lt;/a&gt; shell script that finds its own symlink chain, puts  &lt;code&gt;src/&lt;/code&gt; on the load path and hands the arguments to  &lt;code&gt;(sift cli)&lt;/code&gt;.
&lt;/p&gt;

 &lt;p&gt;
Install with  &lt;code&gt;guix install sift&lt;/code&gt; from the  &lt;a href=&quot;https://github.com/jjba23/guix-jointhefreeworld&quot;&gt;guix-jointhefreeworld&lt;/a&gt; channel,  &lt;code&gt;nix run&lt;/code&gt; from the  &lt;a href=&quot;https://nixos.org/&quot;&gt;Nix&lt;/a&gt; flake,  &lt;a href=&quot;https://brew.sh/&quot;&gt;Homebrew&lt;/a&gt; from the tap, a container image, or a checkout and  &lt;code&gt;./bin/sift version&lt;/code&gt;. The Emacs package is one file with no dependencies beyond Emacs 28.1.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;Come help  &lt;a id=&quot;come-help&quot; class=&quot;anchor&quot; href=&quot;#come-help&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-org109ecd6&quot;&gt;
 &lt;p&gt;
The list of Lisp dialects that deserve a better reader is long.
&lt;/p&gt;

 &lt;ul class=&quot;org-ul&quot;&gt; &lt;li&gt; &lt;b&gt;A bug report.&lt;/b&gt; Give the input, the output you expected, and  &lt;code&gt;sift version&lt;/code&gt; with the first section of  &lt;code&gt;sift doctor&lt;/code&gt;. A file sift refuses to parse is a bug even when the file is broken; the message must say where.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;A rule.&lt;/b&gt; One record and one test file. The catalogue, docs and editor integrations follow.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;A dialect detail.&lt;/b&gt; An escape, a comment in an odd place, a body that indents by something other than two.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;An editor integration.&lt;/b&gt; Neovim, Vim and VS Code each have a directory and a test; a fourth editor is one directory more.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;A sentence in the docs.&lt;/b&gt; A sentence that causes hesitation is a defect.&lt;/li&gt;
&lt;/ul&gt; &lt;p&gt;
To start: read  &lt;a href=&quot;https://github.com/jjba23/sift/blob/trunk/doc/style.org&quot;&gt; &lt;code&gt;doc/style.org&lt;/code&gt;&lt;/a&gt;, run  &lt;code&gt;maak test&lt;/code&gt;, add the rule or fix with its test under  &lt;code&gt;tests/checkers/&lt;/code&gt;, then run  &lt;code&gt;maak self-check&lt;/code&gt;,  &lt;code&gt;maak check&lt;/code&gt; and  &lt;code&gt;maak fixture-check&lt;/code&gt;. Send a pull request, or a patch with  &lt;code&gt;git format-patch&lt;/code&gt; and  &lt;code&gt;git send-email&lt;/code&gt;.
&lt;/p&gt;

 &lt;p&gt;
The  &lt;a href=&quot;https://github.com/jjba23/sift/blob/trunk/AI_POLICY.md&quot;&gt;AI policy&lt;/a&gt; is short: agents may explore, plan, branch, run the build and tests, commit, push, open and merge pull requests, and cut releases. A human is the author of record and must be able to explain and debug every line. TDD is required, and the tool and what it did are disclosed. A rule written with an agent is as welcome as one without; the review concerns the code.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;What’s next  &lt;a id=&quot;whatrsquos-next&quot; class=&quot;anchor&quot; href=&quot;#whatrsquos-next&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-orgef5facb&quot;&gt;
 &lt;ul class=&quot;org-ul&quot;&gt; &lt;li&gt; &lt;b&gt;Range formatting and format-on-type.&lt;/b&gt; The formatter indents from column zero, so a fragment lands at the margin. The hard part is an origin column that still produces, for the range it touched, the bytes a whole-buffer run would.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;A  &lt;code&gt;--since REV&lt;/code&gt; mode.&lt;/b&gt; Lint the lines a diff touched, not the whole tree, so a large codebase can adopt a linter without a mass reformat.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;Resolution across files.&lt;/b&gt; Follow  &lt;code&gt;define-module&lt;/code&gt;,  &lt;code&gt;#:use-module&lt;/code&gt;,  &lt;code&gt;defpackage&lt;/code&gt; and  &lt;code&gt;provide&lt;/code&gt; far enough that a reference is a binding, not a name. Then a project-wide rename is correct in every file.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;A declared-macro table.&lt;/b&gt; A project declares what its macros bind, so references and rename can see the names a macro introduces.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;The style as a specification.&lt;/b&gt; The rules and the corpus are already there; the next step is a document a second implementation can be checked against.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;A fifth dialect.&lt;/b&gt; Racket was the fourth and cost a table, a dozen rules re-argued and a corpus of its own. Each one after that is more evidence that the reader, formatter and rule records are the general part.&lt;/li&gt;
&lt;/ul&gt; &lt;p&gt;
None of this is a promise with a date. If one of them sounds like your afternoon, open an issue and I’ll help you land it.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;Closing  &lt;a id=&quot;closing&quot; class=&quot;anchor&quot; href=&quot;#closing&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-orgef2e545&quot;&gt;
 &lt;p&gt;
The failed attempts taught me that a Lisp file is a tree, that a community can agree on a style and a program can enforce it, and that the language’s own reader and compiler know more than any regex. The detours taught me the rest: never reflow, let one representation win, put the conventions in a program, ship one executable.
&lt;/p&gt;

 &lt;p&gt;
What none of them had was the premise: read the file as a datum with positions and print it back. Once that was true, formatting became a fixed point, a fix became a range, a finding became data, and the editor and the pipeline got the same answer. The seeds weren’t wasted either. They were the reader, the style and the rules, waiting for the thing that would hold them together. The name is the bet: a source file mixes the program with the layout; sift separates them, checks the program, and puts the layout back.
&lt;/p&gt;

 &lt;p&gt;
If you have a Lisp dialect that deserves a better reader, a rule your project keeps repeating in review, or an editor that should have the server, come and plant one.
&lt;/p&gt;
&lt;/div&gt;
 &lt;nav class=&quot;jfw-article-neighbours&quot;&gt; &lt;a class=&quot;jfw-article-neighbour is-previous&quot; href=&quot;/blog/articles/emacs/emacs-folding-kirigami/&quot; rel=&quot;prev&quot;&gt; &lt;span class=&quot;jfw-article-neighbour-label&quot;&gt;previous&lt;/span&gt; &lt;span class=&quot;jfw-article-neighbour-title&quot;&gt;Emacs finally folds to my liking&lt;/span&gt;&lt;/a&gt;
 &lt;span/&gt;
&lt;/nav&gt; &lt;section class=&quot;jfw-related&quot;&gt; &lt;h2 class=&quot;jfw-related-title&quot;&gt;related reading&lt;/h2&gt;
 &lt;ul class=&quot;jfw-related-list&quot;&gt; &lt;li&gt; &lt;a href=&quot;/blog/articles/lisps/orgwebalchemy-benchmarking-profiling-and-org-support/&quot;&gt;OrgWebAlchemy: Benchmarking, Profiling, and the Long Road to Real Org Support&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt; &lt;a href=&quot;/blog/articles/development/tech-radar/&quot;&gt;The FREE stack - My Tech Radar&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt; &lt;a href=&quot;/blog/articles/lisps/parsing-expression-grammar-lisp-org-convert-to-html/&quot;&gt;Parsing Expression Grammar in Lisp: Converting Org to HTML with (ice-9 peg) in Guile&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/section&gt;&lt;div/&gt;</content><source><title>jointhefreeworld</title></source></entry><entry><title>Scheme Requests for Implementation: SRFI 282: Additional R7RS (Type) Predicates</title><link href="https://srfi.schemers.org/srfi-282/" rel="alternate"/><id>https://srfi.schemers.org/srfi-282/</id><updated>2026-11-30T12:00:00-08:00</updated><author><name>Artyom Bologov</name></author><content type="html">SRFI 282 is now in &lt;em&gt;final&lt;/em&gt; status.&lt;blockquote&gt;&lt;p&gt;
  Types and entities deserve predicates so that their user can
  meaningfully understand what they are dealing with, and usefully
  dispatch on them in their code.  However, some R&lt;sup&gt;7&lt;/sup&gt;RS
  “types” have no respective predicates.  This SRFI defines them.
&lt;/p&gt;&lt;/blockquote&gt;</content><source><title>Scheme Requests for Implementation</title></source></entry><entry><title>crumbles.blog: Note about my fediverse account</title><link href="https://crumbles.blog/posts/2026-11-28-mastodon-suspension.html" rel="alternate"/><id>https://crumbles.blog/posts/2026-11-28-mastodon-suspension.html</id><updated>2026-11-28T22:47:03Z</updated><content type="html">&lt;p&gt;&lt;strong&gt;Update, 29 November:&lt;/strong&gt; The suspension has now been reversed and I received an apology from the mastodon.social moderation team. They acknowledged having made a mistake, and say there is a discussion internally on how to prevent the mistake recurring.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;My fediverse account, &lt;a href=&quot;https://stodon.swhack.com/@dpk&quot;&gt;&lt;span class=&quot;citation&quot;&gt;@dpk&lt;/span&gt;&lt;span class=&quot;citation&quot;&gt;@swhack.com&lt;/span&gt;&lt;/a&gt;, has been suspended on the largest Mastodon instance, mastodon.social, for unclear reasons since roughly Tuesday 24 November.&lt;/p&gt;
&lt;p&gt;This apparently means that if you have your account on mastodon.social and I was following you, I can no longer see your posts, but if you were following me, you may still be following me but I doubt you will see any of my posts there.&lt;/p&gt;
&lt;p&gt;At the beginning of September I moved from chaos.social to my own Mastodon instance, meaning I should be able to see moderation reports made against my own account. I did not receive any report about my account before the suspension was made, and I only noticed because posts from people I also follow via Bridgy on Bluesky only showed up on the Bluesky side and not in my own fediverse timeline.&lt;/p&gt;
&lt;p&gt;Attempts to reach the moderation team of mastodon.social have thus far not yielded a reply. I’m going to continue to follow this up and hopefully get it resolved soon.&lt;/p&gt;</content><source><title>crumbles.blog</title></source></entry><entry><title>Joe Marshall: Updates to named-let</title><link href="https://funcall.blogspot.com/2026/11/updates-to-named-let.html" rel="alternate"/><id>https://funcall.blogspot.com/2026/11/updates-to-named-let.html</id><updated>2026-11-27T12:41:04-08:00</updated><author><name>Joe Marshall</name></author><content type="html">&lt;h1&gt;Updating named-let: ignored bindings, multi-form inits, and more&lt;/h1&gt;

&lt;p&gt;
  &lt;code&gt;named-let&lt;/code&gt; is a small Common Lisp library of Scheme-inspired
  binding macros: &lt;code&gt;named-let&lt;/code&gt;, &lt;code&gt;named-lambda&lt;/code&gt;,
  &lt;code&gt;letrec&lt;/code&gt;, &lt;code&gt;letrec*&lt;/code&gt;, &lt;code&gt;flambda&lt;/code&gt;, and a
  Lisp-1 style &lt;code&gt;define&lt;/code&gt;.  It also provides an extended
  &lt;code&gt;let&lt;/code&gt; that you can shadow-import in place of the standard one.
  This post describes a round of changes to the library: a new way to ignore
  bindings, clarified handling of multi-form bindings, a bug fix, and
  improvements to documentation and tests.
&lt;/p&gt;

&lt;h2&gt;Ignored bindings with &lt;code&gt;_&lt;/code&gt;&lt;/h2&gt;

&lt;p&gt;
  Sometimes you want to bind something only for its side effect.  In standard
  Common Lisp you must invent a variable and declare it ignored:
&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(let ((a 22)
      (dummy1 (format t &quot;foo&quot;))
      (b (sqrt 2))
      (dummy2 (format t &quot;bar&quot;)))
  (declare (ignore dummy1 dummy2))
  body)&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;
  Now the extended &lt;code&gt;let&lt;/code&gt; does this for you.  Any binding of the
  symbol &lt;code&gt;_&lt;/code&gt; is replaced by a fresh uninterned symbol (a gensym),
  and a single &lt;code&gt;ignore&lt;/code&gt; declaration for all such symbols is added
  at the start of the body:
&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(let ((a 22)
      (_ (format t &quot;foo&quot;))
      (b (sqrt 2))
      (_ (format t &quot;bar&quot;)))
  body)

;; expands to

(let ((a 22)
      (#:ignore-1 (format t &quot;foo&quot;))
      (b (sqrt 2))
      (#:ignore-2 (format t &quot;bar&quot;)))
  (declare (ignore #:ignore-1 #:ignore-2))
  body)&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;
  A few details worth knowing:
&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    The init forms are still evaluated, and in order, so &lt;code&gt;_&lt;/code&gt; is
    useful for side effects.
  &lt;/li&gt;
  &lt;li&gt;
    You can have any number of &lt;code&gt;_&lt;/code&gt; bindings; each gets its own
    gensym, so there is no &amp;ldquo;variable occurs more than once&amp;rdquo; error.
  &lt;/li&gt;
  &lt;li&gt;
    The bare forms &lt;code&gt;_&lt;/code&gt; and &lt;code&gt;(_)&lt;/code&gt; are accepted and bind
    to &lt;code&gt;nil&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;_&lt;/code&gt; is matched by &lt;em&gt;name&lt;/em&gt;, not by identity, so it works
    no matter which package your code is read in.
  &lt;/li&gt;
  &lt;li&gt;
    A &lt;code&gt;declare&lt;/code&gt; at the start of your own body coexists with the
    generated one.
  &lt;/li&gt;
  &lt;li&gt;
    Because the generated declaration is placed first, the ignored variable
    can never be referenced from the body; &lt;code&gt;_&lt;/code&gt; is not a variable
    you can read.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
  The same convention applies to a named &lt;code&gt;let&lt;/code&gt;, because its
  bindings become the parameters of a &lt;code&gt;named-lambda&lt;/code&gt;, and to
  &lt;code&gt;named-lambda&lt;/code&gt; parameters themselves:
&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(funcall (named-lambda second-arg (_ x _) x) 1 3 2)
;; =&gt; 3

(funcall (named-lambda f (a &amp;optional (_ 9)) (+ a 3)) 1)
;; =&gt; 4&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;Multiple forms in a binding&lt;/h2&gt;

&lt;p&gt;
  A binding in the extended &lt;code&gt;let&lt;/code&gt; may contain more than one init
  form.  The forms are wrapped in a &lt;code&gt;progn&lt;/code&gt; and the last value is
  bound:
&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(let ((a (format t &quot;binding a&quot;) (+ 2 (sqrt x))))
  (+ a b))

;; expands to

(let ((a (progn (format t &quot;binding a&quot;) (+ 2 (sqrt x)))))
  (+ a b))&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;
  The library already handled this, so no code change was needed, but it is
  now pinned down with a test and documented.  As in standard Lisp, a bare
  variable &lt;code&gt;y&lt;/code&gt; or a one-element binding &lt;code&gt;(z)&lt;/code&gt; is bound
  to &lt;code&gt;nil&lt;/code&gt;, and all bindings are made in parallel: init forms do
  not see the new variables.
&lt;/p&gt;

&lt;h2&gt;How the expansion works&lt;/h2&gt;

&lt;p&gt;
  The extended &lt;code&gt;let&lt;/code&gt; looks at its first argument.  If it is a list
  (or &lt;code&gt;nil&lt;/code&gt;), it is an ordinary binding list; the macro walks the
  bindings, replaces each &lt;code&gt;_&lt;/code&gt; with a gensym while collecting the
  gensyms, and emits the underlying &lt;code&gt;let&lt;/code&gt; with the bindings, an
  optional &lt;code&gt;(declare (ignore ...))&lt;/code&gt;, and the body.  If the first
  argument is a symbol, it is the name of a named &lt;code&gt;let&lt;/code&gt; and the
  expansion is a &lt;code&gt;funcall&lt;/code&gt; of a &lt;code&gt;named-lambda&lt;/code&gt;.
&lt;/p&gt;

&lt;p&gt;
  As before, the macros are &lt;em&gt;SERIES&lt;/em&gt;-aware.  Expansions refer to
  &lt;code&gt;let&lt;/code&gt; and &lt;code&gt;funcall&lt;/code&gt; in the &lt;code&gt;SERIES&lt;/code&gt;
  package when it is loaded and the symbol is fbound there, and to
  &lt;code&gt;COMMON-LISP&lt;/code&gt; otherwise.  That is why an expansion you inspect
  in an image with SERIES loaded will begin with
  &lt;code&gt;series::let&lt;/code&gt;.  Expansion templates use qualified symbols so
  they resolve to &lt;code&gt;COMMON-LISP&lt;/code&gt; symbols regardless of any
  shadowing in the consumer's package.
&lt;/p&gt;

&lt;h2&gt;A bug fix in &lt;code&gt;named-lambda&lt;/code&gt;&lt;/h2&gt;

&lt;p&gt;
  Writing more tests for &lt;code&gt;_&lt;/code&gt; turned up two bugs in
  &lt;code&gt;named-lambda&lt;/code&gt;, which also supports &lt;code&gt;_&lt;/code&gt; parameters:
&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    The binding that extracts an optional docstring had a misplaced
    parenthesis, which made the &lt;code&gt;let*&lt;/code&gt; binding spec malformed and
    caused a compile error in the macro definition.
  &lt;/li&gt;
  &lt;li&gt;
    It recognised &lt;code&gt;_&lt;/code&gt; by comparing with &lt;code&gt;eq&lt;/code&gt; against
    the symbol &lt;code&gt;named-let::_&lt;/code&gt;.  A &lt;code&gt;_&lt;/code&gt; read in any other
    package is a different symbol and so was not recognised, leading to a
    &amp;ldquo;variable &lt;code&gt;_&lt;/code&gt; occurs more than once in the lambda
    list&amp;rdquo; error.  It now compares symbol names, exactly as
    &lt;code&gt;let&lt;/code&gt; does.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;Docstrings and comments&lt;/h2&gt;

&lt;p&gt;
  Every macro in the library now has a docstring.  &lt;code&gt;named-lambda&lt;/code&gt;
  and &lt;code&gt;named-let&lt;/code&gt; were missing them, and &lt;code&gt;letrec*&lt;/code&gt; had
  copied &lt;code&gt;letrec&lt;/code&gt;'s text; it now says its bindings are initialised
  sequentially so later ones can use earlier ones.  I also added short
  comments in the places where the code is not self-explanatory: the
  gensym-and-declare logic in &lt;code&gt;let&lt;/code&gt;, the difference between
  &lt;code&gt;letrec&lt;/code&gt; (simultaneous assignment) and &lt;code&gt;letrec*&lt;/code&gt;
  (sequential assignment), and the &lt;code&gt;_&lt;/code&gt; handling in
  &lt;code&gt;named-lambda&lt;/code&gt;.
&lt;/p&gt;

&lt;h2&gt;Tests&lt;/h2&gt;

&lt;p&gt;
  The FiveAM suite grew from 24 to 44 checks.  The new tests cover:
&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;code&gt;_&lt;/code&gt; in &lt;code&gt;let&lt;/code&gt;: evaluation order of the init forms,
    the shape of the expansion (distinct uninterned symbols and a single
    &lt;code&gt;declare&lt;/code&gt;), bare &lt;code&gt;_&lt;/code&gt; and &lt;code&gt;(_)&lt;/code&gt;,
    all-&lt;code&gt;_&lt;/code&gt; binding lists, and a user &lt;code&gt;declare&lt;/code&gt;
    alongside the generated one.
  &lt;/li&gt;
  &lt;li&gt;
    Multi-form bindings, both the expansion and the resulting value and side
    effects.
  &lt;/li&gt;
  &lt;li&gt;
    Parallel binding semantics and a &lt;code&gt;let&lt;/code&gt; with only a
    &lt;code&gt;declare&lt;/code&gt; in its body.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;named-lambda&lt;/code&gt; with repeated &lt;code&gt;_&lt;/code&gt; parameters,
    &lt;code&gt;_&lt;/code&gt; with a default in &lt;code&gt;&amp;optional&lt;/code&gt;, and a
    docstring.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
  Run them with &lt;code&gt;(asdf:test-system &quot;named-let-test&quot;)&lt;/code&gt;.  One
  practical note when writing your own: do not use names locked by the
  implementation (such as &lt;code&gt;loop&lt;/code&gt; or &lt;code&gt;count&lt;/code&gt;) as the
  name of a named &lt;code&gt;let&lt;/code&gt;.
&lt;/p&gt;

&lt;h2&gt;Documentation&lt;/h2&gt;

&lt;p&gt;
  The README was rewritten with a summary table and examples for every macro,
  including the previously undocumented &lt;code&gt;flambda&lt;/code&gt;.  Along the way I
  corrected a few inaccuracies: the clone URL, and the claim that
  &lt;code&gt;define&lt;/code&gt; defines &lt;em&gt;local&lt;/em&gt; functions (it is a top-level
  form that stores the function in the symbol's value cell and defines a
  macro that &lt;code&gt;funcall&lt;/code&gt;s it).
&lt;/p&gt;

&lt;p&gt;
  There is also a short section on choosing a name for a named
  &lt;code&gt;let&lt;/code&gt;.  When the name just means &amp;ldquo;go around again&amp;rdquo;, a
  short one such as &lt;code&gt;next&lt;/code&gt; or &lt;code&gt;l&lt;/code&gt; reads well:
&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;(named-let next ((i 0) (acc '()))
  (if (= i 5)
      (nreverse acc)
      (next (1+ i) (cons (* i i) acc))))
;; =&gt; (0 1 4 9 16)&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;
  You cannot call it &lt;code&gt;loop&lt;/code&gt;: &lt;code&gt;COMMON-LISP&lt;/code&gt; already binds
  that symbol as a macro, and implementations such as SBCL lock the package.
  The same is true of other standard names like &lt;code&gt;count&lt;/code&gt;.
&lt;/p&gt;

&lt;h2&gt;Getting it&lt;/h2&gt;

&lt;p&gt;
  The code is on GitHub at
  &lt;a href=&quot;https://github.com/jrm-code-project/named-let&quot;&gt;jrm-code-project/named-let&lt;/a&gt;.
  Clone it into your Quicklisp &lt;code&gt;local-projects&lt;/code&gt; directory and load
  it with &lt;code&gt;(ql:quickload &quot;named-let&quot;)&lt;/code&gt;.
&lt;/p&gt;
</content><source><title>Joe Marshall</title></source></entry><entry><title>Idiomdrottning: MPD as shell event driver</title><link href="https://idiomdrottning.org/kasampd" rel="alternate"/><id>https://idiomdrottning.org/kasampd</id><updated>2026-11-21T14:54:06+01:00</updated><author><name>Idiomdrottning</name></author><content type="html">Here is a shell script for having the Music Player Daemon trigger
events. It shells out to mpc and this example config also shells out
to kasa, a lamp control app. In the example, each
album in the playlist has its own mood lightning. You can get fancy
and add --transition flags, perhaps starting the transition by
%position% of the previous album’s last song and prepending a
sleep such-and-such-many seconds; rather than by %album%.The script is meant to run in the background or with dtach or
systemd until mpc’s event listener hears from MPD.In the past I’ve used MPD as a soundboard backend when DM-ing and if
it can also control lights (more subtly than in this example) I might
want to dust that off.#!/bin/sh

# Put any pre-loop commands here such as exports and any initial
# settings you want before the sound starts playing

export KASA_USERNAME=&quot;your kasa email&quot;
export KASA_PASSWORD=&quot;your kasa password&quot;
export KASA_HOST=&quot;your kasa IP&quot;

while true; do
  pos=$(mpc -f %position% current)
  album=$(mpc -f %album% current)

  case &quot;$pos&quot; in
    2) kasa brightness 100 ;;
  esac

  case &quot;$album&quot; in
    &quot;Veil of Imagination&quot;) kasa hsv 120 100 80 ;;
    &quot;The Fierce and the Longing&quot;) kasa command set_device_info '{&quot;color_temp&quot;: 4500, &quot;brightness&quot;: 20}' ;;
    &quot;When I Die, Will I Get Better?&quot;) kasa hsv 200 40 85 ;;
    &quot;Still Life (Remastered)&quot;) kasa hsv 0 100 50 ;;
  esac

  mpc idle player
done

For a repo of this example script,git clone https://idiomdrottning.org/kasampd
</content><source><title>Idiomdrottning</title></source></entry><entry><title>spritely.institute: Lisp Game Jam devlog: Polydraw</title><link href="https://spritely.institute/news/lisp-game-jam-devlog-polydraw.html" rel="alternate"/><id>https://spritely.institute/news/lisp-game-jam-devlog-polydraw.html</id><updated>2026-11-19T12:00:00Z</updated><author><name>Dave Thompson, Christine Lemmer-Webber</name></author><content type="html">&lt;p&gt;&lt;video title=&quot;Animation that displays the word 'draw'&quot; src=&quot;https://files.spritely.institute/videos/polydraw.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;p&gt;This year's &lt;a href=&quot;https://itch.io/jam/autumn-lisp-game-jam-2026&quot;&gt;Autumn Lisp Game
Jam&lt;/a&gt; has just wrapped
up!  Spritely's contribution to the jam was
&lt;a href=&quot;https://davexunit.itch.io/polydraw&quot;&gt;Polydraw&lt;/a&gt;, a peer-to-peer party
game that is easy to pick up and play with friends.  In Polydraw,
players take turns being the &lt;em&gt;artist&lt;/em&gt; who draws an image based on a
&lt;em&gt;prompt&lt;/em&gt;.  The catch is that the artist only has 60 seconds and can
only draw using triangles.  All of the other players are &lt;em&gt;guessers&lt;/em&gt;
who try to correctly guess the prompt.  We're quite pleased with how
the game turned out!&lt;/p&gt;
&lt;p&gt;The rest of this post is a daily devlog of how we made Polydraw so you
can see what the process look likes to make a game with Goblins and
Hoot under a tight deadline.&lt;/p&gt;
&lt;h2&gt;Day 1 (10/30)&lt;/h2&gt;
&lt;p&gt;It's go time!  First, we created a Git repository on
&lt;a href=&quot;https://codeberg.org/spritely/polydraw&quot;&gt;Codeberg&lt;/a&gt; and copied the
&lt;a href=&quot;https://codeberg.org/spritely/hoot-game-jam-template&quot;&gt;Hoot game jam
template&lt;/a&gt; into
it.&lt;/p&gt;
&lt;p&gt;Since the core activity in Polydraw is drawing triangles, the first
thing Dave implemented was an interface for doing that on a canvas.
This first version was crude and didn't include a color picker.&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-10-30-polydraw-progress.mp4&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;h2&gt;Day 2 and 3 (10/31 and 11/1)&lt;/h2&gt;
&lt;p&gt;We took the weekend off to prepare for a busy week ahead.&lt;/p&gt;
&lt;h2&gt;Day 4 (11/02)&lt;/h2&gt;
&lt;p&gt;This is the day that we &lt;em&gt;really&lt;/em&gt; got to work on the game jam.&lt;/p&gt;
&lt;p&gt;The first version of the triangle editor stored pixel coordinates of
the local canvas, but that wasn't going to be good enough to display
on other machines with different sized canvases.  So, Dave simply
normalized triangle vertices into the [0,1] range so each peer could
scale them as needed.&lt;/p&gt;
&lt;p&gt;Dave also implemented a basic scene system, a common game programming
pattern, to encapsulate the coarse game states such as the title
screen, the lobby, and the main game.&lt;/p&gt;
&lt;p&gt;A color palette was added along with some additional mockup UI around
the canvas.&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-02-polydraw-progress.mp4&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;h2&gt;Day 5 (11/03)&lt;/h2&gt;
&lt;p&gt;With a good enough game engine in place, we turned our attention to
the game protocol.  Since we are using Goblins, all interactions are
modeled using actors.  Dave came up with the following actors:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Player&lt;/em&gt;: Used for player identity within the game and contains the
player's self-proposed name.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Lobby&lt;/em&gt;: The place where players gather before the game starts.  The
player that creates the lobby is the &lt;strong&gt;host&lt;/strong&gt; and all other players
are &lt;strong&gt;guests&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Game&lt;/em&gt;: Holds all of the game state like the player list, whose turn
it is, and the scoreboard.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Controller&lt;/em&gt;: A player's virtual game controller.  Used to speak to
the game actor, but all actions are scoped to the individual player.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A &lt;a href=&quot;https://codeberg.org/spritely/polydraw/src/branch/main/actor-test.scm&quot;&gt;test
script&lt;/a&gt;
was written to simulate creating a game, joining the lobby, and
playing a round.  At this stage, everything was happening in a single
process.  Goblins makes it easy to start with a single process and
then distribute the actors to multiple machines later.&lt;/p&gt;
&lt;h2&gt;Day 6 (11/04)&lt;/h2&gt;
&lt;p&gt;Now it was time to get the actors onto the network and hook them up to
the game UI.  For networking we used &lt;a href=&quot;https://ocapn.org&quot;&gt;OCapN&lt;/a&gt;,
naturally.  Jessica started up an instance of our new &lt;a href=&quot;https://spritely.institute/news/end-to-end-encrypted-relays-for-ocapn.html&quot;&gt;end-to-end
encrypted relay
netlayer&lt;/a&gt;
that we set as the default relay so the game would &quot;just work&quot; when we
uploaded it to &lt;a href=&quot;https//itch.io&quot;&gt;itch.io&lt;/a&gt;.  In fact, dogfooding the
relay was a large part of the motivation behind participating in the
game jam in the first place!&lt;/p&gt;
&lt;p&gt;Dave got the actors online with OCapN and connected the game UI to the
actors, then confirmed that a three player game works.  Three players
is the minimum number of players needed to trigger OCapN's
&lt;a href=&quot;https://github.com/ocapn/ocapn/blob/main/draft-specifications/CapTP%20Specification.md#third-party-handoffs&quot;&gt;third-party
handoff&lt;/a&gt;
feature.  Handoffs are what enable distributed networking in OCapN:
Alice can give Bob a reference to Carol, which causes Bob and Carol to
establish a new OCapN session with each other.  This is the first
application we've made that does handoffs over the relay netlayer and
it was nice to see them working as intended.&lt;/p&gt;
&lt;p&gt;Unfortunately, we discovered an issue with how Goblins handles two
peers connecting to each other concurrently, a problem known as
&quot;crossed hellos&quot;.  OCapN mandates that only &lt;strong&gt;one&lt;/strong&gt; connection may be
open between any two peers, so we have to pick which connection wins.
The bug is that any promises that were created over the losing
connection &lt;strong&gt;never resolve&lt;/strong&gt;.  This was observed in the game as an
empty lobby player list that should be populated.  It didn't prevent
the rest of the game from working, though, so we didn't try to fix it
(yet).&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-04-polydraw-progress.mp4&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;h2&gt;Day 7 (11/05)&lt;/h2&gt;
&lt;p&gt;On this day, Dave discovered that, despite his best efforts, he fell
victim to the &quot;identity footgun&quot;.  We could write a whole blog post
series about the many subtle issues of object identity (in the sense
of Scheme's &lt;code&gt;eq?&lt;/code&gt;) in object capability systems, but instead we'll
refer you to the &lt;a href=&quot;http://www.erights.org/elib/equality/grant-matcher/index.html&quot;&gt;The Grant Matcher
Puzzle&lt;/a&gt;
and just mention that using object references as keys in associative
data structures is error-prone.  A promise that eventually resolves to
a reference to Alice is &lt;em&gt;not&lt;/em&gt; identical (again, in the &lt;code&gt;eq?&lt;/code&gt; sense) to
a reference to Alice.  So, if you accidentally use a promise as a key
somewhere or use &lt;code&gt;eq?&lt;/code&gt; directly you will probably have a bad time,
which is exactly what happened to us.&lt;/p&gt;
&lt;p&gt;To deal with this identity crisis, Dave first detected it at runtime
by &lt;a href=&quot;https://codeberg.org/spritely/polydraw/src/commit/a740a27673e2dd107bab50e221b24b33e9579eff/modules/scene/draw.scm#L89&quot;&gt;writing a
wrapper&lt;/a&gt;
around &lt;code&gt;eq?&lt;/code&gt; called &lt;code&gt;geq?&lt;/code&gt;.  This new predicate throws an error when
comparing a promise to a non-promise.  Then he used the resulting
backtraces to find the offending code and change it to resolve all
necessary promises before doing identity comparisons.&lt;/p&gt;
&lt;p&gt;Christine finally cleared enough other things off her plate where she
could start contributing to the game.  We thought it would be nice to
have the game start with a splash screen of triangle'y animations that
would resemble the kinds of art players would make in the game.
We decided to use the Blender add-on by Ursula Kurdali named
&lt;a href=&quot;https://github.com/bkurdali/Stop-Motion-Blender-Addon/tree/extension&quot;&gt;Stop Motion&lt;/a&gt;
since it gives a great amount of freedom to animate by creating and
destroying as much geometry as you like.  Christine made the first
mockup of a splash screen animation of a &quot;death&quot; type character
swinging a scythe.&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-05-polydraw-animtest-death.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;p&gt;However, the animation hadn't left Blender yet.  We're gonna have to
figure out how to get those polygons out and into the game engine!&lt;/p&gt;
&lt;h2&gt;Day 8 (11/06)&lt;/h2&gt;
&lt;p&gt;This was &lt;em&gt;the&lt;/em&gt; day to finish implementing the core game loop.  We
wanted the weekend to be all about fixing bugs and making it look and
feel as good as we can.  At last, the points awarded at the end of
each round were displayed in the UI.  The player list on the left side
of the screen was transformed into a leaderboard that sorted players
by score.&lt;/p&gt;
&lt;p&gt;While creating the leaderboard it was discovered that Goblins was not
correctly parsing pairs received over OCapN.  Christine swooped in
with a &lt;a href=&quot;https://codeberg.org/spritely/goblins/commit/f7c7beae6322003a28b57148bd64346bc14d626b&quot;&gt;quick
fix&lt;/a&gt;
and Jessica folowed up with a &lt;a href=&quot;https://codeberg.org/spritely/goblins/commit/2771da67e80b5c2a9e4ed684f24f4f95428cb419&quot;&gt;regression
test&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We also added a small set of emoji reactions underneath the
leaderboard.  Reactions were not critical to the core gameplay but
they were planned from the very beginning of the project.  It's good
that we had time to add them because it was a lot of fun to spam
emojis at the artist to give them an indication of how good or bad
they were doing.&lt;/p&gt;
&lt;h2&gt;Day 9 (11/07)&lt;/h2&gt;
&lt;p&gt;With two days left and the core gameplay loop complete, the focus
shifted to bug fixing and adding
&lt;a href=&quot;https://www.youtube.com/watch?v=Fy0aCDmgnxg&quot;&gt;juice&lt;/a&gt;.  Up until this
point the HTML was mostly unstyled (as you can see in the videos
above), so Dave added a little CSS to improve the look and feel.&lt;/p&gt;
&lt;p&gt;A playtest revealed that the &lt;a href=&quot;https://en.wikipedia.org/wiki/Linear_congruential_generator&quot;&gt;simple
PRNG&lt;/a&gt; we
were using was implemented incorrectly.  We noticed because the artist
prompt was always &quot;bus&quot; no matter how many rounds you played.  Oops!
This was fixed.&lt;/p&gt;
&lt;p&gt;Remember that crossed hellos bug from day 7?  Dave finally implemented
a workaround, which was to simply &lt;a href=&quot;https://codeberg.org/spritely/polydraw/src/commit/a740a27673e2dd107bab50e221b24b33e9579eff/modules/scene/lobby.scm#L151&quot;&gt;throw out the first pancake and try
again&lt;/a&gt;,
as suggested by Christine.  A simple race against a timeout was all
that was needed.  We'll be thinking about how to fix this in Goblins
so this situation cannot happen in the future.&lt;/p&gt;
&lt;p&gt;Christine started work on making more animations for the game's intro.
The &quot;death&quot; animation was a good &quot;hello world&quot; for testing the exporter,
but being all black it was too simple to make sure everything worked
right; draw order, etc, didn't matter. Christine made a &quot;square guys&quot;
animation as a kind of
&lt;a href=&quot;https://en.wikipedia.org/wiki/Acid2&quot;&gt;Acid2 test&lt;/a&gt;
equivalent. This file had several tricky properties to it, most
especially that draw order would matter, colors would be important, et
cetera.&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-07-polydraw-squareguys.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;p&gt;Christine also made this triangle'y duck themed piece:&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-07-polydraw-ducks.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;p&gt;Christine wrote a &lt;a href=&quot;https://codeberg.org/spritely/polydraw/src/commit/a740a27673e2dd107bab50e221b24b33e9579eff/anims/triangle_exporter.py&quot;&gt;Python
script&lt;/a&gt;
to export the animations from Blender into a custom format encoded
using Syrup.  The encoded data was then embedded into the Scheme
program as bytevector literals using a &lt;a href=&quot;https://codeberg.org/spritely/polydraw/src/commit/a740a27673e2dd107bab50e221b24b33e9579eff/build-anim-module.scm&quot;&gt;little
script&lt;/a&gt;.
Dave then started work on a renderer for these animations, but it
wasn't working quite well enough by the end of the day to commit and
push it.&lt;/p&gt;
&lt;p&gt;Up until this point we only had a small number of frequently-repeated
words.  Morgan Lemmer-Webber curated a word list for us, starting with
an &lt;a href=&quot;https://raw.githubusercontent.com/MichaelWehar/Public-Domain-Word-Lists/refs/heads/master/5000-more-common.txt&quot;&gt;existing public domain word list&lt;/a&gt;
of 5000 words, and curated down to a 621 words, selecting for words
that were more feasible to draw (ranging from easy to challenging, but
all trying to be feasible).&lt;/p&gt;
&lt;p&gt;The game name was changed from the placeholder &quot;Twenty Triangles&quot; to
&quot;Polydraw&quot;.&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-07-polydraw-progress.mp4&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;h2&gt;Day 10 (11/08)&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;The final day.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The code to render animations was finished.  Some final minor bug
fixes were made.  Some CSS was tweaked.  Original music and sound
effects by
&lt;a href=&quot;https://is.nota.live/@encryptedwhispers&quot;&gt;encrypted.whispers&lt;/a&gt; were
added.  Additionally, we used a few CC0-licensed sound effects by
&lt;a href=&quot;https://kenney.nl&quot;&gt;Kenney&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A few gameplay improvements were made, such as showing guessers what
the prompt was when the round ends and how many triangles the artist
had remaining.  Little improvements can make a big difference and both
of these changes were very helpful for players and made the game feel
more polished.&lt;/p&gt;
&lt;p&gt;There wasn't enough time remaining to do as much work on resiliency in
the face of network partitions as we would have liked, but Dave did
squeeze in a commit that allowed the game to survive if a guest
leaves.  Unfortunately, the experience for the disconnected guest
isn't very good as they don't see any message that their connection
dropped.&lt;/p&gt;
&lt;p&gt;We did a final playtest to confirm that there weren't any showstopper
bugs.  Christine added final splash animations.&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-08-polydraw-fish.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-08-polydraw-flower.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-08-polydraw-cube.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;p&gt;Finally, Christine added some code (fixed up by Dave) and animations
which would overlay &lt;em&gt;over&lt;/em&gt; the drawings indicating that drawing was
starting, it was time to guess, or the results.&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-08-polydraw-guess.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-08-polydraw-sorry.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;h2&gt;Pencils down!&lt;/h2&gt;
&lt;p&gt;We submitted the game two hours before the deadline!  Now it was time
to catch our breath and show off the game to everyone we could.  Dave
even played it live with a couple other people on a stream!  Here's a
screenshot which gives you a good look of the final result:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://files.spritely.institute/images/blog/2026-11-12-polydraw-stream.png&quot; alt=&quot;Live stream of Polydraw&quot;/&gt;&lt;img/&gt;&lt;/p&gt;
&lt;p&gt;The response was quite positive!  The feedback we received closely
matched the things we wanted to improve upon if we had more time:
better disconnect handling, a way for the host to skip to the next
phase instead of being forced to wait for the timer to run out, and
invite URLs (rather than URIs) that auto-join the game when visited.&lt;/p&gt;
&lt;p&gt;&lt;video src=&quot;https://files.spritely.institute/videos/2026-11-08-polydraw-success.webm&quot; loop=&quot;true&quot;/&gt;&lt;/p&gt;
&lt;p&gt;Polydraw ranked 5th overall in the &lt;a href=&quot;https://itch.io/jam/autumn-lisp-game-jam-2026/results&quot;&gt;official game jam
results&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Try playing it over on &lt;a href=&quot;https://davexunit.itch.io/polydraw&quot;&gt;itch.io&lt;/a&gt;
and leave us a comment!&lt;/p&gt;
&lt;h2&gt;Thanks to our supporters&lt;/h2&gt;
&lt;p&gt;Your support makes our work possible!  If you like what we do, please
consider &lt;a href=&quot;/donate&quot;&gt;becoming a Spritely supporter today&lt;/a&gt;!&lt;/p&gt;
&lt;h3&gt;Diamond tier&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Aeva Palecek&lt;/li&gt;
&lt;li&gt;David Anderson&lt;/li&gt;
&lt;li&gt;Holmes Wilson&lt;/li&gt;
&lt;li&gt;Jonathan Frederickson&lt;/li&gt;
&lt;li&gt;Lassi Kiuru&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Gold tier&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Alex Sassmannshausen&lt;/li&gt;
&lt;li&gt;Juan Lizarraga Cubillos&lt;/li&gt;
&lt;li&gt;Nerine Pekowsky&lt;/li&gt;
&lt;li&gt;Serra Allgood&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Silver tier&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Austin Robinson&lt;/li&gt;
&lt;li&gt;Brit Butler&lt;/li&gt;
&lt;li&gt;Charlie McMackin&lt;/li&gt;
&lt;li&gt;Dan Connolly&lt;/li&gt;
&lt;li&gt;Deb Nicholson&lt;/li&gt;
&lt;li&gt;Diana Thayer&lt;/li&gt;
&lt;li&gt;Eric Bavier&lt;/li&gt;
&lt;li&gt;Eric Schultz&lt;/li&gt;
&lt;li&gt;Evangelo Stavro Prodromou&lt;/li&gt;
&lt;li&gt;Evgeni Ku&lt;/li&gt;
&lt;li&gt;Glenn Thompson&lt;/li&gt;
&lt;li&gt;James Luke&lt;/li&gt;
&lt;li&gt;Jonathan Smith&lt;/li&gt;
&lt;li&gt;Jonathan Wright&lt;/li&gt;
&lt;li&gt;Justin Sheehy&lt;/li&gt;
&lt;li&gt;Matt Panhans&lt;/li&gt;
&lt;li&gt;Michel Lind&lt;/li&gt;
&lt;li&gt;Mike Ledoux&lt;/li&gt;
&lt;li&gt;Nathan TeBlunthuis&lt;/li&gt;
&lt;li&gt;Nia Bickford&lt;/li&gt;
&lt;li&gt;Noah Beasley&lt;/li&gt;
&lt;li&gt;Steve Sprang&lt;/li&gt;
&lt;li&gt;Travis Smith&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Bronze tier&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Alan Zimmerman&lt;/li&gt;
&lt;li&gt;Aria Stewart&lt;/li&gt;
&lt;li&gt;Ben Hamill&lt;/li&gt;
&lt;li&gt;Benjamin Grimm-Lebsanft&lt;/li&gt;
&lt;li&gt;Brooke Vibber&lt;/li&gt;
&lt;li&gt;Brooklyn Zelenka&lt;/li&gt;
&lt;li&gt;Carl A&lt;/li&gt;
&lt;li&gt;Crazypedia No&lt;/li&gt;
&lt;li&gt;Ellie High&lt;/li&gt;
&lt;li&gt;Elliot Martin&lt;/li&gt;
&lt;li&gt;François Joulaud&lt;/li&gt;
&lt;li&gt;Gabor Udvari&lt;/li&gt;
&lt;li&gt;Grant Gould&lt;/li&gt;
&lt;li&gt;Gregory Buhtz&lt;/li&gt;
&lt;li&gt;Ivan Sagalaev&lt;/li&gt;
&lt;li&gt;James Smith&lt;/li&gt;
&lt;li&gt;Jason Wodicka&lt;/li&gt;
&lt;li&gt;Jeff Forcier&lt;/li&gt;
&lt;li&gt;Marty McGuire&lt;/li&gt;
&lt;li&gt;Mason DeVries&lt;/li&gt;
&lt;li&gt;Michael Orbinpost&lt;/li&gt;
&lt;li&gt;Neil Brudnak&lt;/li&gt;
&lt;li&gt;Nelson Pavlosky&lt;/li&gt;
&lt;li&gt;Nicholas Farley&lt;/li&gt;
&lt;li&gt;Philipp Nassua&lt;/li&gt;
&lt;li&gt;Rodion Goritskov&lt;/li&gt;
&lt;li&gt;Ron Welch&lt;/li&gt;
&lt;li&gt;Stefan Magdalinski&lt;/li&gt;
&lt;li&gt;Stephen Herrick&lt;/li&gt;
&lt;li&gt;Steven De Herdt&lt;/li&gt;
&lt;li&gt;Tamara Schmitz&lt;/li&gt;
&lt;li&gt;Thomas Talbot&lt;/li&gt;
&lt;li&gt;William Murphy&lt;/li&gt;
&lt;li&gt;Yoshua Wakeham&lt;/li&gt;
&lt;li&gt;a b&lt;/li&gt;
&lt;li&gt;chee rabbits&lt;/li&gt;
&lt;li&gt;r g&lt;/li&gt;
&lt;li&gt;terra tauri&lt;/li&gt;
&lt;/ul&gt;
</content><source><title>spritely.institute</title></source></entry><entry><title>Scheme Requests for Implementation: SRFI 289: Unordered sets and bags</title><link href="https://srfi.schemers.org/srfi-289/" rel="alternate"/><id>https://srfi.schemers.org/srfi-289/</id><updated>2026-11-14T12:00:00-08:00</updated><author><name>Wolfgang Corcoran-Mathe (text and test suite), Peter McGoron (sample implementation), and John Cowan (author of SRFI 113)</name></author><content type="html">SRFI 289 is now in &lt;em&gt;draft&lt;/em&gt; status.&lt;blockquote&gt;    &lt;p&gt;Sets and bags (also known as multisets) are unordered
      collections that contain only objects of a type given by a
      collection’s SRFI 128 comparator.  Every element of a set is
      unique (in the sense of the set’s comparator), but bags can
      contain any number of duplicate elements.  This SRFI is a
      revision of SRFI 113 that fixes several infelicities and is more
      consistent with related SRFIs.&lt;/p&gt;&lt;/blockquote&gt;</content><source><title>Scheme Requests for Implementation</title></source></entry><entry><title>Scheme Requests for Implementation: SRFI 272: Pretty Printing</title><link href="https://srfi.schemers.org/srfi-272/" rel="alternate"/><id>https://srfi.schemers.org/srfi-272/</id><updated>2026-11-01T12:00:00-08:00</updated><author><name>Sergei Egorov</name></author><content type="html">SRFI 272 is now in &lt;em&gt;final&lt;/em&gt; status.&lt;blockquote&gt;&lt;p&gt;
  This SRFI follows the traditional Scheme model of pretty printing, which treats it as a
  process distinct from general controlled formatting. While general-purpose formatters
  often prioritize specialized presentation at the expense of machine-readability, Scheme’s
  pretty-printers (such as those of SLIB and MIT Scheme) have traditionally treated
  pretty printing as a variant of &lt;code&gt;write&lt;/code&gt;, differing primarily in the insertion
  of whitespace to make the presentation more palatable to humans. Common Lisp’s pretty-printer,
  by contrast, fills two roles simultaneously by integrating pretty printing with both its
  format facility and its generalized &lt;code&gt;write&lt;/code&gt; procedures. This unified approach
  offers great power, but at the cost of complexity that can make it difficult to use effectively.

  We propose a specialized, layered approach, specifying five libraries of increasing functionality,
  where all but the first are optional. The libraries are downward-compatible: more powerful libraries
  satisfy all requirements of the simpler ones while adding new features. Implementors may
  choose to support a maximum level of functionality appropriate for their systems. Integration with
  monadic and string-based formatting libraries is supported.
&lt;/p&gt;&lt;/blockquote&gt;</content><source><title>Scheme Requests for Implementation</title></source></entry><entry><title>Scheme Requests for Implementation: SRFI 279: In(tro)spection Protocol</title><link href="https://srfi.schemers.org/srfi-279/" rel="alternate"/><id>https://srfi.schemers.org/srfi-279/</id><updated>2026-10-29T12:00:00-08:00</updated><author><name>Artyom Bologov</name></author><content type="html">SRFI 279 is now in &lt;em&gt;final&lt;/em&gt; status.&lt;blockquote&gt;&lt;p&gt;
  Interactive REPL-driven systems (that most Schemes are) need a way to get detailed information on a given piece of data.
  Inspectors, as these are conventionally called.
  This SRFI defines a basic protocol for inspectors, consisting of three procedures:
  &lt;code&gt;inspect-properties&lt;/code&gt;, &lt;code&gt;inspect-property&lt;/code&gt;, and &lt;code&gt;inspect-describe&lt;/code&gt;.
  Some suggestions for standard and popular types’ inspection are also provided.
&lt;/p&gt;&lt;/blockquote&gt;</content><source><title>Scheme Requests for Implementation</title></source></entry><entry><title>spritely.institute: Hoot 0.10.0 released!</title><link href="https://spritely.institute/news/hoot-0-10-0-released.html" rel="alternate"/><id>https://spritely.institute/news/hoot-0-10-0-released.html</id><updated>2026-10-28T12:00:00Z</updated><author><name>Dave Thompson</name></author><content type="html">&lt;p&gt;We are excited to announce the release of &lt;a href=&quot;/hoot&quot;&gt;Hoot&lt;/a&gt; 0.10.0!  Hoot
is a Scheme to WebAssembly compiler backend for
&lt;a href=&quot;https://gnu.org/software/guile&quot;&gt;Guile&lt;/a&gt;, as well as a general purpose
WebAssembly toolchain.  In other words, &lt;em&gt;Scheme in the browser!&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This release contains new features and bug fixes and since the &lt;a href=&quot;/news/hoot-0-9-0-released.html&quot;&gt;0.9.0
release&lt;/a&gt; back in May.&lt;/p&gt;
&lt;h2&gt;Use Hoot in the upcoming Lisp Game Jam!&lt;/h2&gt;
&lt;p&gt;On Friday (October 30th 2026), the &lt;a href=&quot;https://itch.io/jam/autumn-lisp-game-jam-2026&quot;&gt;autumn edition of the Lisp Game
Jam&lt;/a&gt; will begin!  It's
a 10-day long game jam where participants make games using their
favorite flavor of Lisp.&lt;/p&gt;
&lt;p&gt;Does making a small web game in Scheme using Hoot sound appealing to
you?  Well, then we have just the thing to get you started: the &lt;a href=&quot;https://codeberg.org/spritely/hoot-game-jam-template&quot;&gt;Hoot
game jam
template!&lt;/a&gt; This
template project has everything you need to start making an HTML5 game
with Hoot quickly.&lt;/p&gt;
&lt;p&gt;The template repository includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Bindings to the necessary web APIs to make an interactive game with
HTML5 canvas&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A Makefile for compiling, running a development web server, and
generating a .zip bundle for uploading to itch.io&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A very simple Breakout-like example game that demonstrates how to
put all the pieces together&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more inspiration, here are some games made with Hoot for past
jams:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://davexunit.itch.io/cirkoban&quot;&gt;Cirkoban&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://davexunit.itch.io/strigoform&quot;&gt;Strigoform&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://podatus.itch.io/shields-tyvm&quot;&gt;Shields TYVM&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now, onto the release notes!&lt;/p&gt;
&lt;h2&gt;Compiler changes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Added module name to contextualize duplicate import errors.&lt;/li&gt;
&lt;li&gt;Added support for library versioning for R6RS compatibility.&lt;/li&gt;
&lt;li&gt;Fixed default version for &lt;code&gt;define-module&lt;/code&gt; libraries.&lt;/li&gt;
&lt;li&gt;Fixed &lt;code&gt;locate-library&lt;/code&gt; not respecting configured load extensions.
Previously, we were using Guile's load extension parameter instead
of Hoot's own.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Runtime changes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Added &lt;code&gt;%struct-ref&lt;/code&gt; and &lt;code&gt;%struct-set!&lt;/code&gt; primitives for accessing
record types defined using the interpreter.&lt;/li&gt;
&lt;li&gt;Stopped raising errors when importing an undefined symbol in the
runtime module system.  Guile is lax about this so Hoot being strict
caused compatibility issues.&lt;/li&gt;
&lt;li&gt;Fixed optional argument parsing in &lt;code&gt;primitive-eval&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fixed keyword argument parsing for procedures with both optional and
keyword arguments in &lt;code&gt;primitive-eval&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fixed error messages regarding runtime module registry to include
the correct CLI flag: &lt;code&gt;-fruntime-modules&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Scheme changes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Added partial implementation of
&lt;a href=&quot;https://srfi.schemers.org/srfi-13/srfi-13.html&quot;&gt;SRFI-13&lt;/a&gt;: String
Libraries.  It's just a set of re-exports, very similar to Guile,
but Guile's SRFI-13 module is not declarative and is thus rejected
by Hoot's compiler.&lt;/li&gt;
&lt;li&gt;Added partial implementation of
&lt;a href=&quot;https://srfi.schemers.org/srfi-60/srfi-60.html&quot;&gt;SRFI-60&lt;/a&gt;: Integers
as Bits.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;define-macro&lt;/code&gt;, &lt;code&gt;defmacro&lt;/code&gt;, &lt;code&gt;delete&lt;/code&gt;, &lt;code&gt;list-&gt;symbol&lt;/code&gt;, and
&lt;code&gt;symbol&lt;/code&gt; to &lt;code&gt;(guile)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Exported &lt;code&gt;define-syntax-parameter&lt;/code&gt; and &lt;code&gt;syntax-parameterize&lt;/code&gt;,
&lt;code&gt;symbol-append&lt;/code&gt;, &lt;code&gt;integer-length&lt;/code&gt;, and &lt;code&gt;gensym&lt;/code&gt; from &lt;code&gt;(guile)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;list-&gt;bitvector&lt;/code&gt; and &lt;code&gt;bitvector&lt;/code&gt; to &lt;code&gt;(hoot bitvectors)&lt;/code&gt; and
re-exported them in &lt;code&gt;(guile)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Implemented &lt;code&gt;get-bytevector-all&lt;/code&gt; in &lt;code&gt;(rnrs io ports)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Made &lt;code&gt;bytevector=?&lt;/code&gt; a publicly exported procedure from &lt;code&gt;(hoot bytevectors)&lt;/code&gt; and &lt;code&gt;(rnrs bytevectors)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;define-syntax-parameter&lt;/code&gt; and &lt;code&gt;syntax-parameterize&lt;/code&gt;
primitives.&lt;/li&gt;
&lt;li&gt;Improved &lt;code&gt;(ice-9 exceptions)&lt;/code&gt; exports to more closely match Guile.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs base)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs syntax-case)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs r5rs)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs hashtables)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs files)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs enums)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs exceptions)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs arithmetic fixnums)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs records inspection)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs records procedural)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs records syntactic)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs io simple)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;(rnrs io ports)&lt;/code&gt; module.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;port-has-position?&lt;/code&gt; to &lt;code&gt;(hoot ports)&lt;/code&gt; for R6RS compatibility.&lt;/li&gt;
&lt;li&gt;Added stubs for centered division to &lt;code&gt;(hoot numbers)&lt;/code&gt; and a stub for
&lt;code&gt;integer-length&lt;/code&gt; to &lt;code&gt;(hoot bitwise)&lt;/code&gt; for R6RS compatibility
(eventually).&lt;/li&gt;
&lt;li&gt;Rewrote &lt;code&gt;(rnrs bytevectors)&lt;/code&gt; as an R6RS module with version &lt;code&gt;(6)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fixed &lt;code&gt;number-&gt;string&lt;/code&gt; to round floating point decimal part to an
even digit.&lt;/li&gt;
&lt;li&gt;Fixed &lt;code&gt;number-&gt;string&lt;/code&gt; for floating point numbers ±2^N, where 52 &lt;=
N &lt;= 1023.&lt;/li&gt;
&lt;li&gt;Fixed incorrect bytevector copy in &lt;code&gt;number-&gt;string&lt;/code&gt; floating point
conversion algorithm.&lt;/li&gt;
&lt;li&gt;Fixed &lt;code&gt;min&lt;/code&gt;/&lt;code&gt;max&lt;/code&gt; macros not working when given zero arguments.&lt;/li&gt;
&lt;li&gt;Fixed the parameters to the &lt;code&gt;log&lt;/code&gt; procedure in &lt;code&gt;(guile)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Fixed the implementation of &lt;code&gt;negate&lt;/code&gt; in &lt;code&gt;guile&lt;/code&gt;.  It was doing
entirely the wrong thing.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;CLI changes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Port numbers are now validated to be exact integers in the range [1,
65535].&lt;/li&gt;
&lt;li&gt;Actually complain about invalid option or unknown subcommand.
Previously, the code that was supposed to do this was unreachable.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;--experimental-wasm-exnref&lt;/code&gt; feature flag when running &lt;code&gt;hoot compile --run=node&lt;/code&gt; for continued compatibility with supported
NodeJS versions that don't have the new Wasm exnref feature enabled
by default.&lt;/li&gt;
&lt;li&gt;Fixed build-time disabling of &lt;code&gt;hoot server&lt;/code&gt;.  In past releases, the
&lt;code&gt;hoot&lt;/code&gt; CLI script would still attempt to load should-be-optional
libraries that &lt;code&gt;./configure&lt;/code&gt; had already determined to be missing.
Thanks to mcc for discovering this blunder.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Documentation changes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Improved instructions in &quot;Building from source&quot; section of the
manual.&lt;/li&gt;
&lt;li&gt;Dependencies are now mentioned in the &quot;Advanced path&quot; section of the
&lt;code&gt;README&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Updated project template &lt;code&gt;README&lt;/code&gt; to say Guix is &lt;em&gt;not&lt;/em&gt; required
(though it's still the easiest option).&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Browser compatibility&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Compatible with Safari 26 or later.&lt;/li&gt;
&lt;li&gt;Compatible with Firefox 121 or later.&lt;/li&gt;
&lt;li&gt;Compatible with Chrome 119 or later.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Get Hoot&lt;/h2&gt;
&lt;p&gt;Hoot is available in GNU Guix:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ guix pull
$ guix install guile guile-hoot
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also, Hoot is now available in
&lt;a href=&quot;https://tracker.debian.org/pkg/guile-hoot&quot;&gt;Debian&lt;/a&gt;, though it will
take awhile for this release to make it there.&lt;/p&gt;
&lt;p&gt;Otherwise, Hoot can be built from source via our release tarball.  See
the &lt;a href=&quot;/hoot&quot;&gt;Hoot homepage&lt;/a&gt; for a download link and GPG signature.&lt;/p&gt;
&lt;p&gt;Documentation for Hoot 0.10.0, including build instructions, can be
found
&lt;a href=&quot;https://spritely.institute/files/docs/guile-hoot/0.10.0/index.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Get in touch&lt;/h2&gt;
&lt;p&gt;For bug reports, pull requests, or just to follow along with
development, check out the &lt;a href=&quot;https://codeberg.org/spritely/hoot&quot;&gt;Hoot project on
Codeberg&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you build something cool with Hoot, let us know on our &lt;a href=&quot;https://community.spritely.institute&quot;&gt;community
forum&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;Thanks to Z572, stdh, Walter Lewis, and Jelle Licht for their
contributions to this release.&lt;/p&gt;
&lt;p&gt;Until next time, happy hooting! 🦉&lt;/p&gt;
&lt;h2&gt;Thanks to our supporters&lt;/h2&gt;
&lt;p&gt;Your support makes our work possible!  If you like what we do, please
consider &lt;a href=&quot;/donate&quot;&gt;becoming a Spritely supporter today&lt;/a&gt;!&lt;/p&gt;
&lt;h3&gt;Diamond tier&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Aeva Palecek&lt;/li&gt;
&lt;li&gt;David Anderson&lt;/li&gt;
&lt;li&gt;Holmes Wilson&lt;/li&gt;
&lt;li&gt;Jonathan Frederickson&lt;/li&gt;
&lt;li&gt;Lassi Kiuru&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Gold tier&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Alex Sassmannshausen&lt;/li&gt;
&lt;li&gt;Juan Lizarraga Cubillos&lt;/li&gt;
&lt;li&gt;Nerine Pekowsky&lt;/li&gt;
&lt;li&gt;Serra Allgood&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Silver tier&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Austin Robinson&lt;/li&gt;
&lt;li&gt;Brit Butler&lt;/li&gt;
&lt;li&gt;Charlie McMackin&lt;/li&gt;
&lt;li&gt;Dan Connolly&lt;/li&gt;
&lt;li&gt;Deb Nicholson&lt;/li&gt;
&lt;li&gt;Diana Thayer&lt;/li&gt;
&lt;li&gt;Eric Bavier&lt;/li&gt;
&lt;li&gt;Eric Schultz&lt;/li&gt;
&lt;li&gt;Evangelo Stavro Prodromou&lt;/li&gt;
&lt;li&gt;Evgeni Ku&lt;/li&gt;
&lt;li&gt;Glenn Thompson&lt;/li&gt;
&lt;li&gt;James Luke&lt;/li&gt;
&lt;li&gt;Jonathan Smith&lt;/li&gt;
&lt;li&gt;Jonathan Wright&lt;/li&gt;
&lt;li&gt;Justin Sheehy&lt;/li&gt;
&lt;li&gt;Matt Panhans&lt;/li&gt;
&lt;li&gt;Michel Lind&lt;/li&gt;
&lt;li&gt;Mike Ledoux&lt;/li&gt;
&lt;li&gt;Moto A&lt;/li&gt;
&lt;li&gt;Nathan TeBlunthuis&lt;/li&gt;
&lt;li&gt;Nia Bickford&lt;/li&gt;
&lt;li&gt;Noah Beasley&lt;/li&gt;
&lt;li&gt;Steve Sprang&lt;/li&gt;
&lt;li&gt;Travis Smith&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Bronze tier&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Alan Zimmerman&lt;/li&gt;
&lt;li&gt;Aria Stewart&lt;/li&gt;
&lt;li&gt;Ben Hamill&lt;/li&gt;
&lt;li&gt;Benjamin Grimm-Lebsanft&lt;/li&gt;
&lt;li&gt;Brooke Vibber&lt;/li&gt;
&lt;li&gt;Brooklyn Zelenka&lt;/li&gt;
&lt;li&gt;Carl A&lt;/li&gt;
&lt;li&gt;Crazypedia No&lt;/li&gt;
&lt;li&gt;Ellie High&lt;/li&gt;
&lt;li&gt;François Joulaud&lt;/li&gt;
&lt;li&gt;Gabor Udvari&lt;/li&gt;
&lt;li&gt;Grant Gould&lt;/li&gt;
&lt;li&gt;Gregory Buhtz&lt;/li&gt;
&lt;li&gt;James Smith&lt;/li&gt;
&lt;li&gt;Jason Wodicka&lt;/li&gt;
&lt;li&gt;Jeff Forcier&lt;/li&gt;
&lt;li&gt;Marty McGuire&lt;/li&gt;
&lt;li&gt;Mason DeVries&lt;/li&gt;
&lt;li&gt;Michael Orbinpost&lt;/li&gt;
&lt;li&gt;Neil Brudnak&lt;/li&gt;
&lt;li&gt;Nelson Pavlosky&lt;/li&gt;
&lt;li&gt;Philipp Nassua&lt;/li&gt;
&lt;li&gt;Rodion Goritskov&lt;/li&gt;
&lt;li&gt;Ron Welch&lt;/li&gt;
&lt;li&gt;Stefan Magdalinski&lt;/li&gt;
&lt;li&gt;Stephen Herrick&lt;/li&gt;
&lt;li&gt;Steven De Herdt&lt;/li&gt;
&lt;li&gt;Tamara Schmitz&lt;/li&gt;
&lt;li&gt;Thomas Talbot&lt;/li&gt;
&lt;li&gt;William Murphy&lt;/li&gt;
&lt;li&gt;a b&lt;/li&gt;
&lt;li&gt;chee rabbits&lt;/li&gt;
&lt;li&gt;r g&lt;/li&gt;
&lt;li&gt;terra tauri&lt;/li&gt;
&lt;/ul&gt;
</content><source><title>spritely.institute</title></source></entry><entry><title>Scheme Requests for Implementation: SRFI 242: The CFG Language</title><link href="https://srfi.schemers.org/srfi-242/" rel="alternate"/><id>https://srfi.schemers.org/srfi-242/</id><updated>2026-10-26T12:00:00-08:00</updated><author><name>Marc Nieper-Wißkirchen</name></author><content type="html">SRFI 242 is now in &lt;em&gt;withdrawn&lt;/em&gt; status.&lt;blockquote&gt;    &lt;p&gt;This SRFI defines a language to describe control-flow graphs
      (CFGs) suitable for formulating iterative and recursive
      algorithms.  Using the notion of a CFG term, this language can
      be seamlessly embedded in the Scheme language.  Complex CFG
      terms can be composed from simple CFG terms.&lt;/p&gt;&lt;/blockquote&gt;</content><source><title>Scheme Requests for Implementation</title></source></entry><entry><title>Scheme Requests for Implementation: SRFI 265: The CFG Language</title><link href="https://srfi.schemers.org/srfi-265/" rel="alternate"/><id>https://srfi.schemers.org/srfi-265/</id><updated>2026-10-26T12:00:00-08:00</updated><author><name>Marc Nieper-Wißkirchen</name></author><content type="html">SRFI 265 is now in &lt;em&gt;final&lt;/em&gt; status.&lt;blockquote&gt;&lt;p&gt;This SRFI defines a language to describe control-flow graphs
  (CFGs) suitable for formulating iterative and recursive
  algorithms.  Using the notion of a CFG term, this language can
  be seamlessly embedded in the Scheme language.  Complex CFG
  terms can be composed from simple CFG terms.&lt;/p&gt;

&lt;p&gt;The language described in this SRFI is not meant to be directly
  used in programs but by library authors to build abstractions
  like loop facilities on top of it.&lt;/p&gt;&lt;/blockquote&gt;</content><source><title>Scheme Requests for Implementation</title></source></entry><entry><title>Scheme Requests for Implementation: SRFI 288: Compound Conditions</title><link href="https://srfi.schemers.org/srfi-288/" rel="alternate"/><id>https://srfi.schemers.org/srfi-288/</id><updated>2026-10-25T12:00:00-08:00</updated><author><name>Peter McGoron</name></author><content type="html">SRFI 288 is now in &lt;em&gt;draft&lt;/em&gt; status.&lt;blockquote&gt;&lt;p&gt;
  A condition object system is introduced that attempts to be
  implementable in and interoperable with many implementation’s
  condition systems, including the condition system of the
  R&lt;sup&gt;6&lt;/sup&gt;RS. The condition system includes compound conditions,
  but does not include subtyping of conditions.  Simple conditions can
  be any implementation-defined value, and are also objects that can
  be made with the interface in this SRFI.  An implementation may add
  other features, such as introspection and serialization.
&lt;/p&gt;&lt;/blockquote&gt;</content><source><title>Scheme Requests for Implementation</title></source></entry><entry><title>Gwen Weinholt: Akku.scm 1.2.0 released</title><link href="https://weinholt.se/articles/akku-scm-1-2-0/" rel="alternate"/><id>https://weinholt.se/articles/akku-scm-1-2-0/</id><updated>2026-10-25T02:00:00+02:00</updated><author><name>weinholt</name></author><content type="html">&lt;p&gt;&lt;a href=&quot;https://akkuscm.org/&quot;&gt;Akku.scm&lt;/a&gt; version 1.2.0, the language package manager for R6RS
and R7RS Scheme, is now generally available. It can be downloaded
from &lt;a href=&quot;https://gitlab.com/akkuscm/akku/-/releases&quot;&gt;GitLab&lt;/a&gt;. The most important change is a fix to the
dependency solver, which was running very slowly due to a bug
triggered by the many versions of the &lt;code&gt;chez-srfi&lt;/code&gt; package.&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;more&quot;/&gt;&lt;/p&gt;
&lt;p&gt;Akku is a project-based package manager, where each project has its
own set of dependencies. You use &lt;code&gt;.akku/env&lt;/code&gt; to set shell variables
that let your Scheme implementation know where to find everything.&lt;/p&gt;
&lt;p&gt;You can upload your own packages to the archive. They go through a
review process to ensure nothing malicious is distributed.&lt;/p&gt;
&lt;p&gt;Akku also performs automatic conversion from the R7RS &lt;code&gt;define-library&lt;/code&gt;
form to the R6RS &lt;code&gt;library&lt;/code&gt; form. This lets, e.g., Chez Scheme use R7RS
libraries. Packages from the Snow package manager, which has many R7RS
packages, are also available via Akku.&lt;/p&gt;
&lt;h2 id=&quot;further-reading&quot;&gt;Further reading&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://akkuscm.org&quot;&gt;The Akku website&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://akkuscm.org/packages&quot;&gt;The Akku package list&lt;/a&gt; * [The Akku FAQ](https://gitlab.com/akkuscm/akku/wikis/FAQ) 
&lt;/li&gt;
&lt;/ul&gt;
</content><source><title>Gwen Weinholt</title></source></entry><entry><title>jointhefreeworld: Emacs finally folds to my liking</title><link href="https://jointhefreeworld.org/blog/articles/emacs/emacs-folding-kirigami/index.html" rel="alternate"/><id>https://jointhefreeworld.org/blog/articles/emacs/emacs-folding-kirigami/index.html</id><updated>2026-10-24T01:00:00+02:00</updated><content type="html">&lt;div id=&quot;content&quot; class=&quot;content&quot;&gt; &lt;p&gt;
I’ve been slowly turning  &lt;a href=&quot;https://codeberg.org/jjba23/heks-emacs&quot;&gt;my Emacs config&lt;/a&gt; into something I actually  &lt;i&gt;enjoy&lt;/i&gt; using, not just something that works, and folding was the last place where that wasn’t true.
&lt;/p&gt;

 &lt;p&gt;
Every mode had its own idea of what folding is:  &lt;code&gt;treesit-fold&lt;/code&gt; in Tree-sitter modes, Hideshow in the Lisp-ish ones, Outline in everything that resembles text, Org with its own invisible text that no one else’s commands can undo.
&lt;/p&gt;

 &lt;p&gt;
So every buffer had different keys, a different look, and worst of all  different  &lt;i&gt;performance&lt;/i&gt; characteristics. Folding a big file sometimes felt like holding my breath.
&lt;/p&gt;

 &lt;p&gt;
I’m running Emacs 32.0.50 from  &lt;code&gt;master&lt;/code&gt; (built from source, as one does), and it’s finally one system.
&lt;/p&gt;


 &lt;div id=&quot;orgabe112f&quot; class=&quot;figure&quot;&gt;
 &lt;p&gt; &lt;img loading=&quot;lazy&quot; alt=&quot;&quot; src=&quot;https://jointhefreeworld.org/static-assets/heks/screen-2026-10-23-16-17-32.png&quot;/&gt;&lt;img/&gt;&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;kirigami is the piece I didn’t know I needed  &lt;a id=&quot;kirigami-is-the-piece-i-didnrsquot-know-i-needed&quot; class=&quot;anchor&quot; href=&quot;#kirigami-is-the-piece-i-didnrsquot-know-i-needed&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-org163b27f&quot;&gt;
 &lt;p&gt;
 &lt;a href=&quot;https://github.com/jamescherti/kirigami.el&quot;&gt;kirigami&lt;/a&gt; doesn’t fold anything itself. It  &lt;i&gt;dispatches&lt;/i&gt;: it keeps a list of folding engines, checks which one is actually active in the buffer, and forwards to it. Tree-sitter, Hideshow, Outline, Org, Vdiff — all behind one interface.
&lt;/p&gt;

 &lt;p&gt;
So on top of it I put one set of keys, the same in a Kotlin buffer, YAML, a Scheme or ELisp buffer and an Org file:
&lt;/p&gt;

 &lt;table border=&quot;2&quot; cellspacing=&quot;0&quot; cellpadding=&quot;6&quot;&gt; &lt;colgroup&gt; &lt;col class=&quot;org-left&quot;/&gt; &lt;col class=&quot;org-left&quot;/&gt;&lt;/colgroup&gt; &lt;thead&gt; &lt;tr&gt; &lt;th scope=&quot;col&quot; class=&quot;org-left&quot;&gt;Key&lt;/th&gt;
 &lt;th scope=&quot;col&quot; class=&quot;org-left&quot;&gt;Does&lt;/th&gt;
&lt;/tr&gt;&lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;C-c v c&lt;/code&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;close this fold&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;C-c v C&lt;/code&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;close every fold&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;C-c v o&lt;/code&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;open this fold&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;C-c v O&lt;/code&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;open this fold and everything under it&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;C-c v r&lt;/code&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;reveal everything&lt;/td&gt;
&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;org-left&quot;&gt; &lt;code&gt;C-c v t&lt;/code&gt;&lt;/td&gt;
 &lt;td class=&quot;org-left&quot;&gt;toggle the fold at point&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;
That sounds small. It is not small. The number of times a day I used to think “wait, what does TAB do in this mode again” is now zero, and the muscle memory transfers across an entire polyglot config.
&lt;/p&gt;

 &lt;p&gt;
One wrinkle worth mentioning: kirigami answers with the  &lt;i&gt;first&lt;/i&gt; engine in its list whose mode is on, and  &lt;code&gt;outline-minor-mode&lt;/code&gt; is on in nearly every buffer I have. In the buffers where I deliberately turned on Hideshow — Scheme, for instance — that choice has to win, otherwise  &lt;code&gt;C-c v c&lt;/code&gt; folds “headings” a Scheme file doesn’t have. So I reorder  &lt;code&gt;kirigami-fold-list&lt;/code&gt; to put Hideshow first instead of rewriting it; engines kirigami adds later still get used wherever Hideshow is off.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;Tree-sitter folding, with guides that are actually lines  &lt;a id=&quot;tree-sitter-folding-with-guides-that-are-actually-lines&quot; class=&quot;anchor&quot; href=&quot;#tree-sitter-folding-with-guides-that-are-actually-lines&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-orgdf95d4b&quot;&gt;
 &lt;p&gt;
Most of my programming buffers are  &lt;code&gt;*-ts-mode&lt;/code&gt;, so  &lt;code&gt;treesit-fold&lt;/code&gt; does the work there — bash, C, C++, CMake, CSS, Dockerfile, Elixir, Go, HTML, Java, JS/TS/TSX, JSON, Kotlin, Lua, Nix, PHP, Python, Ruby, Rust, Scala, TOML, YAML. Line counts are shown inline, which I find genuinely useful when deciding whether to open a fold.
&lt;/p&gt;

 &lt;p&gt;
The indicators took the most fiddling.  &lt;code&gt;treesit-fold-indicators&lt;/code&gt; draws a block’s guide with a bitmap 23 rows tall, centered in the line beside it. A line in my config is 29 pixels — the font’s 23 plus six of  &lt;code&gt;line-spacing&lt;/code&gt; — so every row of the guide was a 23-pixel dash with three pixels of nothing above and below it. A folded block looked like a  &lt;i&gt;dotted&lt;/i&gt; line running down the fringe. Not subtle, just wrong.
&lt;/p&gt;

 &lt;p&gt;
There’s no setting for that, so I replaced the bitmaps: a single-row bitmap that  &lt;code&gt;define-fringe-bitmap&lt;/code&gt; repeats down however tall the line is (no spacing can introduce a gap), plus a  &lt;code&gt;+=/&lt;/code&gt;-= box and an end-elbow cut to the exact height of a line, so the guide runs from the marker into the row below and turns toward the text where the block ends. It’s an advice on the function that builds the string for each line. It looks like a bracket now, not a perforation.
&lt;/p&gt;

 &lt;p&gt;
And the colour: the indicators inherited  &lt;code&gt;shadow&lt;/code&gt;, which most themes make as bright as a comment. Fine for one marker on one line, wrong for a marker on  &lt;i&gt;every&lt;/i&gt; line of a block — the grey became a rule drawn through the code. They’re now  &lt;code&gt;shadow&lt;/code&gt; blended 50% toward the theme’s background, recomputed on every theme and scale change, so it fades correctly on light themes too and no theme needs a special entry.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;Hideshow earns its keep  &lt;a id=&quot;hideshow-earns-its-keep&quot; class=&quot;anchor&quot; href=&quot;#hideshow-earns-its-keep&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-orgef40e99&quot;&gt;
 &lt;p&gt;
Not everything has a grammar, and I’m not going to pretend otherwise:
&lt;/p&gt;

 &lt;ul class=&quot;org-ul&quot;&gt; &lt;li&gt; &lt;b&gt;Scheme&lt;/b&gt; — my Emacs build has no Scheme grammar, so Scheme buffers use Hideshow with  &lt;code&gt;hs-block-start-regexp&lt;/code&gt; set to  &lt;code&gt;&quot;^(&quot;&lt;/code&gt; and  &lt;code&gt;hs-forward-sexp-function&lt;/code&gt; set to  &lt;code&gt;forward-sexp&lt;/code&gt;. A Scheme file is a sequence of top-level forms, so each definition is a fold, and collapsing the one you’re inside works from anywhere within it. That’s the behaviour I wanted from the start and Hideshow doesn’t guess it by default.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;Emacs Lisp&lt;/b&gt; — the  &lt;code&gt;prog-mode&lt;/code&gt; fallback, same keys.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;XML&lt;/b&gt; — folds from start tag to end tag using  &lt;code&gt;nxml-scan-element-forward&lt;/code&gt;, skipping  &lt;code&gt;&lt;?xml ?&gt;&lt;/code&gt;, comments, DOCTYPE and self-closing elements.&lt;/li&gt;
 &lt;li&gt; &lt;b&gt;YAML&lt;/b&gt; (the non-Tree-sitter mode) — indentation-based blocks with a small  &lt;code&gt;forward-sexp&lt;/code&gt; of my own that walks to the end of the indented block.&lt;/li&gt;
&lt;/ul&gt; &lt;p&gt;
Hideshow’s own fringe indicators ( &lt;code&gt;hs-show-indicators&lt;/code&gt; +  &lt;code&gt;hs-indicator-type 'fringe&lt;/code&gt;) are on in all of these, so it doesn’t feel like a downgrade from the Tree-sitter buffers.
&lt;/p&gt;

 &lt;p&gt;
The rule I enforce per buffer is  &lt;b&gt;exactly one set of indicators&lt;/b&gt;: Tree-sitter buffers get  &lt;code&gt;treesit-fold&lt;/code&gt; and Hideshow is turned off; Hideshow buffers get Hideshow and Outline’s clickable buttons are turned off so the two don’t double up; outline-only buffers (Markdown, diff) keep the buttons. Nobody ends up with two markers per block.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;Org, which needed its own everything  &lt;a id=&quot;org-which-needed-its-own-everything&quot; class=&quot;anchor&quot; href=&quot;#org-which-needed-its-own-everything&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-org30fde3f&quot;&gt;
 &lt;p&gt;
Org folds with text properties, not overlays, so neither Tree-sitter nor Hideshow nor Outline’s buttons can draw a marker for it. So I wrote its own indicators: a fringe triangle pointing down for an open heading, right for a folded one, clickable with  &lt;code&gt;mouse-1&lt;/code&gt; to toggle exactly like  &lt;code&gt;TAB&lt;/code&gt;. Folding itself is untouched —  &lt;code&gt;TAB&lt;/code&gt;,  &lt;code&gt;S-TAB&lt;/code&gt; and the  &lt;code&gt;C-c v&lt;/code&gt; keys all still work.
&lt;/p&gt;

 &lt;p&gt;
The performance part is where the real win is. A naive “redraw indicators after every command” implementation is a disaster in a large file, because it re-searches the buffer and rebuilds every overlay on every pause. Mine is driven by the text instead:
&lt;/p&gt;

 &lt;ul class=&quot;org-ul&quot;&gt; &lt;li&gt;if  &lt;code&gt;buffer-chars-modified-tick&lt;/code&gt; didn’t change, only the indicators that are  &lt;b&gt;on screen&lt;/b&gt; are redrawn — off-screen headings can wait until they’re scrolled to;&lt;/li&gt;
 &lt;li&gt;if it changed and the change was recorded, only the  &lt;b&gt;dirty region&lt;/b&gt; is rebuilt;&lt;/li&gt;
 &lt;li&gt;if it changed with no recorded change, only then is the whole buffer rebuilt.&lt;/li&gt;
&lt;/ul&gt; &lt;p&gt;
Folding changes text properties rather than characters, so folding alone takes the cheap path. Fold state is read back from Org on each redraw rather than remembered, so external folding can never leave a stale marker.
&lt;/p&gt;

 &lt;p&gt;
Two config choices matter just as much:  &lt;code&gt;org-fold-core-style&lt;/code&gt; is  &lt;code&gt;text-properties&lt;/code&gt; (so a visibility cycle doesn’t re-parse the file),  &lt;code&gt;org-element-use-cache&lt;/code&gt; is on, and Org starts with  &lt;code&gt;showeverything&lt;/code&gt; — which is both what I want (a note is read, not consulted) and the cheaper state, because it skips the visibility passes that walk every heading on open. I also removed a  &lt;code&gt;org-restart-font-lock&lt;/code&gt; that was re-fontifying the whole buffer a second time on open; JIT-lock handles what’s on screen.
&lt;/p&gt;
&lt;/div&gt;
 &lt;h2&gt;It feels smooth, and that’s the whole point  &lt;a id=&quot;it-feels-smooth-and-thatrsquos-the-whole-point&quot; class=&quot;anchor&quot; href=&quot;#it-feels-smooth-and-thatrsquos-the-whole-point&quot;&gt;#&lt;/a&gt;&lt;/h2&gt; &lt;div class=&quot;outline-text-2&quot; id=&quot;text-org31e5cf4&quot;&gt;
 &lt;p&gt;
The end result is that folding is  &lt;i&gt;boring&lt;/i&gt; now.  &lt;code&gt;C-c v c&lt;/code&gt; in Kotlin, Scheme, Elisp, Org, XML, YAML, Markdown. Guides that look like brackets. Indicators quiet enough to ignore until you need them. No pause on a 3000-line Org file. No two competing markers.
&lt;/p&gt;

 &lt;p&gt;
It honestly changes how much I collapse and expand while reading code. I used to avoid folding because it felt fiddly; now it’s free and mouse friendly.
&lt;/p&gt;

 &lt;p&gt;
If you want to read the actual code: it’s in  &lt;a href=&quot;https://codeberg.org/jjba23/heks-emacs/src/branch/trunk/src/modules/dev-folding.el&quot;&gt;dev-folding.el&lt;/a&gt; for the engines and indicators, the  &lt;code&gt;heks/fold-*&lt;/code&gt; wrappers in  &lt;code&gt;heks-emacs.el&lt;/code&gt; for the keys, and the Org indicators live in  &lt;code&gt;org.el&lt;/code&gt;. Everything is GPL-3.0, and it’s tested:  &lt;code&gt;maak verify&lt;/code&gt; asserts a fold actually covers a whole definition and that the documented keys are bound, and  &lt;code&gt;maak keys&lt;/code&gt; fails on a key that does two jobs or names a command that doesn’t exist.
&lt;/p&gt;

 &lt;p&gt;
Happy to answer questions about any of it, especially if you’ve fought the  &lt;code&gt;treesit-fold-indicators&lt;/code&gt; bitmaps yourself, because that one cost me an evening and I’d love to know if there’s a cleaner way.
&lt;/p&gt;
&lt;/div&gt;
 &lt;nav class=&quot;jfw-article-neighbours&quot;&gt; &lt;a class=&quot;jfw-article-neighbour is-previous&quot; href=&quot;/blog/articles/lisps/orgwebalchemy-benchmarking-profiling-and-org-support/&quot; rel=&quot;prev&quot;&gt; &lt;span class=&quot;jfw-article-neighbour-label&quot;&gt;previous&lt;/span&gt; &lt;span class=&quot;jfw-article-neighbour-title&quot;&gt;OrgWebAlchemy: Benchmarking, Profiling, and the Long Road to Real Org Support&lt;/span&gt;&lt;/a&gt;
 &lt;a class=&quot;jfw-article-neighbour is-next&quot; href=&quot;/blog/articles/lisps/sift-the-lisp-formatter-i-kept-trying-to-write/&quot; rel=&quot;next&quot;&gt; &lt;span class=&quot;jfw-article-neighbour-label&quot;&gt;next&lt;/span&gt; &lt;span class=&quot;jfw-article-neighbour-title&quot;&gt;Sift: the Lisp formatter I kept trying to write (+lint +LSP)&lt;/span&gt;&lt;/a&gt;
&lt;/nav&gt; &lt;section class=&quot;jfw-related&quot;&gt; &lt;h2 class=&quot;jfw-related-title&quot;&gt;related reading&lt;/h2&gt;
 &lt;ul class=&quot;jfw-related-list&quot;&gt; &lt;li&gt; &lt;a href=&quot;/blog/articles/emacs/emacs-eglot-scala-kotlin/&quot;&gt;Emacs Eglot for Scala and Kotlin (JVM)&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt; &lt;a href=&quot;/blog/articles/emacs/build-emacs-from-source/&quot;&gt;Hacking Freedom: Compiling GNU Emacs from Source&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt; &lt;a href=&quot;/blog/articles/emacs/yaml-schemas-in-emacs-eglot/&quot;&gt;YAML Schemas in Emacs with Eglot&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/section&gt;&lt;/div&gt;</content><source><title>jointhefreeworld</title></source></entry></feed>
