Today is a sad day. Tim Peters has died.
python3 -c "import this"
I remember back in the day, I was surprised that a developer had invented an algorithm named after him: Timsort. That was one of the reasons I am a developer nowadays.
Today is a sad day. Tim Peters has died.
python3 -c "import this"
I remember back in the day, I was surprised that a developer had invented an algorithm named after him: Timsort. That was one of the reasons I am a developer nowadays.
I’ve heard a lot of parallels: “the advent of AIs is like the advent of X back in the days”. I think that is simply the advent of computers. Do you remember what people were saying about the first computers?
Computers are useless. They can only give you answers.
Pablo Picasso 196x
But:
Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke, 1962
An AI is helping me right now to fix English errors I often make. As well as the computer I am observing now, let me write it. Different helps, but the same thing. People were negative about new computers. Many jobs became obsolete, new job types emerged, and the world changed for the better.
Or not?
The data center where this article’s database will be stored generates more pollution than if I had typed it and hidden the paper in a drawer. This is the world. It changes, with pros and cons. Machines help humans and were invented for that purpose.
No, you don’t, because something does things for you, and you become smarter and smarter.
I started writing a book about AIs and other cyberpunk-related stuff many years ago (+20). Natura Macchina (in Italian). The world where the protagonist lives has no computers. You can’t have one. People have only terminals. All the computation on your not-so-smartphone and whatever computers are done in the government-controlled central data center.
Those are empty machines, with only enough processing power to display the pixels downloaded from the net. Having a real computer meant fighting for it, building it, and having your AI work offline.
Is this a dystopic future? Of course, because I love dark books.
When WoW came out, I would take the car and drive 40km to a place with an internet connection, then 40 km back. Then ADSL arrived, and that place closed. If I think about it today, I do it with a smile, and I’m sure I will do the same in the future, think about when I wrote this post.
Until next time. And thanks to all the AIs involved in writing this post. Much appreciated.
People hated books when they first came out. They hated horseless carriages. So any new disruptive technology will take a little while for society to digest it, also to evolve.
Matt Mullenweg, 2026
I’ve seen people hating a lot of things when they came out. Like credit cards, crypto, JavaScript private elements syntax, or even a dish in their favorite restaurant that slightly diverges from the one they have eaten for years.
Even I hated things, don’t get me wrong. Even futile things, like the menu arrangement in the new iteration of my favorite OS.
New technologies, and their misuse12, bring both positive and negative effects. But in this case, the positive ones are a couple of magnitudes more than the negative ones.
The world evolves, or better, needs to evolve. Don’t you like how it evolves? So react, and build something better for you and for the rest of the world.
I found that BibLaTeX nowadays supports URLs, Unicode characters, and all the modern stuff. I’ve always been a great LaTeX fan, since my university days. My book had a very complex millimeter-precise pagination such as:
\setlength\stockheight{210mm}
\setlength\stockwidth{148mm}
\setlength\paperheight{\stockheight}
\setlength\paperwidth{\stockwidth}
\setlength\textwidth{\lxvchars}
\setlength\textheight{1.61803398875\lxvchars}
\setlrmargins{*}{*}{1.61803398875}
\setulmargins{\spinemargin}{*}{*}
So, why not create a WordPress plugin that generates a BibLaTeX entry of the current post? But, even more funny, why not have something do it for me?
I work for Automattic, but it doesn’t take away the fact that I can be happy to use one of our products.
Telex is a “AI-Assisted Authoring Environment for WordPress Blocks”. Today it will help me as a not so popular request.
The prompt:
I want a block that output a biblatex entry of the current page. It should have this identifier "zaerl{YEAR}-{POST SLUG WITHOUT YEAR, MONTH, DAY}.
As author "Francesco Bigiarini"
As title "The title of the post"
As date "The date of the post"
As url "The url of the post"
as urldate "The date of the post"
For example, for this post: https://zaerl.com/2025/08/23/unicode-buffering-and-printf/
The output should be:
@article{zaerl2025-unicode-buffering-and-printf,
author = {Francesco Bigiarini},
title = {Unicode Buffering and printf},
date = {2025-08-23},
url = {https://zaerl.com/2025/08/23/unicode-buffering-and-printf/},
urldate = {2025-08-23}
}
The block should be output in fixed width font.
And it generated:
@online{zaerl2025-biblatex-citation-demo-page,
author = {Francesco Bigiarini},
title = {BibLaTeX Citation demo page},
date = {2025-11-17},
url = {https://playground.automattic.ai/scope:biblatex-citation/biblatex-citation-demo-page/},
urldate = {2025-11-17}
}
Isn’t this cool? I downloaded the .zip and tried it on a blank Playground site and it was working. Just needed a second little request. To be sure the style will blend well with the site.
Use the "code" block as the base of the block and not custom CSS or HTML
And it was done. You can find the Telex project here. And the result after this paragraph. It took more time to write this post than to have this new plugin.
Some years ago, I was at one of those shops where you can buy useless, but funny, objects that you can forget in one of your desk drawers. There was one hand-made of wood, that kind of pretty, creepy one, you can move parts, and that 99% of the time has been positioned to flip you.
Could it have been a good tool for someone who works with drawings? But then I thought that you already have that. It’s your own hand.
When creating something creative like a painting or that handy JS tool, the truth lies somewhere in the middle. Software engineering has a long history, and when creating something new, someone has probably already done it.
I am using FreeBSD on my personal computers these days, and it has jails since 2000, 13 years before Docker. Every day it’s a wow moment. And you know why? Because they are at the looping points 2 and 3.
Creating great software means concentrating on that dream and never reaching point 4, because once you get there, it’s challenging to do. There’s no need to add that many new things to a project to evolve it, because you must know when to stop. And once too many are added, stopping is impossible.
One day, during a weekend, I was writing some code for my Mojibake library when I saw a strange output in my CLI for the U+10C0 codepoint chosen by random.
./mojibake.sh char $'\U10C0'
Codepoint: U+10C0
Name: GEORGIAN CAPITAL LETTER HAE
Character: Ⴠ
Hex UTF-8: E1 83 80
NFD: Ⴠ
NFD normalization: U+10C0
NFC: Ⴠ
NFC normalization: U+10C0
NFKD: Ⴠ
NFKD normalization: U+10C0
NFKC: Ⴠ
NFKC normalization: U+10C0
Category: [0] Letter, uppercase
Combining: [0] Not reordered
Bidirectional: [1] Left-to-right
Plane: [0] Basic Multilingual Plane
Block: [0] Georgian
Decomposition: [0] None
Decimal: N/A
Digit: N/A
Numeric: N/A
Mirrored: N
Uppercase: N/A
Lowercase: U+2D20
Titlecase: N/A
Uh? The Unicode Georgian block (MJB_BLOCK_GEORGIAN) has ID 36, and not 0. Even stranger the name of the block was correct. Just the ID was wrong. I made a quick database query and the data was ok:
select id from blocks where name = 'Georgian';
36
Mojibake is in the alpha status. I probably overwritten the memory or something in the mjb_character_block function?
block->id = (mjb_block)raw_id;
No data truncation or similar here. An enum is an integer in C and sqlite3_column_int return an integer. Did I overwrite something with the strncpy? Nothing. So I added an innocent printf.
printf("ID: %d, block.id)
ID: 0
Nothing changed. Or at least I tought that nothing changed. I output the data inside the CLI code:
printf("ID: %d, block.id)
print_value("Block", 1, "[%d] %s", block.id, block.name);
ID: 0
[36] Georgian
Now it was 36? Only because I’ve added a printf before? I commented out all the code and just kept that two output statements.
mjb_codepoint_block block = {0};
bool valid_block = mjb_character_block(character->codepoint, &block);
printf("ID: %d\n, block.id)
printf("ID: %d\n, block.id)
ID 0
ID 36
?
mjb_codepoint_block block = {0};
bool valid_block = mjb_character_block(character->codepoint, &block);
// printf("ID: %d\n, block.id)
printf("ID: %d\n, block.id)
ID 0
🙂. The first time I called a printf the value was zero, the second one it was the right one.
How is it ever possible that printf print something and the same printf one row below something else? The printf function must not change the values it receives. But, what is the printf function?
The printf, like other functions of the stdio.h family outputs a string to a FILE*, in this case stdout. It has a buffer that is flushed when you output a newline. Should this buffer be the problem? Well… yes? By forcing a fflush I solved the problem.
I checked the macOS open source internals but after a while, I gave up. I began working on my library to see if I can solve some of those Latin-1 screwed up èéò characters family.
This is just a little story, nothing more.
I like parts of developing that are not very trendy nowadays. Whatever LLVM I use makes a lot of very basic mistakes, produces slow code, and generally makes code that makes me smile.
I had time for myself for the last two days, and I asked Cursor to count the commas in a string, in C. I know how to do it. That’s one of the code snippets in a “Learn how to program in C in ten lessons”.
And it… looped the string, created another with just commas, and ran strlen. Strange? Python style? And I tried again to ask, and it made a code that incremented a variable, like everybody would do.
Does it not have a billion tokens for talking with me? For giving me hints in the context of my not-trendy projects? Was it I who was not gentle enough to explain my needs well?
I took a Campari with the sound of the Arno river in the background, thinking about the servers on the other side of the ocean that worked for me, producing a bit of heat and noise to suggest that strlen.
You have to enjoy the little things in life. And that drink was just at the right temperature.
Until next time.
In Italy we have something that I call the WhyUPLUSC388 curse, AKA the Alt+0200 curse, AKA “how do I write PERCHÉ“.
That LATIN CAPITAL LETTER E WITH GRAVE and LATIN CAPITAL LETTER E WITH ACUTE, together with few other accented characters and the euro symbol are the only characters of the latin-1 encoding used all around the place.
Why? Yes, literally “WHY”. That’s because “WHY” in italian is written “PERCHÉ?”
But there’s a problem.
Dov’è la lettera grande con l’accento al contrario? (Where is the big letter with the reversed accent?)
Everybody writing something using a Windows/macOS keyboard
Is it easy to write É on a macOS keyboard? Of course not. You must hold shift+option (AKA alt) and press V. Or shift+e+wait-one-second+2.

Well, you must type Alt+1 -> 4 -> 4 or Alt+0 -> 2 -> 0 -> 1. One after another.
People don’t want to waste time searching for something that can potentially break that system written in Latin-1 that then encodes in UTF-8, maybe later in ASCII, and who knows what. So they write something similar:
What do we learn about this? When there is a solution to a problem widely accepted by everybody, but not the real solution, then often there is no effort to find a real solution upstream.
Until next time.
I remember when I was in high school (I am from the 80s) and had no money to buy a Sega Saturn. It was the best! And I didn’t like Sony; I’m not sure why. Today, I have my first PlayStation, the first after 30 years. But this is another story.
I started working as a waiter at 16 years old just to buy all the stuff I needed. I worked on Saturday nights, then went to a club, and returned to work on Sundays and school on Mondays.
After I started working, I began to understand the meaning of money and that excessive attachment to things is the source of all evil. So, I gave up the idea of spending my money on consoles, electric guitars, or whatever popped up in my mind.
Fast-forward to when I was 18 years old. My father bought me a computer. It was a Celeron 300A, easily overclocked to 450Mhz. It was my start as a programmer. One day (I was 28 years old), I found that Wipeout 2097, the second installment of the Wipeout series, was ported onto Windows. Wow!
Yes, it was. The problem was that my hover car was undrivable. It was too fast and impossible to turn corners without hitting the sides. So, I needed to limit the frame rate to 30 fps.
For obvious reasons, I didn’t want to patch the .exe and redistribute the file, so I discovered that I could inject a DLL on Windows.
I’ve lost my old code, but if I remember well, I disassembled it, found the main rendering loop, and tried a couple of solutions. Both working:
I was thrilled! It was working well, and the techno soundtrack was great. The game wasn’t that funny, but disassembling was by far the most amusing thing I had ever done.
I then started working on adding the network mode on Guilty Gear X. Why not create a tool to start games and patch them on the fly? There were plenty of poor ports on Windows. People could have a simple tool to start the game executable and have it patched on the fly.
I created a small C program called Gear using the Win32 List View control, a Wipeout 2097 launcher, and the promise for the Guilty Gear X one. You can see the game, click on the executable icon, and enjoy your game. It had as an icon the frame that appears on screen before Justice uses the Overdrive Attack.
I went to WipEoutZone forum and wrote about it. I got this response:
No matter how old these games are, they are still owned and copyrighted by Sony, who are still actively selling them for different consoles than they were originally produced for. IIRC, the copyrights specifically forbid any modification of the games without permission from the copyright holder.
I also received a cease and desist letter promise by email, so I was done playing around with copyrighted materials.
But it was fun.
I updated my projects page with an extensive list of my spare-time projects. It was fun and exciting to find my old projects.