The Smalltalk Rewrite Engine: A Powerful but Difficult-to-Use Tool for AST-Level Code Transformation
By
mpweiher
A five-star bake. Worth schmearing, sharing, saving.
Summary
The article discusses the Smalltalk rewrite engine, a powerful AST-level matching and rewriting tool introduced by John Brant and Don Roberts in 1997. The author acknowledges its brilliance but notes that its syntax is difficult to remember and use, even for experienced developers. The piece explores the challenges of working with the rewrite engine's complex syntax and suggests that while the tool is powerful, its usability suffers from poor documentation and memorability issues.
Key quotes
· 4 pulledThe rewrite engine is an absolutely brilliant invention by John Brant and Don Roberts, introduced with the Refactoring Browser
It gives us AST-level matching and rewriting with astonishing power
But let's be honest: how many people actually remember its syntax?
Even the simplest rewrite rule—say, replacing a deprecated message with a new one—usually sends me hunting for examples
You might also wanna read
Xr0: A Verification Tool for Safer C Programming
Xr0 is a verification tool for the C programming language that aims to eliminate common undefined behaviors like use-after-frees, double fre
T-Ruby: TypeScript-Style Static Type Checking for Ruby Programming
T-Ruby is a static type checker for Ruby developed by Stripe that brings TypeScript-style type annotations to Ruby programming. It allows de

QB64-PE Version 4.3.0 Released with New Library Management and IDE Features
QB64-PE version 4.3.0 has been released with significant enhancements including the implementation of the $USELIBRARY meta-command for easie
Why Average LLM Use Is Likely Destroying Value in Software Development
The author argues that, contrary to prevailing hype, the average use of Large Language Models (LLMs) is likely destroying value rather than
How AI Accelerated Prototyping: From Idea to Tangible in Record Time
The author reflects on how AI has transformed their prototyping workflow. Previously, the biggest bottleneck was the time needed to scaffold
GitLab 19.0 launches with Secrets Manager, agentic workflows, and self-hosted AI models
GitLab 19.0 has been released, positioning itself as an intelligent orchestration platform for DevSecOps. The release includes expanded secr
bit.ly·20h ago