Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
SplitDuck.com Use A/B testing to increase revenue
1

Solving Regex Crosswords with Z3

from Posts on Made of Bugs [alt+shift+b] in technology

For a while now, I’ve been fascinated by Z3 and by SMT solving more broadly. While on pat leave recently, I was reminded of the existence of regular-expression crossword puzzles, and allowed myself to get nerdsniped by writing a Z3-backed solver. I expected to spend perhaps an afternoon cranking out a quick solver; I ended up getting sucked into understanding and debugging Z3 performance, and learning far more about Z3 and about SMT than I expected.
21st Oct 2025

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from Posts on Made of Bugs

From error-handling to structured concurrency

How should we think about error-handling in concurrent programs? In single-threaded programs, we’ve mostly converged on a standard pattern, with a diverse zoo of implementations and concrete patterns. When an error occurs, it is propagated up the stack until we find a stack frame which is prepared to handle it. As we do so, we unwind the stack frames in-order, giving each frame the opportunity to clean up or destroy resources as appropriate.

23rd Mar 2026 • 1 votes
The ITTAGE indirect branch predictor

While investigating the performance of the new Python 3.14 tail-calling interpreter, I learned (via this very informative comment from Sam Gross) new (to me) piece of performance trivia: Modern CPUs mostly no longer struggle to predict the bytecode-dispatch indirect jump inside a “conventional” bytecode interpreter loop. In steady-state, assuming the bytecode itself is reasonable stable, modern CPUs achieve very high accuracy predicting the dispatch, even for “vanilla” while / switch-style interpreter loops1!

4th Jul 2025 • 1 votes
Performance of the Python 3.14 tail-call interpreter

About a month ago, the CPython project merged a new implementation strategy for their bytecode interpreter. The initial headline results were very impressive, showing a 10-15% performance improvement on average across a wide range of benchmarks across a variety of platforms. Unfortunately, as I will document in this post, these impressive performance gains turned out to be primarily due to inadvertently working around a regression in LLVM 19. When benchmarked against a better baseline (such GCC, clang-18, or LLVM 19 with certain tuning flags), the performance gain drops to 1-5% or so depending on the exact setup.

9th Mar 2025 • 62 votes
Building personal software with Claude

Earlier this month, I used Claude to port (parts of) an Emacs package into Rust, shrinking the execution time by a factor of 1000 or more (in one concrete case: from 90s to about 15ms). This is a variety of yak-shave that I do somewhat routinely, both professionally and in service of my personal computing environment. However, this time, Claude was able to execute substantially the entire project under my supervision without me writing almost-any lines of code, speeding up the project substantially compared to doing it by hand.

27th Jan 2025 • 71 votes

More in technology

Build and manage IoT projects with AI using the Arduino Cloud MCP

Setting up a remote monitoring and control project means choosing variables linking dashboard widgets, and deciding how to keep track of your device. Expanding an existing project might mean making the same change across dozens of sensors. In either case, you have a goal in mind – and a series of steps to get there. […] The post Build and manage IoT projects with AI using the Arduino Cloud MCP appeared first on Arduino Blog.

3 hours ago • 1 votes
The Path to Outlawing Parasitic Advertising

The viral question deserved answers. Here they are, objection by objection.

4 hours ago • 1 votes
The Department of Now

We need to modernization and accountability: here is how

5 hours ago • 1 votes
Traction Heroes Ep. 50: Critical Moments

In episode 50 of Traction Heroes, Harry retold a painful story. He offered to give legendary investor Esther Dyson a ride from the airport. The goal was getting his startup funded. But he got lost in conversation and missed the fact the ride was the funding meeting. I’ve had similar experiences. They can be embarrassing and sometimes (as in this case) consequential. What can you do about it? Think backwards from the intended goal. What needs to be true to get you closer? Set up conditions to help you clear that step. Then consider the next step. Every one you clear increases the probability you’ll get what you want. This episode exemplifies our goal with Traction Heroes: help others learn from the best of business literature plus our personal experiences. Often, you don’t need to make major changes to have large-scale impact. But you do need foresight. Traction Heroes episode 50: Critical Moments

10 hours ago • 1 votes
How to make money- compel companies to do your bidding

Julia Kollewe, Graeme Wearden: Trump made up to $15m on Nvidia stock after Huang’s return Donald Trump made up to $15m (£11.5m) on his holdings of Nvidia stock after the US chipmaker’s share price soared on the surprise return of Jensen Huang

17 hours ago • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in