Sift is a single Guile-based formatter, linter, and language server for Scheme, Racket, Emacs Lisp, and Common Lisp. It aims to replace the scattered editor settings, compiler warnings, dialect-specific scripts, and CI checks that often leave Lisp projects with inconsistent styles and no shared way to report or fix problems. Its central claim is that reliable tooling must understand source as structured code, not treat it as text: Sift parses files while retaining comments and source positions, so it can make targeted edits and report findings in formats usable by editors and automated checks. It includes more than 95 lint rules, supports command-line, editor, CI, container, and browser use, and produces the same results across those settings.
The design grew out of failed attempts using text scripts, Emacs indentation, Guix’s formatter, compiler checks, and a structure-driven pretty-printer. Those approaches either lacked context, depended on local configuration, could not report or fix issues consistently, or rewrote so much layout that diffs obscured meaningful changes. Sift instead makes formatting idempotent and limits itself to layout changes, preserving code structure and avoiding aggressive line reflow. Dialects are identified explicitly rather than guessed, and the language server declines unsupported requests rather than inventing answers. The tool offers formatting, linting, fixes, patch checks, CI runs, configuration inspection, and editor integration. After performance improvements, linting a repository reportedly fell from 25 seconds to under one, while memory allocation dropped from 1.5 GB to 140 MB.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.