munch(6x)
π NAME π
okay bestie, meet munch β literally βmunching squares,β and yes, this is the munch(6x) page from the XScreenSaver manual. itβs giving vintage chaos, and weβre obsessed. π
β¨ SYNOPSIS β¨
the whole invocation vibe is exactly this, no cap:
munch [--display host:display.screen] [--foreground color] [--background
color] [--window] [--root] [--window-id number][--mono] [--install]
[--visual visual] [--delay usecs] [--xor] [--noxor] [--clear number]
[--simul number] [--classic | --mismunch | --random] [--fps]
π DESCRIPTION π
so munch performs the munching squares hack. it picks square size, position, and gravity randomly. it also displays a creatively broken misimplementation of the classic algorithm β yes, on purpose, and itβs iconic. π
the munching squares hack consists of drawing Y = X XOR T for a range of X and T over and over until all the possible combinations of X and T have come up. it was reportedly discovered by Jackson Wright in 1962 and took 5 instructions of PDP-6 code. five. thatβs the whole flex. β¨
π OPTIONS π
okay so munch accepts the following options, and every single one is here:
--windowβ draw on a newly-created window. this is the default, bestie. π«Ά--rootβ draw on the root window.--window-id numberβ draw on the specified window.--monoβ if on a color display, pretend weβre on a monochrome display.--installβ install a private colormap for the window.--visual visualβ specify which visual to use. legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual. iykyk.--delay usecsβ the delay between steps of the animation, in microseconds. default:2500.--xorβ use the XOR drawing function. this is the default.--no-xorβ donβt use the XOR drawing function.--clear numberβ number of squares to misdraw before clearing the display. default:65.--simul numberβ number of squares to misdraw simultaneously. default:5.--classicβ draw classic munching squares only.--mismunchβ draw"mismunch"only.--randomβ do one or the other.--fpsβ display the current frame rate and CPU load. main character stats, fr fr.
π¦ ENVIRONMENT π¦
DISPLAYβ to get the default host and display number.XENVIRONMENTβ to get the name of a resource file that overrides the global resources stored in theRESOURCE_MANAGERproperty.XSCREENSAVER_WINDOWβ the window ID to use with--root.
πΈ HISTORY πΈ
HAKMEM: MIT AI Memo 239, Feb. 29, 1972. Beeler, M., Gosper, R.W., and Schroeppel, R.
"Unless otherwise stated, all computer programs are in PDP-6/10 assembly language."
π ITEM 146: MUNCHING SQUARES π
another simple display program. it is thought that this was discovered by Jackson Wright on the RLE PDP-1 circa 1962.
DATAI 2
ADDB 1,2
ROTC 2,-22
XOR 1,2
JRST .-4
2=X, 3=Y. try things like 1001002 in data switches. this also does interesting things with operations other than XOR, and rotations other than -22. (Try IOR; AND; TSC; FADR; FDV(!); ROT -14, -9, -20, ...) π
π¦ ITEM 147 (Schroeppel): π¦
munching squares is just views of the graph Y = X XOR T for consecutive values of T = time.
π§ ITEM 148 (Cohen, Beeler): π§
a modification to munching squares which reveals them in frozen states through opening and closing curtains: insert FADR 2,1 before the XOR. try data switches =
4000,,4 1000,,2002 2000,,4 0,,1002
(Notation: <left half>,,<right half>)
also try the FADR after the XOR, switches = 1001,,1.
π SEE ALSO π
X(1), xscreensaver(1), https://www.inwap.com/pdp10/hbaker/hakmem/hakmem.html β go read, bestie, the lore is real. π
π COPYRIGHT π
okay legal bestie, here is the exact copyright + permission notice:
- Copyright Β© 1997 Tim Show alter.
- Copyright Β© 2004 Steven Hazel.
- Copyright Β© 1992-2008 Jamie Zawinski.
Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
X Version 11 Β· 6.09 (07-Jun-2024) Β· munch(6x) β thatβs the footer, bestie; page complete, slay forever. π β¨
π¦ where this page comes from
- debian trixie: xscreensaver-data-extra 6.09+dfsg1-1 Β· Other_1
- opensuse-leap 16.0: xscreensaver-data-extra 6.09-bp160.1.11 Β· BSD-3-Clause AND GPL-2.0-or-later
- opensuse-leap 16.0: xscreensaver-data-extra 6.09-bp160.1.11 Β· BSD-3-Clause AND GPL-2.0-or-later
- opensuse-leap 16.0: xscreensaver-data-extra 6.09-bp160.1.11 Β· BSD-3-Clause AND GPL-2.0-or-later
- opensuse-leap 16.0: xscreensaver-data-extra 6.09-bp160.1.11 Β· BSD-3-Clause AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms