clipboard · five programs · one 8-bit machine
A link with eleven tracking parameters. Text from a PDF with three spaces between every word. A paragraph going into a field that will not wrap. Clip Loom does those jobs with programs you can read in full — twenty lines of assembly, running on the machine from the Loom.
https://example.com/article?utm_source=newsletter&utm_medium=email&utm_campaign=spring
https://example.com/article
? test · eleven instructions · 0 bytes uploadedEach program reads one byte at a time, decides, and writes. No regular expressions, no library, nothing you cannot follow.
Cut a URL at the ?, so the tracking parameters never reach the person you send it to.
A space is dropped when the byte before it was also a space. Tabs and newlines are left alone.
A counter counts down and refills — the same three instructions however long the text is.
Cut at the # as well as the ?, or break a paragraph at every full stop.
Because a clipboard filter is a place where you should be able to see exactly what happens to your text. Every program here is short enough to read on one screen, and the app shows you the bytes and the step count after every run.
weft8.js from
app-jacquard, byte for byte the same engine.the weft-8 family — one machine, seven faces
Every one of these runs the same engine — weft8.js from the Loom, byte for byte. Learn it once and you have learned all seven.