news
Programming Leftovers
-
Earthly ☛ One canary rule, three systems to reconcile
A canary setting can pass inspection while the next release skips the canary. The application changes in one repo, rollout configuration lives in another, and the service’s criticality is recorded in a catalog. The engineer making the change may never open the other two.
-
Lonami ☛ Reinventing the wheel to draw wide tree hierarchies
I recently spent a week trying to figure out how to display a very large inheritance tree on a limited amount of screen space.
As great as libraries like D3 are to create hierarchies, trees or clusters, they tend to like to put all nodes of a certain depth or all leaf nodes together. This just won't cut it!
Placing all nodes of a certain depth together will lead to very wide diagrams when there is a lot of siblings. Now, for this particular case, you could render the inheritance tree growing from left-to-right, as opposed to the usual top-to-bottom. But that's no fun. Trees were never meant to grow sideways.
-
Réécoute ☛ My experience writing automated tests for a SPA | Tech blog
I think I managed to build quite a nice and interesting test suite recently; I’ll do my best to describe it in this post.
It’s basically just a bunch of notes, and the code is not open-source, but I think these explanations can have more value than raw source code, especially if you want to adapt some of these ideas for one of your own projects.
-
Perl / Raku
-
Rakulang ☛ Rakudo Weekly 2026.39 Mainstreamed
A major step towards releasing the next language level of the Raku Programming Language (tentatively called “6.e”) has been achieved with the 2026.09 release of Rakudo: it makes the new Raku grammar/actions (based on RakuAST) the default when running Raku programs.
-
[Old] MWL ☛ July’s Janky Sausage
So I wrote a simple Perl script to extract sponsor names and addresses from an export spreadsheet and send a confirmation mail to the sponsor. No, I’m not going to put this on github because 1) github takes money from ICE, and 2) some poor bastard might try to use it. When I order the sponsor gifts I’ll use the script to correct everybody’s shipping address.
-
-
Python
-
Scientific Python Blog ☛ Blog - Making np.searchsorted up to 25× Faster in NumPy 2.5
np.searchsorted is NumPy’s implementation of the binary search algorithm. This is one of the fundamental search algorithms and is used in the Python scientific ecosystem for functionality such as histogram computation and interval lookups. Any optimization benefits libraries such as SciPy and scikit-learn, as well as the broader Python scientific ecosystem.
-