Proxy in PostScript
Delay the summoning of a massive image daemon until it is actually required to draw.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Proxy
ARCANUM SCHOOL: Conjuration // Lazy Summoning
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
% Proxy in PostScript
/HeavyImage << /load { (Loading 100MB Raster Soul...\n) print } >> def
/ImageProxy <<
/loaded false
/draw {
dup /loaded get not {
HeavyImage /load get exec
dup /loaded true put
} if
(Drawing Image Matrix\n) print
}
>> def
ImageProxy /draw get exec
ImageProxy /draw get exec
Proxy: Lazy Manifestation
Why summon a 100-megabyte, full-color daemon into the physical plane if it is ultimately masked or falls outside the clipping path? The Proxy stands as a lightweight surrogate, deferring the heavy lifting until the precise moment the spirit is invoked via a /draw command.
Runic Tags:
#postscript
#print-daemon
#structural
#proxy