news
Programming Leftovers
-
Dmitri Sotnikov ☛ (iterate think thoughts): Swapping Jolt's sorted collections to a B+tree
Until recently, sorted-map and sorted-set in Jolt were a straight port of Clojure's PersistentTreeMap, which is backed by a persistent red-black tree. Using a red-black tree has worked well for Clojure, and it provides a solid foundation for backing these data structures. However, red-black trees have a downside, which is that every entry gets its own small node, meaning that every step of a lookup follows a pointer to a different place in memory.
So, naturally I got curious to see if a different data structure could be used for the same job which might have a lower overhead. Turns out that a red-black tree can indeed be swapped out for a B+tree here. Updating Jolt's sorted collections along with the java.util.TreeMap and TreeSet shims to use a persistent B+tree dropped peak memory by 40% while making most operations faster at every size, as we'll see later in the benchmarks.
-
University of Toronto ☛ Ways to not know your password despite using it
Every so often, one of our people approaches us because they've forgotten their password and now they need to use it, so they need it reset. Some of the time, their account is still in use despite not knowing the password any more. Once upon a time, this would have been a sign of a compromised account. These days, not so much. The obvious way to be logging in to your account despite not knowing the password is to have it memorized in programs, and these programs store it securely so they won't show it to you any more (this is most common on phones and tablets). Then there's SSH keys; you can have established SSH keys for an account but have forgotten the password for it, because it's been a long time since you needed it for your regular access.
-
Julian Andres Klode ☛ Introducing apt-core-json
Today I finalized apt-core-json, the first in a new set of core libraries for APT to bring APT into the new decade,
The running joke is that the “Core” stands for “Coroutines and Event Loop”.
“\u0000” as well as literal NUL bytes in input strings. -
MaskRay ☛ MaskRay • Moving LLVM's llvm::cl options to TableGen
Since September, the number of llvm::cl:: option definitions in llvm/lib dropped from about 2,860 on release/23.x to about 1,070 on main. Most of the difference moved from global llvm::cl::opt objects into per-library structs declared in TableGen and stored per LLVMContext; the rest were deleted. This post covers why, the design, what it cost, what embedders need to change, and what is left before the LLVM 24 branch.
-
Perl / Raku
-
C.J. Adams-Collier: Why Perl Lost the Cloud Era, and How Native gRPC, Protobuf, and GenAI SDKs Can Bring It Back
Disclaimer: The opinions stated here are my own, not those of my employer.
Every so often, someone asks why Perl—once the undisputed duct tape of the Internet—faded from mainstream greenfield software development. Was there a single cultural flashpoint that “canceled” Perl? Was it the fifteen-year wait for Perl 6? Or did Damian Conway’s Perl Best Practices,
Perl::Critic, and CPAN’sKwaliteemetrics simply arrive too late? -
Raku Weekly News ☛ Raku Weekly 2026.47 Foundation Models
Anton Antonov has created an interface to Apple’s Foundation Models allowing one to do on-device LLMs, as well Private Cloud Compute models. In Using Apple’s Foundation Models in Raku Sessions they describe what you can do with that.
-
-
Java/Golang
-
Daniel Lemire ☛ Seeing the machine code of your Java program, with a few lines of Java
When I want to know why some Java code is slow, I usually reach for JMH. JMH is great to time a function. But a timing tells you how slow the code is, not why.
-
-
R / R-Script
-
Data Science Guts ☛ Seeing nucleotides as images – Data Science Guts
In 2022 I spent a few months on a problem far from anything I had done before: finding single letters in the tails of RNA molecules, from the electric current of a nanopore sequencer. The network I built then is the classifier inside Ninetails, an R package from Natalia Gumińska and her colleagues at the IIMCB in Warsaw. The paper describing it came out in 2025 (Gumińska et al., Nature Communications).
I am not a geneticist, and this post does not pretend otherwise. What hooked me was the computer vision: the signal is a time series, the trick that made it work was to turn it into images, and that trick is worth knowing well beyond biology.
This is the first post of a short series. Here: just enough biology to follow along, what the images are, and the whole pipeline again - from public raw data to a trained network - to check that the 2022 result holds up.
-