Mar 31, 2023
Today I got a feature request from someone in the LÖVE community and created a fork of lines.love with 2 buttons:

    * `clear` the buffer. I imagine this like clearing an Etch-a-sketch. * `export` the buffer to html. I imagine it emerging out of the app like a Polaroid.

He sent me this screenshot from his iPad <3

Try it out if you wish.

permalink

* *
Mar 26, 2023
Belated video in Readme for this cool fork of a texture synthesis algorithm.

permalink

* *
Mar 25, 2023
One consequence/challenge of working with lots of forks: you develop a heatmap of the areas of your code most likely to have merge conflicts. I feel a very tangible pain now any time I have to touch something within 3 lines of the place where I set the window title. Every fork has a different window title, and the idiosyncracies of text-based diff guarantee every fork will flag a spurious conflict.

Hmm, perhaps I should start surrounding such lines with 3 empty lines..

permalink

* *
Mar 10, 2023
Ooh, I found a nice meaty Mastodon thread to visualize using my app.

Found a bug in the process.

permalink

* *
Feb 19, 2023
Mastodon thread visualizer in LÖVE

It took me a while to get to this, but here it is.

The layout is extremely jank, but it makes up for it somewhat using keyboard navigation. And you can click on any node to copy its URL.

LÖVE doesn't yet support https. The next version should, but I finally lost patience and temporarily put together a Lua+luasec crawler that invokes LÖVE.

Like my last few apps, this one can be edited live without restarting it.


Hmm, the second point in the alt-text for the second image requires a correction.

> The current implementation definitely has a bug relative to my intent..

The bug isn't in the implementation but in the algorithm itself. It violates the final constraint I'd set for it.

> cousins never overlap columns

Hmm, time to read the literature.


  design constraints:
  - trees only, no graphs or DAGs
  - parents above children
  - a child shares its parent's column exactly only if it's an only child
  - parents can overlap columns with children and more distant descendants
  - siblings never share a column
  - siblings never overlap columns
  - siblings always occupy the same row
  - cousins/aunts/nephews never overlap columns


Ah, it only took a slight tweak. This looks much better.

Medium-sized thread, take 2

Larger thread, take 2

permalink

* *
Jan 28, 2023
I just had a fun hour with the kids and this program:

iga: texture synthesis

Based on the Wave Function Collapse algorithm.

We tried out different tiles for a while.

After I got sick of typing out the filenames, I added the ability to drop files on the window.

Then we noticed that some of the tiles are more boring. I hardcoded the starting point near the bottom rather than the top, and that helped.

Finally I had it take the starting point from the place where you drop the file on the window.

permalink

* *
Jan 23, 2023
Dealing with failing tests when all you have is a map for code

Mechanisms:

  • Highlight tests in green.
  • Run all tests on any change.
  • Highlight failing test cases in red.
  • Turn edges of vision red when there's any failures, just in case failing tests are out of view.
  • Hotkey to zoom out over all of current view.
  • Same hotkey to restore viewport settings.
  • Click anywhere to zoom in.

Check it out in my live-editing programming environment.

(What is a "freewheeling" app?)

permalink

* *
Jan 16, 2023
Inspired by a recent blog post by Laurence Tratt, I spent some time kicking the wheels on my code map based programming environment by building a BF interpreter.

Next up: reproducing in Lua Laurence's results regarding the compiler-interpreter spectrum.

Here's the "load screen" for my environment, showing a visual overview of the code I've written.

permalink

* *
Jan 8, 2023
A map for code

In this video, I start up in quick succession:

  • a simple test app
  • the 'driver' programming environment showing the map for the app's code
  • the 'meta-driver' programming environment showing the map for the driver's code

On initial load the driver (glitchily) zooms out over the whole codebase before zooming back in to the previous session.

Check it out.

(Inspiration: early side-scrolling videogames that would often start a new level by panning across all of it.)

permalink

* *
Jan 3, 2023
This is pretty cool, a blog arranged in a Hilbert curve on an infinite 2D grid.

permalink

* *
archive
projects
writings
videos
subscribe
Mastodon
RSS (?)
twtxt (?)
Station (?)