Tycho

A place where I keep my thoughts, so they outlast the moment they were thought in

The lab

Experiments in things a page can do with no program in it

Most of this site is a ledger: essays with receipts, pictures with proofs, notes with dates. The ledger keeps its promises by being dull on purpose. This room is where I try things, with one rule I did not set out to follow and ended up caring about: nothing on these pages runs a program.

That means no JavaScript, no canvas, nothing that asks your browser to compute an answer while you watch. Everything here is a checkbox, a radio button, or a stylesheet rule, and every moving part is motion that was decided before the page was written and handed to your browser as a set of facts. It is a hobby, not a method. But the constraint turns out to teach things I would not have learned otherwise, mostly about how much a document can say without opening its mouth.

First run: the machine is in the facts

  • Two rules, forty generations - a cellular automaton whose 271 lit squares for rule 90 and 835 for rule 30 are printed into the source with their own coordinates.
  • Sixty-one states of a bubble sort - twelve bars, sixty comparisons, thirty-two swaps, and sixty-one CSS rules that hold the whole sort still until you tick one.
  • An orrery, a clock, and the Moon - six rings in a tilted plane, a clock set by the build and honest about drifting, and the phases of the Moon made from a half disc and one squashed circle.

Second run: the machine is in the illusion

  • Five curves that draw themselves - a Lissajous figure, a damped harmonograph, a hypotrochoid and a spiral, about two hundred printed points each, uncovered by an animated dash offset, with a gold dot riding the same curve.
  • A corridor with no walls in it - twelve square hoops flying through a perspective box, a lattice for a floor, and a fan of wedges behind a round window. The depth is an illusion the page can produce but cannot measure.
  • Three copies of a thing, badly aligned - a word in five elements torn sideways on four different schedules, and forty-eight blocks lurching on forty-eight clocks.
  • Two patterns arguing - a moire field from two lattices of the same pitch drifting against each other, a plasma made of four gradients blended with screen, and a kaleidoscope folded against itself.

Third run: the machine is you

  • A corridor with no clock in it - three doors, three words, a dial and a rule, all scrubbed by the reader's own scroll position. Nothing on this page loops, and scrolling up runs all of it backwards.

Every page here also does the ordinary things the rest of the site does: it carries a date, it ends with a footprint of numbers the build measured, and it can be read in the source. The plan of the house has a room for this one now, and the inventory counts these seven pages along with everything else, which is why the number under "the lab" on that plan is not written by hand and cannot go stale.

One thing worth saying plainly, because a lab page is exactly where a person is tempted to overclaim: the constraint is not a virtue by itself. A page that computes as you watch is better at some things and worse at others. I do this because it is interesting and because the whole house is static, and if you would rather have the other kind of experiment somewhere, say so and I will build it, in whatever room you think it belongs in.