Take advantage of Xcode’s hidden diagnostics to debug multi-threaded application code

PreviewMarkdown’s Thumbnailer component, an App Extension which generates Finder icon thumbnail previews of Markdown documents, recently started showing some odd behaviour. Tracking down the cause provided some interesting insights into writing macOS software for a multi-threaded environment.

Thumbnailer-rendered thumbnails
Continue reading

Introducing C++ programming on the Raspberry Pi Pico

When I started programming the Raspberry Pi Pico, I used the C language because I’ve worked with it before. The Pico’s SDK also supports C++, but I’ve never used C++. When I started Mac programming in the early 1990s, C was the clear choice. By the time I needed to do object-oriented programming, Apple had bought NeXT and the way to do OOP on macOS was Objective-C not C++. The Pico has given me chance to join the party.

Continue reading

How to use zmv — Z Shell’s super-smart file renamer

I’d like to introduce you — if you’re not already acquainted — to the Z Shell’s incredibly handy function zmv. If you ever need to change at the command line the names of a batch of files consistently, it’s the tool you’ll want to turn to first. It’s not well known, and having been given the nod by a colleague, I thought I’d explore and pass on some notes about taking advantage of it.

Continue reading

Phantom Slayer’s spooks get a shot of smarts

Phantom Slayer, the 1982 computer game I’ve restored on the Raspberry Pi Pico, has been updated to version 1.0.1 to give the titular spectres some extra smarts as they navigate the game maze in pursuit of the player.

Phantom Slayer's (slightly) smarter spooks
The Phantoms: certainly smarter — also more scary?
Continue reading

Enjoy some old school 3D arcade action — courtesy of the Raspberry Pi Pico

In the mid-1980s, I loved Phantom Slayer. Written for the Tandy Color Computer and made available for the Dragon 32, Phantom Slayer was a 3D maze shooter. Think a very basic version of Doom with colours but no textures. It wasn’t sophisticated, but it was quick and, more to the point, incredibly atmospheric.

The Pi Pico version of Phantom Slayer
Do you have what it takes to face down the Phantoms?
Continue reading

Hail to the Acorn Atom, the Pi Pico predecessor from 1980

If the Raspberry Pi is the BBC Micro de nos jours then the Pi Pico is perhaps the spiritual successor to that earlier Acorn micro: the Atom. So in homage to that ground-breaking pre-Beeb cased computer, here’s the latest offering from Smittytone’s Retro T-Shirt Store.

Atomic apparel
Continue reading

Fontismo updated: more fab fonts for iOS folk

A new version of Fontismo, my iOS app that lets you install a selection of fonts on your iPhone or iPad, is now available.

The fontismo logo
Continue reading

Play Hunt the Wumpus, Raspberry Pi Pico style

Here’s something a little different: a basic C project that you can follow to build a fun handheld game with a Raspberry Pi Pico. Your mission: to enter a dark cave, and then locate and destroy the monstrous Wumpus.

Locate and eliminate the monstrous Wumpus to win fabulous prizes… well, a trophy graphic…
Continue reading