Sparrows on Eagles: Delegate your work to Prolog!

Опубликовано: 20 Февраль 2026
на канале: The Power of Prolog
8,676
247

Good Prolog programs are like sparrows on eagles in that as much as possible is delegated to the underlying engine. When writing Prolog code, always take a moment to step back and think how the implicit Prolog mechanisms can be used to solve your tasks. For illustration, we solve a Water Jug Problem with iterative deepening, delegating as much of the work as possible to Prolog.


The metaphor "sparrows on eagles" is taken from an insightful article by Ian Clark, where the phrase "sparrows on eagles' backs" is used: https://code.jsoftware.com/wiki/User:...