2026/01/22

From Woozle Writes Code
Jump to navigation Jump to search
Thursday, January 22, 2026 (#22)
Wednesday Thursday Friday posts:prev <this> next

Fixing Execution Clades, pt.3

As part of an attempt to figure out whether the Plug clade is even necessary, I'm experimenting with removing it in various ways.

Take 1

I changed OPlug()'s return-type to Stream, but then I couldn't remember why this seemed like a reasonable idea, so I changed it again to Socket but then realized that this doesn't really make sense either because I'd need to change all those OPlug()->OSock() calls as well and then why not just call OSock() directly?.

Take 2

I started trying to replace all OPlug()->OSock() calls with direct calls to OSock() calls, but then realized I had it backwards: it's actually OSock()->OPlug(). This is why it's important to take your ADHD meds before trying anything complicated.

So now I need to figure out what it is I need to figure out, because this random flailing doesn't seem to be helpful.

Thonking

Perhaps a Plug is basically a connection from one thing to another? I don't know why they can't just connect directly, but maybe it should be called "Cable", and the things being connected -- which I think are always Sockets -- should be named in a way which clarifies whether they are client or server.