Clip Loom

clipboard · five programs · one 8-bit machine

Clean it before
you paste it.

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.

what you copied
https://example.com/article?utm_source=newsletter&utm_medium=email&utm_campaign=spring
what you paste
https://example.com/article
one ? test · eleven instructions · 0 bytes uploaded

Five jobs, and the code that does them

Each program reads one byte at a time, decides, and writes. No regular expressions, no library, nothing you cannot follow.

program 01

Strip the query string

Cut a URL at the ?, so the tracking parameters never reach the person you send it to.

program 02

Squeeze runs of spaces

A space is dropped when the byte before it was also a space. Tabs and newlines are left alone.

program 03

Wrap at 40 characters

A counter counts down and refills — the same three instructions however long the text is.

program 04 · 05

Strip the fragment · one line per sentence

Cut at the # as well as the ?, or break a paragraph at every full stop.

Why assembly, of all things

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.

the weft-8 family — one machine, seven faces

the Loomthe machine and its editor — where it all starts Weft Puzzlesfive puzzles solved in assembly, a robot on a grid
Clip Loomyou are here
Weft-8 on hardwarethe same machine in C, three-way parity with the JS one weft8-kitrules small enough to sign off Weft-8 Classroomeight exercises that teach how a computer works Weft-8 beside x86 and ARMthe same four jobs in three machines

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.