Hire Me

Blog

(Some) vendors finally getting open source

Mickey · · 8 min read · Comment

I really don’t need another hardware sampler. I was quite happy to let Akai’s little grey box with its sixteen pads pass me by. Then somebody told me you could write your own operating system for the thing. Apparently I have a much easier time resisting a sampler than a sampler I could turn into something else. :)

Akai MPC Sample from above at an angle, showing its sixteen backlit pads, knobs and colour display.
The MPC Sample as Akai ships it. Press photograph courtesy of Akai Professional.

It turns out you can be a little more precise about “operating system”. On the firmware the hackers took apart (1.3.0.12), the MPC boots Linux on a Rockchip RK3566 with four Cortex-A55 cores. What I didn’t expect was how much of the hardware you can reach through ordinary Linux APIs. Audio goes through ALSA (the Advanced Linux Sound Architecture). To play a sample, a program can send PCM frames to the sound card. To light up the little 320 × 240 display, it can use DRM/KMS, the same kernel graphics interface a Linux desktop uses. Even the front panel speaks a familiar language. A separate microcontroller scans the pads and knobs and sends MIDI messages over a serial link. Linux presents them to the app as an ALSA MIDI port called “Control Surface”. The lab’s audio and display notes · Front panel protocol

There was still some detective work involved. On the first run the pads played tones, but the LCD stayed black. The lab notes suggest the test program had drawn into a perfectly writable framebuffer that the panel wasn’t showing. On the second run the program used DRM to put its own buffer on the display. Here’s what “custom OS” amounts to on this MPC. Akai’s Linux boots as usual, and the instrument you picked on microSD takes over from the factory app. The lab’s little WAV sampler ran in RAM, with the physical pads under its control and Akai’s kernel still moving samples to the audio codec. MPC Sample Lab

I particularly like what happened next. Snare Bes built SampQOL, a mod that adds a step sequencer and a mixer to Akai’s own app. Kerem Kiliç wrote Melodee, an open-source groovebox that takes over the whole instrument. Each pad selects a track with its own effects, whether you’re playing a drum kit or a synth. SampQOL · Melodee

Melodee step editor with a sixteen-step bass pattern and step seven selected.
The bass line in Melodee gets its own step editor on the MPC display. Screenshot from the project’s user guide.

Trying everybody else’s software used to mean swapping SD cards or shuffling folders. Enter SampleBoot. You keep several instruments on one card and pick one with the encoder when you switch the MPC on. Imagine putting “needs a boot menu for all the sequencers people have written for it” in the original product requirements. SampleBoot

Three SampleBoot screens showing the startup logo and two selectable example systems.
One encoder to choose what runs on the pads. These example menu screens are from the SampleBoot project.

I suspect AI has a fair bit to do with this sudden burst of instruments. You could hand a drummer the best-documented SDK in the world and she’d still have to find an embedded programmer willing to spend a weekend on her idea. Say she wants a pad that plays a fill for as long as she holds it, then drops back into the groove the instant she lets go. These days she can give an AI coding tool the docs and a working example, describe that behaviour, and get far enough to try it with her own hands. If the return feels half a beat late, she’s the expert you’d want in the room anyway. What I love about this is how many ideas finally get a hearing when knowing your way around an ARM toolchain stops being a condition for entry. I wrote about the same effect on my own pile of unbuilt software.

I’ve spent years being cross with companies that tried to keep people like us out. Back in 2006 I bought a Motorola A780 and an E680 to work on OpenEZX. We could have used the SDK Motorola kept promising. One of my first contributions was a driver for the LCD backlight. A year later, at a conference in Aalborg, Stefan Schmidt and I got the A780 to boot into the OpenMoko interface. We even heard the startup sound, courtesy of a new ALSA SoC patch. I had quite forgotten that detail until I went back to the old posts. My first OpenEZX drivers · What I wanted from an open phone in 2006

An open Motorola A780 held in one hand, running the OpenMoko user interface.
Our Motorola A780 in Aalborg in 2007. The photo is from our original OpenEZX report.

What caught my attention this time was Akai putting out a video themselves. After showing what they’d asked Claude to build for the Sample Key, they show a chiptune synth on the pad-based MPC Sample and say the same community features are coming to that machine. Akai’s parent company, inMusic, publishes the open-source components of the Linux environment. The factory sampler application is proprietary. You can already play the community’s Melodee on the pad model. Akai’s decision to make that prospect part of the sales pitch is the bit that would have surprised my younger self. My OpenMoko story · Akai’s video · inMusic’s source archive for the MPC Sample

For a machine you already own, I think Synthstrom Audible’s Deluge is an even better illustration. Synthstrom released the firmware source in 2023. One of the things owners of the original four-character-display model got out of that decision was a new way to play a live set. The community arranged clips in a grid on the illuminated pads, one column per track. Those pads had been under people’s fingers for years. It took someone with a different idea about how to use them to give that old instrument a new trick. I’ve always loved that. Synthstrom’s announcement · The community’s grid view

We’ve just built FM-1 Studio for the Mac, which makes me a participant in this peculiar form of advertising. M-VAVE sells a pocket FM synth and publishes the application source and a binary SDK for it. The Firmware Hub gives you a pretty good idea of what happened next. Two entries sitting next to each other in the catalogue are SLOOP, a groovebox with a step sequencer, and JIANT FM, which draws its six tracks as living creatures in thermal colours. Both target the same little synth, though JIANT FM’s maker says it has seen little testing on the physical unit. M-VAVE’s FM1 Open · The Firmware Hub

The Firmware Hub catalogue showing SLOOP by isod89 and JIANT FM by juanjiant-bit.
Two takes on sequencing for the FM-1. The Firmware Hub lists the makers and links to their work.

Joakim Eriksson wrote an emulator for the machine and a firmware that turns it into a Commodore 64 SID synth. Our bit was to put the emulator in a native Mac instrument. I can open the original FM synth on one track in my DAW, load a community ROM on another, and save the exact firmware with the song. Back in 2008, the first thing I wanted on my iPhone was a SID player. Now you can play Joakim’s version in a browser. How many of us have told someone about an M-VAVE synth on the strength of something Joakim wrote? SID Player on my iPhone · Play FM-1 SID

FM-1 Studio on macOS showing factory patch 001 PIANO 1, the emulated front panel and the playable keyboard.
Our forthcoming FM-1 Studio for macOS, running M-VAVE’s factory firmware. The patch on the LCD is the original PIANO 1.

That’s the commercial argument I’d have liked to make to Motorola. Somebody hears a SID tune, sends a friend the playable link, and the friend who wants real knobs goes looking for the box it runs on. The same thing just happened to Akai with me, a fairly determined non-customer who is now writing about their sampler (with AI helping me type). The manufacturer gets word of mouth, the musician gets another instrument out of the purchase, and the next hacker gets source code to start from. I can think of worse ways to sell music gear.

My favourite detail was sitting in the MPC Sample Lab’s system notes all along. Akai built the Linux image with Yocto. Underneath Yocto sits the OpenEmbedded build system. Back in 2003, Chris Larson, Holger Schurig and I started OpenEmbedded when I was spending my evenings getting Linux software onto a Sharp Zaurus. Twenty-three years later I’m trying to talk myself out of buying a drum machine and find our old project inside it. That particular circle I couldn’t have drawn if I’d tried. The Zaurus years · Yocto’s build system

If there’s an old instrument on your desk that gained a second life from somebody else’s firmware, drop me a line. I’m particularly interested in the ones I can try without buying the box.

Should I breed sheep?

Mickey · · 9 min read · Comment

Watercolour illustration: Mickey with a headlamp walks a muddy field path on a rainy November evening, Flocke, a white shepherd dog, sniffs ahead on the lead, and a single sheep peeks out of the hedge
The evening round, with a spectator in the hedge. Both illustrations in this post were drawn by an image model from photos of Flocke and me.

The best thinking I do these days happens on the evening round with Flocke. It’s dark at five now, the fields are wet, she is busy with whatever the rabbits left behind, and I have forty-five minutes in which nobody wants anything from me. Lately, those forty-five minutes have been circling around one question, and it doesn’t go away when I’m back at the desk: what am I going to do for a living in five years?

The last time I wrote a post like this, it was called “Uneasiness”, it had exactly five sentences, and it was about bad contract projects in 2010. This one is longer, because this time the cause isn’t a couple of bad customers. It’s the whole trade.

The flip side of my own argument

Back in August I wrote that software no longer needs a business case, and I meant every word of it. LLMs made it cheap enough to finish the tools nobody would ever pay for, and I’ve been happily doing exactly that all year.

What I didn’t write is the obvious other half of that sentence: if software no longer needs a business case, then software is no longer much of a business, either. At least not the kind of business I’ve been doing since the late nineties — somebody has a problem, somebody else (yours truly) knows how to turn it into a program, and money changes hands in between. When the person with the problem can say what they want and get a working program back in an afternoon, the one in the middle has a problem of their own.

The part that excites me

Don’t get me wrong, I’m not only scared. Some of it is the most exciting thing that has happened to computing since I first typed LOAD"*",8,1.

For forty years we’ve been interacting with computers through applications. An app is basically a container: some data, a set of verbs you can apply to that data, and a user interface that tries to explain to you which verb lives behind which button. Half of my professional life consisted of discussing button placements for those containers.

Now look at what happened at my own bench this spring: I gave a model typed tools for a CAN bus, and it read a VIN off an ECU. No app involved. I said what I wanted, the model picked the verbs, the verbs acted on the data. I’m convinced that this is where most of our interaction with computers is going: we won’t open apps anymore, we’ll just perform actions on data, and the human-computer interface will be language by default. Not because typing or talking is always better than clicking, but because it removes the need for someone to anticipate every verb in advance and give it a button.

Funnily enough, I made a similar point in 2008, in a completely different context. Back then, for the Openmoko middleware, my line was “below the dbus line we collaborate, above it we compete”. MCP is that dbus line all over again, just for the whole world. The difference is that above the line, there isn’t much left to compete with. The model is the frontend.

There will still be dedicated graphical applications for things where the picture is the point: a DAW, a tracker, a frame view with two million CAN frames in it, a map. But those are special cases. The recipe app, the expense report, the ticket system, the CRM with the 47 tabs… I won’t miss them, and I doubt anyone else will.

The part that scares me

Here’s the catch. If interaction becomes language and programs become something a model writes on demand, then software development as a service is a commodity. Not a cheaper craft, a commodity, like electricity: you need it, you pay per unit, and nobody cares who generated it.

I’ve lived through a smaller version of this before. In 2013 I complained that HTML5 and cross-platform tools were ruining the prices for native apps. That was a dent. This is the floor going away. The 20-person-day fixed-price projects I quit doing in 2014 — today the customer gets the first 80 percent of that for the cost of a subscription, and the remaining 20 percent… well, I’ve been preaching for years that the other 90 percent is where the actual work is. That still holds. I’m just no longer sure that customers will pay for it, when the first version already looks finished to them.

The electricity comparison bugs me for another reason. Nobody cares how the power plant is wired inside, as long as the lights come on. For a lot of us, though, the pride was precisely in the wiring: clean module boundaries, state machines instead of flag soup (they’re your friend, as I wrote in 2008), reusable frameworks because I hate repeating myself, code that somebody else can still maintain in ten years. That whole ethos rests on one assumption: changing software is expensive, so you’d better build it in a way that it can be changed. If regenerating the whole thing from a description is cheaper than understanding the old one, why would anyone care whether it was modular? Throwaway software doesn’t need to be maintainable, it needs to be replaceable.

I’m torn on this one. My gut says architecture matters more than ever. The model works best inside small modules with typed boundaries (my agent at the bench got sharper with every structured tool I gave it), and a big ball of mud eats its context window just like it eats my patience. And the freshly regenerated program still has to talk to the same database, the same ECU, the same customer data from last year — data outlives code, always has. Then again, my gut also told me in 2020 that Objective-C would carry me through the rest of my career. Maybe clean architecture survives as something we do for the machines rather than for each other, which would be a strange kind of victory. Or maybe it ends up like letterpress printing: admired by a few, and irrelevant to everyone else.

And the part that hurts personally is not the money. It’s that writing software has always been the creative act for me, from 68K demos on the Amiga to the tracker I’m building right now. If that act can be performed by anyone who can describe what they want, then what I’m good at has no creative value on the market anymore. It still has value for me, at the bench, at three in the morning. But that doesn’t pay for dog food.

So where do people like me go?

I don’t have the answer. I do have a few candidates, ordered by how much I believe in them.

Where software touches physics. Hardware doesn’t care about plausible explanations ;) An ECU either answers or it doesn’t, a CAN controller goes bus-off or it doesn’t, and someone has to stand in the workshop with the adapter in one hand and the laptop in the other. This is where I’ve been drifting for ten years anyway, with the adapters, CANcorder, ECUmulator Studio and the Touch. Models will learn a lot from benches, too, but they won’t hold the probe for some time.

Where someone has to sign. Safety, homologation, liability, regulated industries. A model can write the code, but it can’t be sued, and as long as that’s true, someone needs to understand what they are putting their name under. That’s a real job. It’s also a much smaller one than “developer” used to be, and I’m not sure it’s a job I want.

Where knowledge isn’t in the training data. What a particular 2009 ECU actually does when you send it a malformed request is written down nowhere. It’s in my notes, in my bench logs and in my head. That’s worth something, but it’s a shrinking island: every time I hand that knowledge to a model as a tool, I’m moving it from my head into the commons. Which is exactly what I want as an engineer, and exactly what I shouldn’t do as a businessman sigh.

Taste. Deciding what should exist, and what it should feel like. I keep reading that this is what’s left for us humans. Maybe. But I’m afraid taste feeds a few dozen people per industry, not a few million.

Things that are worth something because a person made them. Stories, music, a hand-set book in FF Meta. That’s where my heart is going anyway. The irony isn’t lost on me that I wrote those with a model at my side, too, and that this post was also mostly typed by one. Still, there’s a difference between a model that keeps me from stopping halfway and a model that replaces the need for me to start at all.

Or I breed sheep

Which brings me back to the evening round. I’ve been jokingly telling friends that if it all goes south, I’ll breed sheep. The shepherd dog is already here, after all: Flocke is a White Swiss Shepherd, she has the herding instinct (mostly applied to family members who walk in different directions), and she is clearly underemployed. Whether she would actually herd the sheep or just chase them into the next county is a question I’d rather not answer in public.

Watercolour illustration: Mickey stands on a green pasture with a shepherd's crook and a laptop bag over his shoulder, Flocke crouches in herding pose, and the sheep wander off in several directions
Plan B, with the laptop bag still on the shoulder.

I’m not breeding sheep. Not yet. For now I’m doing what I’ve always done when the ground was moving: building the things I believe in, as close to the hardware as I can, and keeping my eyes open. But I’d be lying if I said I knew where this goes, and I’ve noticed I’m not the only one in my age group who is quietly asking the same question on long walks.

So, dear reader — especially those of you who’ve been making a living from code for as long as I have: where do you see yourselves in five years? Did you already find your sheep? I’m all ears.

Cheers, :M:

ECUmulatorTouch — the ECU emulator I wanted to buy

Mickey · · 6 min read · Comment

I’ve finally got the ECU emulator I wanted sitting on my desk. The slightly ridiculous part is that I had to build it myself, but after years of putting up with other people’s emulators, this is rather satisfying :)

I’ve been working on automotive diagnostics since 2016. What started with reading data from cars has grown into apps, adapters, protocol libraries, and a bench that keeps acquiring more cables. Along the way I’ve spent far too much time struggling with bad ECU emulators. When you’re developing diagnostic software, you need a vehicle that gives you repeatable answers, lets you change the interesting bits, and helps you understand what your tester is doing. Getting that out of the available tools has been considerably more painful than I think it should be.

I wanted something I could put next to a diagnostic tester, switch on, and use. Change a value, set a fault, ask the same question again. See the CAN traffic while doing it. Keep a useful setup for tomorrow. And, preferably, enjoy looking at the thing instead of mentally redesigning its interface every time I touched it.

Well, it’s finished now, and it’s called ECUmulatorTouch. It’s the device I would have liked to buy for myself.

Product rendering of the black ECUmulatorTouch enclosure with its 4.3-inch screen, six Home tiles and cyan front label.
ECUmulatorTouch: a 4.3-inch touchscreen, a CAN connection, and the controls I wanted within reach.

A vehicle on the desk

The standalone part starts with four OBD2 models: petrol or diesel, using 11-bit or 29-bit CAN addressing. Choose one, start the emulation, and connect your tester. You can change engine speed, road speed and coolant temperature, work with trouble codes and readiness, and edit identification data. The included models work offline, without a computer or activation.

The OBD2 setup screen with petrol and diesel models and 11-bit and 29-bit CAN addressing choices.
The included OBD2 models, ready to answer a tester on the bench. UI screenshots use demonstration data.

This is the part I care about most: I can put the scanner into a particular situation and then change that situation while watching its reaction. A hot engine, a different RPM, a fault that needs explaining. There’s a rather pleasant difference between imagining what an app might show and having a little box on the desk actually send it those answers.

Live OBD2 controls showing engine speed at 800 rpm, vehicle speed at 0 km/h and coolant temperature at 90 degrees Celsius.
Changing the values changes what the connected tester receives. Presets keep configurations I want to use again.

The CAN monitor stays available during emulation, and there’s a frame generator and SD recording as well. I’ve written about my Linux CAN tools before; this is the same wish for a more agreeable bench, with a touchscreen attached. With the optional Studio extension, I can also load custom vehicles from ECUmulator Studio and control the device over the network.

The CAN Monitor displaying hexadecimal and ASCII frame data, frame ages and controller-health information.
Requests, replies and controller health on the same screen. Opening the monitor keeps the emulation running.

My own little instrument

Underneath the screen, this is the meeting point of years of work on my C++ diagnostic core and ESP32 programming. Back in 2023 I wrote about returning to C++ and promised to tell you what I was building. Well, here’s one fairly tangible answer.

The ESP32-S3 runs ESP-IDF and FreeRTOS. On top sits my own firmware stack: the shared C++ emulation core, the vehicle library, network control, storage, and the complete user interface. The same emulation core also runs on the desktop. CAN reception and diagnostic processing have their own high-priority tasks; painting the screen and handling network or storage work are scheduled around the diagnostic work.

I ended up building the UX and renderer in C++ too. Fixed layouts for the 800 × 480 display, antialiased IBM Plex Sans Condensed for the interface, Iosevka for the CAN data, and Lucide icons. Text and icons are prepared as glyph atlases; the device blends them into its framebuffers and redraws the areas that changed. I still like being able to decide what happens to the pixels on an embedded display.

The interaction model also runs on the host, so I can exercise the same screens and touch behavior in a preview before flashing the device. That has been particularly useful for all the small things: a button that activates on release, a hold that has to finish visibly, a dialog that keeps its state, or returning to the monitor while the simulated vehicle carries on answering. Those details make a tool pleasant to use, and I wanted to get them right.

About the box

For the 0-series, the hardware is a relabelled Waveshare 4.3-inch BOX. It gave me a ready-made enclosure, display and ESP32-S3 platform on which to build the instrument. If ECUmulatorTouch sells well enough, I plan to build fully custom hardware for it. For now, this is the box my software lives in, and I’m quite fond of it.

Product rendering of ECUmulatorTouch from the connector side, showing the green terminal strip and relabelled enclosure.
The connector-side product view. The 0-series uses the existing Waveshare BOX hardware.

By the way, I caught myself getting quite excited about seeing around 40 mA at 5 V with Wi-Fi switched off. The subsequent discussion was about how long I could run it from a powerbank. Apparently that’s where my mind goes once the emulator finally does what I want.

AI helped with the implementation, the product illustrations, and the typing here. The wish list comes from ten years of wanting a better ECU emulator, and I’m very happy to finally have it on my desk.

If you develop diagnostic software, test adapters, or teach people how a scanner talks to a vehicle, you guys might find this useful too. The CANsole website has more pictures, the illustrated manuals and the practical details. I’d love to hear what you’d put on the other end of its CAN cable.

Cheers, :M:

Synth Sample found again!

Mickey · · 4 min read · Comment

For more than 20 years I’ve been looking for our TGM-Crew demo disk Synth Sample. I had pretty much given up hope of ever seeing the complete thing again. On my AMIGA page and module archive I even wrote that the disk had been lost, with only an excerpt from a compilation surviving. Well, it’s back! Many thanx to Exciter for telling me! :)

The disk image contains the full demo, including the dancing character and six pieces of music. Seeing it run again after all this time is quite something. The scroll text dates the release to May 25, 1988. Back then I was “Lord Performer Artworx”, responsible for code and music, while Dennis “Exolon” Schirmer did the graphics.

Synth Sample loading screen with the TGM-Crew logo and Lord Performer Artworx credit
The loading screen. I hadn't seen this one in a long time.

The dancer was our little trick. We wanted a character made from 3D lines, but didn’t know enough 3D maths to animate one. Dennis drew lots of individual frames instead, and I played them back in sequence. Add a shadow, a star field, copper bars, a scroller, and music, and there you have it. Some other groups were impressed until they figured out how we’d done it ;)

The dancing line figure and its shadow below the TGM-Crew logo, with a scrolling message at the bottom
Our dancer, back on screen.

Getting it to run took a bit of work: the disk loads, but an address in the original code caused trouble with the Kickstart 1.3 ROM used in the emulator. A small change to a working copy of the disk image got us past that. The original image remains untouched. The demo’s scroll text explains that you can choose the tunes with F1 through F6.

You can watch a recording of Synth Sample on YouTube. It includes the opening sequence and all six tune selections; some tracks are cut short when the next one is selected.

The music was an even bigger surprise. I compared the six pieces with my existing module archive. Five don’t appear to be in there at all. The sixth, “Les Cambrioleurs”, is the demo version of “The Thieves”, which I did have, but with different samples and some differences in the song data. And the original “Thinking” is back too — previously I only had “Thinking ’89”.

I’ve extracted all six pieces from the disk as 15-instrument SoundTracker modules. You can download them here:

The dancer in another pose above a colorful scrolling message
Another frame from the demo, with the scroller running below.

The disk stores sample data separately from the song headers and patterns, so the modules had to be reconstructed rather than simply copied out as files. Back then I did that as a kind of “copy protection”, hoping to stop hackers from simply ripping off my songs :D They open in a module player, although you may need one that supports the older 15-instrument format.

Update, October 30: I noticed something odd while listening to “Quartier”: in both MikMod and XMP, a synth note keeps playing where it shouldn’t. In RetroPlayer, the same passage sounds as I expected. Of course I had to find out why.

At song position 08, the synth moves from one of the Amiga’s four channels to another. The old channel is still looping the sample, and the pattern gives it a different instrument number without a new note. RetroPlayer uses libopenmpt for MOD playback; it switches samples when the running loop reaches its end, and the old channel eventually falls silent. MikMod and XMP keep the synth looping on that channel instead, so you hear it alongside the new one.

With AI helping me investigate, I compared the passage with and without that instrument change. In MikMod and XMP, the isolated channel produced identical audio either way. An explicit volume-zero command silenced it. I haven’t checked the original SoundTracker replay routine on an Amiga, so I can’t claim which historical player would have done what — but it’s funny to find this kind of disagreement in a format that’s been around since the 1980s.

RetroPlayer is on the App Store, by the way. I didn’t expect one of my old modules to turn into a replayer compatibility test nearly four decades later!

If you still have any old TGM-Crew disks or other pieces of my Amiga work, please let me know — who knows what else might turn up?

Cheers, :M:

PNGuin — iPhone screenshots from the menu bar

Mickey · · 5 min read · Comment

For quite a while now, every screenshot of my iPhone went through a little shell script called iphone-screenshot. I need that a lot these days, because an AI agent that builds an iOS app should be able to look at what it just built, and “take a screenshot of my iPhone and have a look” has become one of the most frequent sentences in my terminal. The script itself was trivial. What it stood on wasn’t: a pymobiledevice3 tunneld running as a root LaunchDaemon, since you can’t talk to a modern device’s developer services without a tunnel.

PNGuin logo: an iPhone inside the four corner brackets of a screenshot frame

That daemon had a habit. Once a phone told it that it “has not been unlocked recently”, it kept answering {} — forever, silently — and the only cure was sudo. You can imagine what that does to an agent that wants to check its work every couple of minutes. sigh

Xcode 27 finally ships xcrun devicectl device capture screenshot: no tunnel daemon, no root, no Python, about 0.7 seconds per shot. So I threw the old script away and wrote PNGuin, which is the same iphone-screenshot command (now in Swift) plus a menu-bar app around it. Say “penguin”: it delivers PNGs, and if you spot a nod to an old friend from the Linux days in there, you’re not wrong. As usual these days, with AI doing most of the typing.

Two front ends, one core

The CLI is made for scripts and agents. On success, stdout carries nothing but the path of the PNG; the exit codes tell the caller what to do next. 4 means the phone is locked, so ask the human to unlock it. 3 means there’s no clear candidate, so run iphone-screenshot list and ask which device is meant. That’s really all an agent needs, and I’m surprised how much nicer a tool gets when you design it for a reader that doesn’t guess.

The menu-bar app is for me. Click the icon and the panel lists every paired iPhone and iPad with its state (ready, locked, not reachable), shows a live preview of the selected one and saves a screenshot to the desktop with one click. Click the preview and it’s on the clipboard; drag it into Mail, a chat or a Finder window and it arrives as a properly named PNG. Rows are ordered by the device you last took something from, because that’s the one you’ll want again.

Two PNGuin menu panels side by side: on the left the device list with a live preview of an iPhone home screen, on the right the Simulators tab with an iPad simulator selected
Devices on the left, simulators on the right. Click the preview to copy it, drag it to share it.

devicectl, the fine print

Of course it wasn’t quite as easy as calling devicectl. A few things I learned along the way:

Simulators, too

Once the panel existed, the obvious question was: why only real devices? Most of my screenshots for App Store pages, documentation and this blog come from the simulator anyway. Xcode has its own ways to grab those, but I wanted them in the same place as everything else, with the same click to copy. So there’s now a segmented control at the top, Devices and Simulators, the latter listing every booted iPhone and iPad simulator via simctl.

And since a simulator lets you cheat, PNGuin cheats with style. It can put the classic marketing status bar on the simulator (9:41, full bars, full battery) while it’s previewed and remove it again afterwards; if you’ve set status-bar overrides of your own, it keeps its hands off them. It can also give the screenshot transparent rounded corners, which is what you want for slides and docs. Both options apply to the preview as well, so whatever you drag out is exactly what you would have saved.

An iPhone 18 Pro simulator screenshot with a 9:41 status bar, full signal and battery, and transparent rounded corners
A simulator capture with the clean status bar and transparent corners.

One more gotcha for the collection: a screenshot of a simulator that has just been shut down doesn’t fail. It hangs, for a full minute. PNGuin therefore gives simctl a ten-second timeout. Thanks, Apple :)

PNGuin belongs in the same drawer as Simsalabim, the toolkit that gives the iOS Simulator Bluetooth, cameras and NFC: small tools that each remove one specific annoyance from iOS development, and which I’d never have justified building a few years ago.

Getting it

The CLI is on Homebrew:

brew tap mickeyl/formulae
brew install iphone-screenshot

iphone-screenshot                                    # the only ready device, saved to ~/Desktop
iphone-screenshot --device "My iPhone"               # by name or UDID
iphone-screenshot --simulator --clean-status-bar --mask-corners
iphone-screenshot list                               # name, udid, state, OS version

For now, the menu-bar app builds from source (make install, with Xcode 27, XcodeGen and Shark installed). Everything is MIT-licensed and on GitHub.

If you read this post in its first hours: the app was called ScreenGrab back then, until I noticed that fastlane already has a screengrab, and that a family with Simsalabim, ImpossiBLE and NFCromancer in it deserves a better pun. The old links still work.

If you’re teaching your own agent to look at your phone, I’d love to hear how you use it. Cheers, :M:

Back to Metal: Repainting the garage

Mickey · · 8 min read · Comment

I’ve been spending the last couple of days on my forthcoming app Vehicle, M.D., the completely new successor to my popular OBD2 Expert, and recently I got distracted by the pictures in its garage. You can use your own vehicle photo, of course. But when you haven’t got one handy, a motorcycle deserves to look like a motorcycle, and a pick-up shouldn’t have to make do with a generic hatchback.

The app now has fifteen stock vehicle shapes, chosen from the VIN decoder’s body information where available, or by you. AI helped with the artwork, the code, and the typing here. Then I wanted to change their paint colours — which brought me back to Metal.

I’d already used it for RetroPlayer’s oscilloscope and the one in Paulinche, drawing audio waveforms with phosphor trails. This time I’m repainting vehicle illustrations. What surprised me was how little SwiftUI code it took :)

Actual SwiftUI renders in red, black, navy and white. The old global tint is on the left; the new selective Metal paint shader on a convertible and motorcycle is in the middle and on the right.
Left: the previous global filters. Middle and right: the paint shader. These are captures of the actual SwiftUI views; the comparison labels are in German.

The wheels were coming along for the ride

My first attempt used SwiftUI’s hueRotation, saturation and brightness modifiers. Easy to write, easy to adjust, and rather disappointing once you look past the bodywork.

Turning the paint red also changed the glass. Choosing a dark colour dulled the headlamps and the chrome. Everything acquired that slightly cheap appearance of a picture with a coloured filter over it. SwiftUI was doing exactly what I’d asked: applying the transformation to the whole image.

I wanted to repaint the bodywork while retaining the tyres, seats, glass, lights and metal parts. A hue rotation has no idea which material a pixel belongs to. We had to give it that information.

A small material map

The stock illustrations share a pale teal paint colour and a transparent background. That common source colour gives us a useful starting point for finding the painted surfaces.

An offline Python tool generates an 8-bit paint mask for each illustration. White means “repaint this”, black means “keep the original”, and intermediate values soften the boundary. The tool combines hue, saturation, HSV value and opacity, so neutral chrome, dark rubber and the transparent silhouette tend to stay outside the selection.

The original convertible illustration with pale teal paint, grey seats, dark tyres and transparent background.The matching grayscale paint mask: body panels are white; windows, seats, wheels and the background remain black.
The original asset and its actual paint mask. Both have the same pixel dimensions. Click either image to inspect the boundaries.
Four smooth selection gates are multiplied to bake an 8-bit paint mask. Teal hue, sufficient saturation and brightness, and nearly opaque pixels contribute; reviewed glass exclusions remove similarly colored windows.
The selection functions used by the mask generator. Their weights multiply; a zero in any gate removes that pixel from the selection.

Colour alone still can’t distinguish a teal reflection in a window from teal paint. For the images with glass, we also review exclusion polygons to keep it out of the paint mask. The mask gets a little feathering, and the generator explicitly clears low-opacity edges again afterwards. I don’t want a coloured halo around a vehicle when the phone switches to Dark Mode.

The convertible’s windscreen keeps its original teal reflections even when the body is black; the mask deliberately leaves the glass alone.

All of this happens when preparing the assets. The app loads a finished mask; it doesn’t try to rediscover the bodywork every time you touch a colour swatch.

Keep the light, change the paint

Selecting the right pixels solves half the problem. Filling them with a solid colour would throw away the shading that makes the illustrations look three-dimensional.

For the other half, I used OKLab, Björn Ottosson’s perceptual colour space. It separates perceived lightness, L, from the two colour coordinates, a and b. That gives the shader a convenient way to change the paint colour while remapping its shadows and highlights.

Each illustration has a reference lightness: the median of its fully selected paint pixels. For the convertible, that’s 0.750595. The shader maps that reference to the lightness of the chosen swatch. Darker pixels scale below it; brighter pixels move towards white.

The core of the Metal function looks like this, with the colour-space conversions omitted:

float highlight = saturate(
    (sourceLab.x - paintLightness) / (1.0 - paintLightness)
);

float lightness = sourceLab.x <= paintLightness
    ? targetLab.x * sourceLab.x / paintLightness
    : mix(targetLab.x, 1.0, highlight);

float3 lab = float3(
    lightness,
    targetLab.yz * (1.0 - highlight)
);

That last line matters. As a reflection approaches white, its colourfulness decreases too. A bright reflection on a red bonnet can remain nearly white, and a black car can still have readable highlights. The lighting is already baked into the artwork; this mapping makes it useful for the new paint.

The convertible's reference OKLab lightness is 0.750595. Shadows scale toward the selected navy or white paint lightness; highlights approach white. The original lightness is shown dashed. Chroma falls to zero as the highlight reaches white.
Calculated transfer curves for navy and white paint, and the highlight's chroma factor before gamut mapping. The dotted line marks the convertible's measured reference.

There’s one more detail: some combinations of lightness and saturated colour fall outside sRGB. The shader uses an eight-step binary search to reduce chroma until the colour fits, keeping its OKLab lightness and hue direction. Simply clipping the RGB channels could shift the colour we’re trying to preserve.

From MetalKit to a SwiftUI colour effect

In RetroPlayer, I hosted an MTKView in SwiftUI and managed the render pipelines, buffers and command encoding myself. For the garage illustrations, SwiftUI’s colour effects handle the rendering setup and let me provide the pixel function and its arguments. That’s the part I’d underestimated: a small image effect can be enough reason to use Metal.

The integration is an ordinary image view with one extra modifier:

let lab = color.perceptualColor

Image(illustration.paintAssetName)
    .resizable()
    .scaledToFit()
    .colorEffect(ShaderLibrary.vehiclePaint(
        .boundingRect,
        .image(Image(illustration.paintMaskAssetName)),
        .float3(lab.x, lab.y, lab.z),
        .float(illustration.paintLightness)
    ))

The Metal function is marked [[stitchable]]. SwiftUI supplies the pixel position and colour; we supply the image bounds, mask, target colour and reference lightness. The bounds let the shader sample the mask at the corresponding point, even when the same vehicle is shown as a large preview or a small garage thumbnail.

Pixels outside the mask return immediately. Selected pixels are unpremultiplied, converted from sRGB through linear RGB into OKLab, repainted, and converted back. The final blend uses the mask weight and restores the original alpha. That preserves the silhouette instead of painting over the antialiased edges.

Swift calculates the target’s three OKLab coordinates. Metal does the work for each displayed pixel. Changing a swatch changes the shader arguments; we don’t generate another bitmap on the CPU. Fifteen shapes and sixteen presets give us 240 combinations, with one source image and one mask per shape.

The rendering tests exercise all 240 combinations, compare unpainted materials against a reference rendering with an empty paint mask, and check the alpha handling. Where the surrounding mask is entirely clear, unpainted channels must stay within one 8-bit value of the original.

Your garage, your colours

Vehicle, M.D.'s stock image picker showing a blue convertible, a horizontal colour palette, the automatic motorcycle choice from VIN data, and alternative vehicle shapes. The UI is in German.
The stock image picker, captured from the actual SwiftUI view. Shapes and paint colours are independent choices.

The user-facing part is deliberately modest: pick a shape, scroll through sixteen colour suggestions, and apply. The automatic colour is a stable choice from the VIN and our palette, so your vehicle keeps its colour between app launches. You can override it, and your own photo takes precedence and stays untouched.

Meanwhile, my current motorcycle test vehicle is a simulation of BMW’s BMS-X engine ECU running in ECUmulator Studio on my test Mac. Recent work on that bench included making the ECUconnect Pro adapter deliver its identification data properly; the garage pictures were a rather welcome change of scenery after looking at CAN frames.

A real iPhone screenshot of the Vehicle, M.D. development build, showing diagnostic trouble codes and stored sensor data from the BMS-X motorcycle simulation.
A saved scan of the motorcycle simulation in the current development build on my iPhone. The paint picker is one small part of the new app.

Vehicle, M.D. brings trouble codes, freeze frames, live dashboards, saved scans and recordings to iPhone and iPad, with PDF reports to take to the workshop. OBD2 Expert’s familiar purpose, with a new implementation and a much more personal garage. I’m preparing version 1.0 for release; it isn’t available yet. The product page has the practical details.

If you guys have been using OBD2 Expert, I’d love to hear what you’d want from its successor. And if you’ve been considering Metal for a small SwiftUI effect, I hope the garage gives you a useful place to start.

Cheers, :M:

The state of things in 2026

Mickey · · 6 min read · Comment

True readers of this column may remember the previous installment — all 66 words of it, written in February 2020, a few weeks before the world went sideways. The one before that, 2019, at least had proper paragraphs. Six and a half years is the longest gap between two of these I’ve ever had, and of course it covers the years where a lot of things changed.

So here’s the catch-up, in no particular order.

Family Dynamics

Flocke, a white swiss shepherd, sitting upright and looking into the distance

There’s no doubt that time passes fast (tempus fugit, as I love to say). My daughter Lara-Marie is 15 now — can you believe that? I certainly can’t, but every time I look at her, I’m reminded.

And as if my life wasn’t busy enough, we decided to add Flocke — a demanding White Swiss Shepherd — to the equation. That has changed our family dynamics quite a bit: you can only live properly with a dog like that if everyone is on the same page.

We‘re now a family of four – with all due consequences. And if for nothing else, at least she has been good for my health.

Programming Languages

For almost six years I lived the dream of using only a single programming language: In 2020 I went all-in on Swift. In 2026 I put the boundary back: Swift for everything Apple-native, Rust for systems work and the Linux bench, TypeScript for the web, C++2x on the ESP32, Python for glue. More stacks in my head, fewer fights with the wrong tool.

Automotive

What started as “let me decode one CAN frame” ten years ago is now most of what I do. I built my own adapter hardware (OEM for B2B, but a B2C version is coming next) with the great folks from TPE-Europe, a lot of proprietary automotive code, a Linux toolbox in Rust, and a USB driver that needed sixty lines of C (shock, horror) to reverse engineer. CANcorder became a real desktop product and is shipping later this year, and CarLab is also on the way. And since spring, an agent sits at the bench with me and reads VINs off my ECUs.

Update, November 2026: Two more things have made it off the workbench: ECUmulator Studio, my desktop application for building vehicle models and having them answer a diagnostic tester over CAN, DoIP or BMW HSFZ, and ECUmulatorTouch, the little standalone touchscreen emulator I’ve wanted for years. They share the C++ diagnostic core; Touch runs it on an ESP32-S3 with my own UI and renderer. After years of putting up with other people’s ECU emulators, I’ve finally got one on my desk that works the way I want. You’ll find both, along with CANcorder, on the CANsole website.

Apps

RetroPlayer finally shipped, only seventeen years after the first Sid Player. Wellenreiter got the other 90 percent and a menu-bar app. I caved and built a weather app. And the iOS Simulator got Bluetooth, cameras and NFC because Apple wouldn’t.

Open source

Not the middleware kind anymore. Small tools instead: lsaudio and lsusd (the story), ImpossiBLE and the rest of the Simsalabim family, mcanbus and socketcan-mcp, mcangen, mcandump, canconf, ELMterm, swift-repl, Soxmate — all on GitHub, most on Homebrew. Plus the ones that make no economic sense at all: an Amiga-style tracker and a driver stack for discontinued Native Instruments hardware. I wrote about why.

LLMs

The elephant in the room. Since 2025 most of my code and a good part of this blog are typed by a model and reviewed by me. It changed the economics of finishing things more than it changed the speed of writing them. It also, for a while, changed the voice of this blog into something that wasn’t mine — I’ve since fixed that, and there is now a thorough rulebook so it doesn’t happen again.

Music

Fabrique Noir kept going after Space Travel: the albums Colonization and Tales from Enwor (both 2021), Airlock (2022) and Abduction (2023), a handful of singles in between, and the newest release, Sirens & Whales (2026) — all of it here. More is on the way, but even LLMs can’t multiply my spare time. This year, because… Books!

Books

Grenzverkehr — Wenn die Wirklichkeit nachgibt, paperback front cover

Here’s the one I’m actually proud of this year, and for once it isn’t a technical book. »Grenzverkehr — Wenn die Wirklichkeit nachgibt« is a collection of eight short stories (in german, sorry, dear international readers) about people whose carefully ordered reality gives way at one spot — not with a bang, but so casually that they first doubt themselves:

A map app that finds shortcuts that can’t exist. A city that reports in at 03:14 from inside an old system. An old woman at the gate who knows a physicist’s future because she is that future. Technically precise, dry, and — I hope — quietly unsettling.

404 pages (oh the irony), paperback and ebook. There’s a proper launch post, in german, with the whole story.

So why a non-technical book? I’ve been making up stories for as long as I’ve been programming — longer, actually; the C64’s “datasette” (tape drive) left plenty of time for it. What I never did was finish them. The 80:20 rule hit me harder here than anywhere else: the idea, the first scene, the twist were always there, the remaining eighty percent of sitting down and writing the unglamorous middle never happened, and the drafts folder grew for thirty years. What changed is the same thing that changed at the bench: talking it through with an LLM turned out to be the balance I was missing — I decide what happens and how it sounds, the model keeps me from stopping halfway. For me this is a really big deal. Bigger than any app I shipped this year.

And there’s more in the pipeline: a second collection is already in typesetting, there’s a very sweet children’s book with amazing illustrations, and — old habits die hard — finally a technical one on automotive diagnostics. All are built with Pandoc and LuaLaTeX and set in FF Meta Serif, the corporate font I’ve been going on about since 2009. Some things never change ;)

No third edition of the Vala book, by the way — Vala hasn’t moved enough, and neither have I.

Happy new year, or whatever is left of the old one. Stay tuned :)

Jetzt auch noch Belletristik?

Mickey · · 4 min read · Comment

Grenzverkehr — Wenn die Wirklichkeit nachgibt, Taschenbuch-Titelseite

A note for my international readers: this post is in german, because the book is — eight short stories of the fantastic, out now as paperback and ebook (amazon.de, but the ebook travels). A translation is not planned for the time being; the state of things post has a summary in english.

Ich habe früher angefangen, Geschichten zu erfinden, als ich programmieren gelernt habe. Das will etwas heißen, denn programmieren gelernt habe ich mit einem C64, dessen Datasette (Commodore Deutschland‘s ausgefallenes Wort für Kassettenlaufwerk) länger brauchte, um ein Spiel zu laden, als ich brauchte, um mir währenddessen ein ganz anderes auszudenken. Später kam ein Amiga 1000 dazu, und irgendwo zwischen Copper-Listen, Blitter-Minterms, MODs und Demos hat sich eine Gewohnheit eingeschlichen, die nie wieder verschwunden ist: Ich sehe ein System — ein Programm, eine Stadt, eine Abendrunde mit Flocke — und frage mich sofort, wo es brechen könnte.

Nur bin ich, grob zusammengefasst, vier Jahrzehnte lang der Frage lieber mit Code als mit Prosa nachgegangen. Ich habe Fachbücher geschrieben, über Programmiersprachen, grafische Oberflächen, Embedded Linux, verteilte mobile Systeme. Ich habe promoviert. Ich habe Artikel verfasst, die einen Sachverhalt exakt erklären wollten und froh waren, wenn am Ende kein Missverständnis übrig blieb. Ich finde das eine ehrenwerte Art zu schreiben. Sie verlangt Präzision, Geduld mit Details, und die Bereitschaft, einen Satz so lange umzustellen, bis er nur noch eine einzige Lesart zulässt.

Es ist aber auch eine langweilige Art zu schreiben – eine, die keinen Platz für die Frage lässt, die mich seit meinen frühesten Erinnerungen ebenfalls umtreibt: Was passiert, wenn die Wirklichkeit selbst anfängt, ungenau zu werden? Wenn die Route, die eine Karten-App vorschlägt, durch ein Haus führt, das es nicht geben dürfte? Wenn eine alte Frau am Gate eine Zukunft kennt, in der man selbst noch gar nicht angekommen ist?

Diese Fragen habe ich mir lange gestellt, oft auf Zugfahrten, manchmal beim Debuggen, wenn ein Fehler sich hartnäckig weigerte, dort zu sein, wo die Logik ihn vorhersagte. Aufgeschrieben habe ich sie nicht. Fachtexte hatten einen Auftrag und ein Ende. Geschichten wie diese hatten nur eine vage Ahnung von sich selbst und schienen mir zu unwahrscheinlich, um Zeit wert zu sein, die eigentlich für belegbare Aussagen reserviert war.

Angefangen habe ich sie trotzdem, immer wieder. Die Idee, die erste Szene, die Pointe — das war jedes Mal da. Was nie kam, war der Rest: die achtzig Prozent, in denen man sich hinsetzt und die unspektakuläre Mitte schreibt. Dreißig Jahre lang ist so ein Ordner mit Anfängen gewachsen, und mit jedem neuen Anfang wurde mir der Ordner ein bisschen peinlicher.

Was sich geändert hat, ist im Grunde banal, und ich sage es lieber selbst, bevor es jemand anderes tut: Ich habe angefangen, die Geschichten mit einem Sprachmodell durchzusprechen. Nicht, damit es sie schreibt — was passiert und wie es klingt, entscheide ich, und das merkt man den Texten hoffentlich an. Sondern weil die Zwiesprache mich an genau der Stelle festhält, an der ich früher aufgehört habe. Jemand fragt, wie es weitergeht, und dann muss man es eben sagen. Die erste Geschichte — ein Mann in Sitz 14A, der dem Fliegen misstraut und bald auch seiner eigenen Wahrnehmung — lag seit Jahren als halbe Seite herum (der Paranoia Rechnung tragend ist sie mir tatsächlich während der Startvorbereitungen auf einem FRA→FUE Flug eingefallen). Diesmal habe ich sie zu Ende erzählt, mit derselben Sturheit, mit der ich sonst einen Bug bis zur letzten Codezeile verfolge, nur dass am Ende kein Patch stand, sondern eine Pointe.

Aus der einen Geschichte wurden acht. Sie alle folgen demselben Prinzip, das mir inzwischen vertrauter ist als jede Programmiersprache: Das Unmögliche kommt selten mit großem Getöse. Es kommt leise, an einer Stelle, an der man es nicht erwartet — als Abkürzung, die es nicht geben kann, als Zeile in einem Protokoll aus einer Stadt, die nicht existiert. Und das eigentlich Interessante beginnt erst danach: bei der Frage, was ein Mensch mit diesem Riss anfängt, wenn ihm niemand mehr abnimmt, sich zu entscheiden.

So ist Grenzverkehr entstanden — acht Geschichten vom Riss im Gewöhnlichen, technisch genau, trocken-komisch und, wie ich hoffe, manchmal etwas unheimlich. Kein Ausstieg aus dem, was ich vorher geschrieben habe, sondern die Fortsetzung derselben Frage mit anderen Mitteln: Wo bricht das System, und was macht jemand, der genau hinsieht?

Ab heute ist das Buch da draußen. Ich bin gespannt, wo Ihr die Risse findet.

Grenzverkehr — Wenn die Wirklichkeit nachgibt – ab sofort bei Amazon erhältlich, als Taschenbuch und als eBook.

The software I could never justify building — and why LLMs changed that

Mickey · · 11 min read · Comment

I recently made the mistake of asking GitHub and GitLab what I had worked on during the previous twelve months.

The answer was ridiculous: sixty GitHub repositories with my commits, forty-two GitLab project IDs with activity, and enough overlap, mirrors, experiments, libraries and product work to make the raw list almost meaningless. Some of it was paid work. Some of it maintained software I would have maintained anyway. Neither category says much about artificial intelligence.

The interesting part was the remainder: software that made no economic sense at all.

A command that tells me which process is making a sound. A proper lsusb for macOS. A CAN frame generator that notices when the controller is lying. A bridge that gives the iOS Simulator Bluetooth, cameras and NFC hardware. An Amiga-style tracker with a real-time playback engine. A userspace driver stack for music hardware that its manufacturer has long since moved on from. A family chat that doesn’t need a server. A weather app with no ads, no account and no business plan.

These aren’t startup ideas. Most of them will never earn enough to pay for the signing certificates, never mind the time. I built them anyway — and, more importantly, I built them to a point where somebody else can use them. Without LLMs, I probably wouldn’t have.

The economics, not the intelligence

The usual argument about AI and programming is about speed: how many lines it can write, how much faster a ticket closes, whether one developer can now do the work of two. I understand why companies care about that. It is also the least interesting part of the change for me.

I have never had a shortage of ideas, and the interesting kernel of a small tool is rarely what kills it. The first version of lsaudio can ask CoreAudio for its process objects and print a table. The first version of mcangen can open a SocketCAN socket and send frames. The first version of a camera bridge can move a buffer through a Unix domain socket.

Then comes the other 90 percent: error handling, cancellation, reconnects, tests, a second platform, a native interface, accessibility, documentation, examples, packaging, Homebrew, signing, notarisation, screenshots, release automation and all the small paths only another person will take.

For commercial software, that work can be weighed against revenue — true readers of this column may remember that I spent a good part of the 2010s doing exactly that arithmetic on fixed-price app projects, and how little fun that was. For a personal tool whose total addressable market may be twelve people with the same USB adapter, the rational decision is not to begin. The opportunity cost is too high. The idea stays in a notes file, or survives as a brittle script that works on one machine.

LLMs changed that calculation. They did not make the work disappear. They made the long, cross-disciplinary tail cheap enough that finishing became reasonable. That’s why I’m excited.

Private crutches can become public tools

The cleanest examples are lsaudio and lsusd, which I wrote about in “Two questions macOS should answer”.

Both began as annoyances. What process is playing audio? What serial device did I just plug in? macOS knows the answers, but makes me dig through Activity Monitor, System Information, ioreg and shell pipelines to find them.

Without AI, I would have solved each irritation once. There would have been a script in ~/bin, a few hard-coded assumptions and no reason to show it to anybody. Instead, both became real command-line tools. They handle awkward system cases, produce machine-readable output, have tests and man pages, install through Homebrew and now have native menu-bar companions built on the same core libraries.

The idea and the platform knowledge were mine. So were the product decisions: which process is the source of truth, when killing it is appropriate, what belongs in the menu-bar panel and what belongs in the full window. The LLM supplied persistence at the parts where my enthusiasm would normally have evaporated. It kept moving through Linux compatibility, stale devices, authorisation, package metadata and documentation while I kept deciding whether the result was correct.

That distinction matters. AI did not invent a need. It let a need survive contact with everything required to make it useful.

Small tools now pass that threshold all the time. Soxmate makes SoX friendlier. swift-repl launches a Swift REPL with modules from local packages (I’ve been praising REPLs as the #1 missing feature of compiled languages for years). canconf turns a pile of SocketCAN incantations into configuration, health monitoring and an interactive ECU terminal. None of them deserves a quarterly roadmap, but all of them deserve to exist.

Hardware powers for a simulator

The more dramatic example is Simsalabim.

The iOS Simulator has no useful Bluetooth radio, camera or NFC reader, and a fresh simulator has none of the personal data that makes a real phone look lived-in. I wanted simulated apps to keep using CoreBluetooth, AVFoundation, Core NFC, Contacts and EventKit while a Mac-side provider supplied the missing world.

That became four projects:

Simsalabim brings them together in one menu-bar suite. A shared package handles sockets, provider ownership and the shell around them.

No sensible solo developer looks at that list — API interception, binary streaming, Apple framework emulation, USB readers, menu-bar UI, test fixtures, packaging and documentation — and says, “Yes, this is a small unpaid side project.” Each individual bridge is plausible. Turning four of them into a coherent product family is where the arithmetic stops working.

LLMs made the breadth possible. I could stay at the architectural boundary — the application must keep using the honest Apple API; fixtures configure the world outside it — while delegating enough scaffolding, protocol glue, repetitive UI and test construction to keep momentum. I still had to test the hardware, spot bad abstractions and reject implementations that were merely plausible. But I no longer had to personally type every unsurprising line between one hard problem and the next.

The bench became conversational

My automotive bench produced another cluster of economically unreasonable tools: mcangen, mcandump, canconf, a J2534 bridge and a Windows DLL tester called Jester.

They exist because the standard tools were always almost right for the question in front of me. I wanted a generator that could produce a deterministic million-frame run, survive BUS-OFF, and imitate the traffic shape of an ECU flash. I wanted a logger that could verify sequence integrity and remain pleasant during a long interactive session. I wanted old 32-bit PassThru DLLs isolated from the process using them. Each wish is useful; none is a business.

The loop closed with mcanbus and socketcan-mcp. Instead of making an agent drive candump and parse terminal text, I gave it typed SocketCAN and ISO-TP tools. I then watched it read a VIN from a real Scania ECU from inside a chat, first by performing ISO-TP flow control itself and then through a purpose-built primitive. That changed the texture of bench work for me: the model was no longer autocomplete attached to an editor, but a colleague inside the investigative loop.

The amusing recursion is that AI helped me build tools that make AI better at helping me. Every structured boundary replaces a page of terminal transcript with a typed result. The model spends less context on plumbing and more on the actual diagnostic question. Better tools make the agent sharper; the sharper agent makes the next tool cheaper to build.

Hobbies can be technically unreasonable again

The projects that delight me most are the ones nobody can defend in a planning meeting.

Paulinche — the demo-scene kid in me never really left — is a native macOS Amiga-style tracker with real-time MIDI recording, sample and wavetable instruments, a playback engine, classic OCS export and cycle-budget tracing against the original hardware.

Paulinche OCS showcase running in FS-UAE, with a pixel-art cornucopia and Boing Ball above four-channel playback telemetry
Not merely Amiga-inspired: Paulinche exports a real OCS player. This FS-UAE capture belongs to its visual-parity and raster-budget test workflow.

CompleteControl is a Swift/libusb stack for discontinued Native Instruments keyboards and controllers: privileged daemon, displays, LEDs, encoders, MIDI, simulators, the lot. (I’ve been a Native Instruments customer since 2009, so there’s a bit of history here.) It also gives Paulinche a physical control surface rather more ambitious than the project has any economic right to possess.

Paulinche's pattern editor and cell editor running on the two displays of a Native Instruments Komplete Kontrol keyboard
Paulinche on the real hardware: its pattern and cell editors rendered on the two Komplete Kontrol displays through CompleteControl.

A separate hardware lab grew from reverse engineering an unsuitable controller into a C++20 Stream Deck driver, renderer and simulator. CompleteControl got its own virtual keyboard as well, so the whole surface can be exercised without occupying the instrument.

CompleteControl simulator showing a full virtual keyboard, buttons, encoders and Paulinche's dual-display tracker interface
The hardware-free CompleteControl simulator exercises the same screens, encoders, buttons, lights and key events as the physical surface.

These projects are full of the kind of work that traditionally makes a hobby collapse under its own ambition. Audio, USB, real-time constraints, pixel formats, old hardware, modern Swift concurrency, C and C++, app UI, daemons and hardware-free test rigs all meet in the same repository tree. The expected revenue is approximately irrelevant. The personal value is enormous.

The same is true of the revived Retroplayer ecosystem, a Space Taxi-inspired game, a SID studio and a blink(1) LED that somehow became a library, CLI and menu-bar app with an audio VU meter and an on-air mode. I’m not building a company around any of them. I’m learning, preserving old machines, making tools I want and enjoying the craft.

Before LLMs, I rationed that kind of ambition. I chose one stack, one platform and one hard problem, because every additional surface multiplied the maintenance. Now I can follow the shape of the idea further before the carrying cost wins.

That feels less like automation and more like permission.

Software no longer needs a business case

Some projects are valuable because their audience is exactly one family.

I built a private peer-to-peer travel chat where every device, including the watch, is a proper member. I split my recipe collection into a real app with iCloud, a watch shopping list, multiple stores and suggestions learned from what we actually buy. I started writing and illustrating books with automated typesetting. I finally built the weather app I had resisted for twenty years and made it free, without accounts, advertising or tracking.

None of those ideas needed a pitch deck. What they needed was for implementation cost to stop dominating personal value.

This may be the most important change LLMs bring to software: more software can be local, specific, strange and humane. Six years ago I felt like Don Quixote, fighting wars that couldn’t be won. This is the first time in a long while that the windmills seem to be turning in my direction. It can fit one workshop, one instrument, one family or one person’s way of thinking. It does not have to grow until venture capital can see it. It does not even have to become a subscription.

The web once did something similar for publishing. Suddenly a text did not need a printing press and a viable print run to deserve an audience. LLM-assisted development lowers a comparable threshold for software. Not to zero — software still has consequences — but low enough that many more ideas can cross it.

What the model does not provide

Don’t get me wrong, though.

An LLM does not know which product should exist. It does not own the taste that says a failed station change should leave the old music playing, or that a simulator bridge must preserve the production framework API. It does not feel a CAN controller go bus-off, hear an audio click, notice that a menu-bar panel is awkward, or understand why a particular shortcut matters after twenty years with trackers.

It can also be confidently wrong. It invents APIs, chooses abstractions that compile but do not belong, misses real-time constraints and declares victory at the edge of the simulator. Hardware has been an excellent antidote to AI credulity: either the LED lights, the frame reaches the wire and the audio plays, or it doesn’t — and hardware doesn’t care about plausible-sounding explanations ;)

My job has moved upward and outward. I spend more time defining contracts, choosing boundaries, constructing tests, reviewing behaviour and deciding what “finished” means. I spend less time writing boilerplate I already understand or translating the same model through a fifth layer by hand. That’s not less engineering, it’s just a different kind of engineering.

And responsibility does not move at all. I may accept a patch from a model, but I still ship it under my name.

The measure that matters

I don’t know how to turn the repository inventory into a productivity percentage. Commit counts are a terrible unit of thought, generated lines are worse, and “hours saved” assumes the alternative was doing the same project more slowly.

Often the real alternative was not doing it.

That is the counterfactual hidden by every benchmark. lsaudio would have remained a private command. Simsalabim would have been one Bluetooth proof of concept. The CAN tools would have stayed shell fragments. The Amiga tracker, hardware drivers and family software would still be notes headed “someday”.

The output I care about is not more code. It is more ideas allowed to exist — especially the useful, joyful, economically irrational ones.

That’s why I’m so excited about LLMs. And a little uneasy — but I’ve written about that already. Anyway… back to the bench :)

Simsalabim — giving the iOS Simulator hardware powers

Mickey · · 10 min read · Comment

The iOS Simulator is a wonderfully fast place to build an app — right up to the moment the app needs something that belongs to the physical world.

Simsalabim project logo: a friendly simulator rising from a magician's hat, surrounded by hardware symbols

Bluetooth discovery returns nothing, there’s no camera, Core NFC is unavailable, and a freshly created simulator has no contacts, appointments, reminders, or photos. At that point the usual development loop ends: find an iPhone, deploy, unlock it, grant permissions, put the right hardware or test data in front of it, and repeat after every small change.

Yes, yes, real-device testing is indispensable — but it’s a lousy substitute for a tight edit/build/run cycle.

That’s the problem Simsalabim (the german “abracadabra”, in case you wondered) is meant to solve. It’s a macOS menu-bar suite that gives simulated apps useful access to Bluetooth LE, cameras, NFC tags, and realistic personal data. Depending on the module, that can mean forwarding real hardware attached to the Mac, serving a deterministic mock, or filling the simulator’s own databases with fixtures.

I’m not trying to pretend that the simulator has become an iPhone. I just want to keep ordinary development in the simulator for much longer — without replacing the framework APIs, forking the app, or filling production code with test-only branches.

It started with Bluetooth

The first member of the family was ImpossiBLE. I wrote about its original bridge and mock provider in “ImpossiBLE — BLE back in the iOS Simulator”.

The irritation was simple: an app could compile against CoreBluetooth in the simulator, but it couldn’t do anything useful with it. CBCentralManager never reached a productive state, scans found no peripherals, and every UI or protocol change forced another trip to a physical device. (And no, Apple never bothered to explain why — see my earlier rant.)

ImpossiBLE keeps the app’s view of the world intact. The app still creates a CBCentralManager, scans, connects, discovers services and characteristics, reads, writes, subscribes, and receives the familiar delegate callbacks. A small library linked into the simulator build intercepts those CoreBluetooth entry points and sends the operations over a Unix domain socket to a native provider on the Mac.

The provider can answer in two ways:

Passthrough answers “does this work with the thing?”, mock answers “does this work in every state I need to reproduce?” — and believe me, you need both.

ImpossiBLE can also capture nearby BLE devices into editable mock configurations, and a simulator app or test can upload an ephemeral fixture of its own. The fixture then lives with the code that depends on it instead of in somebody’s undocumented menu-bar selection.

Of course, none of this removes the need to test radio timing, pairing dialogs, background behavior, interference, reconnection, or device-specific quirks on hardware. What it does remove is the need to use hardware while polishing a scan list, validating a parser, exercising an error path, or taking a screenshot.

One pattern, several missing worlds

Once the Bluetooth bridge worked, it dawned on me that Bluetooth wasn’t an isolated simulator limitation at all. Camera and NFC apps hit the same wall, and empty system stores create a quieter version of the same problem.

Three columns: the app in the iOS Simulator keeps calling CoreBluetooth, AVFoundation, Core NFC and the system stores unchanged; a Simsalabim module sits on each path with a shim inside the simulator and a provider on the Mac, joined across the socket boundary; behind the provider are real peripherals, cameras and NFC readers or their mocks. Simulacrum has no shim and writes fixture data straight into the simulator's real stores.
The app keeps using Apple’s frameworks. Simsalabim supplies the missing world behind them.

Three modules share the transparent bridge model: an iOS-side library preserves the Apple framework API, a socket crosses the simulator boundary, and a Mac provider supplies either a mock or real hardware. The fourth, Simulacrum, does not need to intercept an API at all; it writes fixtures into the simulator’s real stores.

That common purpose became Simsalabim: one status item, one panel, four focused tools.

Simsalabim menu-bar panel with all four module headers visible and Simulacrum expanded
One panel, four providers. Every status remains visible while one module gets the full working area.

ImpossiBLE: CoreBluetooth, real or invented

ImpossiBLE is the most mature and most complete expression of the idea. In passthrough mode it moves BLE central-role work onto the Mac while keeping the simulated app on the normal CoreBluetooth surface. In mock mode it provides editable peripherals down to advertisements, services, characteristics, descriptors, values, notifications, security behavior, RSSI, and L2CAP channels.

Its value is not merely that a scan returns something. It makes BLE scenarios controllable. A room can contain one heart-rate monitor or twelve noisy sensors. A characteristic can require encryption. A test can carry two expected peers and one distracting stranger. The physical lab becomes a reproducible fixture without making the application aware of a special testing backend.

ImpossiBLE capture window inspecting nearby BLE peripherals before turning them into a mock configuration
ImpossiBLE can inspect the devices already in the room and turn selected peripherals into an editable mock environment.

CAMouflage: a camera where there is none

CAMouflage applies the same philosophy to AVFoundation capture. The simulator app still discovers AVCaptureDevice instances, builds an AVCaptureSession, displays an AVCaptureVideoPreviewLayer, receives sample buffers, captures photos, and scans QR codes or barcodes.

In mock mode, the camera can be a test pattern, a still image, a looping movie, or a test-owned machine-code fixture. In passthrough mode, it can be the Mac’s built-in camera, a USB webcam, or Continuity Camera. The provider sends the frames across a dedicated binary socket while session control travels separately.

That turns camera work from a physical performance into ordinary software development. A QR login flow can always see the same payload. A document scanner can be developed against a stable image. Empty, malformed, moving, and successful cases no longer depend on what happens to be in front of an iPhone at that moment.

A real Mac webcam feed appearing inside an iPhone Simulator next to the CAMouflage passthrough panel
Passthrough moves the Mac’s camera feed into an otherwise camera-less Simulator while the app stays on AVFoundation.

NFCromancer: Core NFC without the phone ritual

NFCromancer brings Core NFC sessions to life. In passthrough mode it talks to a real NFC tag through an ACR122U or compatible USB reader connected to the Mac. In mock mode it serves a library of configurable tags.

The simulator app still works with Core NFC. NFCromancer reflects provider availability, delivers NDEF messages, and even recreates the otherwise missing “Ready to Scan” sheet while a session is active. A physical tag can be copied into the mock library, edited and replayed; compatible mock content can also be written back to a real Type 2 tag.

For provisioning, pairing, deep-link, inventory, or tag-management interfaces, this makes the difference between a repeatable workflow and waving a phone over a tag after every build.

Simulacrum: make a fresh simulator look lived-in

Simulacrum solves a different class of absence. A new simulator has empty Contacts, Calendar, Reminders, and Photos libraries. That is technically correct and practically unhelpful when an app needs pickers, search results, avatars, event lists, attachments, or realistic screenshots.

One click seeds the booted simulator with fictional contacts, several weeks of events, dated reminders, and placeholder photos. Dates are generated relative to the current day, while phone numbers and email addresses use ranges reserved for examples.

There is no simulator-side package to link. Simulacrum installs a small seed agent into the booted simulator and uses the public Contacts and EventKit frameworks to write records; photos go through simctl. The result is real data in the real stores, visible to every app with permission to read it.

Simulacrum panel ready to seed 45 contacts, 80 events, 12 reminders, and three photos into an iPhone Simulator
A useful stock fixture is one click away; individual categories remain inspectable and editable.

Why a suite — and why standalone tools still exist

Each module began as a complete tool because each one is useful on its own. A BLE developer shouldn’t have to install camera and NFC machinery. The repositories remain independently cloneable, buildable, and installable, with their own menu-bar apps.

Simsalabim embeds those same provider components rather than reimplementing them. The suite is for the increasingly common case where an app touches several physical or personal-data surfaces: scan a product over NFC, connect over BLE, capture a code with the camera, then attach a contact or photo.

There is deliberately no global Mock/Passthrough switch. ImpossiBLE, CAMouflage, and NFCromancer each keep their own mode. Forwarding a real BLE device while serving a deterministic camera fixture is perfectly reasonable. Simulacrum has no persistent mode at all: choose a booted simulator and seed it when needed.

The panel is an exclusive accordion. All four headers and their status indicators remain visible, while the selected module gets the full working area. The menu-bar icon combines the state of the active hardware bridges, so traffic and modes remain visible without four separate status items.

The common plumbing lives in SimBridgeKit: socket transport, provider ownership, connection state, and the shared menu-bar shell. A standalone provider and the suite never fight silently over the same socket. Whichever one is already serving keeps ownership; the other reports that it is blocked.

The code under test should stay honest

The most important design rule across the family is that an app should not acquire a second architecture merely because it runs in the simulator.

For ImpossiBLE, CAMouflage, and NFCromancer, the app keeps using Apple’s types and callbacks. The bridge code is active only in simulator builds and becomes inert on devices. Production behavior does not depend on a parallel “fake Bluetooth” or “test camera” protocol invented by the application team.

There are still intentional test hooks for supplying fixtures. Those hooks configure the world outside the app; they do not replace the app’s interaction with CoreBluetooth, AVFoundation, or Core NFC. This is a subtle but important boundary. The test may decide which peripheral, frame, or tag exists. The application still has to discover it and handle it through the real framework contract.

Simulacrum follows the same principle from the other direction: instead of faking Contacts or EventKit inside the app, it puts data into the stores those frameworks already expose.

Getting started

Simsalabim is open source and MIT-licensed. Clone it recursively, because the suite pins the four product repositories as submodules:

git clone --recursive https://github.com/mickeyl/Simsalabim.git
cd Simsalabim
make run

The individual tools are available from their own repositories if that is all a project needs. The bridge modules require their corresponding Swift package in the simulator app; Simulacrum does not. Passthrough needs the relevant Mac hardware and permissions, while every module remains useful without physical hardware through mocks or seeded fixtures.

Simsalabim doesn’t make the simulator physically accurate. It makes it useful again for the large, important part of hardware-adjacent development that is still software: interface states, sequencing, parsing, persistence, error handling, automated tests, demos, and screenshots.

The final hardware run still matters. It just no longer has to be every run.

As usual, feedback and pull requests are very welcome — I’m sure there are more missing worlds out there. Stay tuned :)