All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

The Smalltalk Rewrite Engine: A Powerful but Difficult-to-Use Tool for AST-Level Code Transformation

By

mpweiher

3mo ago· 4 min readenInsight

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 pulled
The 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
Snippet from the RSS feed
The rewrite engine is an absolutely brilliant invention by John Brant and Don Roberts, introduced with the Refactoring Browser (see  “A Refa...

You might also wanna read