Run-length encoding: compress consecutive symbols
Native Squeak 6.1 build 23976. Not installed in browser playground.
File in run-length.st through File List. Do it: view := LSRLEView open.
Use Next experiment for the eight guided states, Reset to begin again.
Optional custom input: view load: 'AABBAA'. Custom view input is limited to eight characters.
Model input is unrestricted in length; teaching decoder expansion limit is 10000 characters.
File in run-length-tests.st, then Print it: LSRLETest suite run. Expected 18 passes.
Model code: pairs := LSRLEEncoder encode: 'AAABCCCC'.
Print it: LSRLEEncoder decode: pairs. Expected 'AAABCCCC'.
Window needs 980x620. No timers/network/persistence. Close window to clean up.
The GIF contains genuine scripted imageForm captures, not mouse interaction.
Pair-field counts are NOT byte counts or memory usage. No external file-format compatibility is claimed.
