news
Programming Leftovers
-
James G ☛ Reasons why your code changes are not showing up
This afternoon I started to draft a list of reasons why code changes might not show up. This list is specifically tailored to web development. Here are the ones with which I came up: [...]
-
Marcin Juszkiewicz ☛ How to start contributing to FOSS projects
At first, check which projects you are using. And then go through a simple checklist: [...]
-
Jussi Pakkanen ☛ Jussi Pakkanen: A slightly better ThreadPoolExecutor in Pystd through types
In the previous post we looked at a simple multithreaded task executor that behaves roughly like its Python standard library counterpart. The biggest missing feature was being able to return values from run tasks via future objects. In a fully dynamic language like Python this is fairly straightforward, whereas in a language with static typing, such as C++, things are trickier.
The simplest solution is merely to make your Executor class a template, parameterized by the function you want to run. The obvious downside is code bloat. If your program has an Executor<Foo> and Executor<Bar>, all of their code is duplicated in the binary, even though 90% of it is probably the same. Also, due to the magic of template instantiation, compilation is slower. Another downside is that you can't run tasks that do different things, especially having different return value types, with one Executor.
-
Tangled Labs Oy ☛ The federated code forge
For most of the past two decades, the code forge has been where projects live: where code is hosted, where changes are reviewed, and where contributors find each other. Forges offered convenience in exchange for centralisation.
But the centralised forge is crumbling. Relying on someone else for uptime, for features, and to be a good steward of your code hasn’t played out well. What has stood the test of time is email: Git to move the code, and email — an open protocol — to talk about it. At the cost of user experience, however.
-
Rust
-
Niko Matsakis: 'Trust but verify'; or, 'the correctness ratchet'
The name of the game in agentic development is figuring out how to clearly tell agents what you want– and then how to be sure they follow through. Lately I’ve been tinkering with an interesting technique around this that I’d like to share.1 I call it “trust but verify”2.
The basic idea is that sometimes you have things you want to “verify” but they can’t really be mechanistically checked. In that case, you let your agent do its best. But you also have it create an evidence file that contains the inputs it drew on to make that decision along with its rationale. Then you gate your CI on checking that these evidence files exist and that the inputs are accurate. Those checks are deterministic and cheap. The rationale itself is natural language and can’t be checked.
-
-
R / R-Script
-
R Works ☛ September 2026 Top 40 New CRAN Packages
Four hundred seventy new packages were submitted to CRAN in September. Here are my Top 40 picks in seventeen categories: Agriculture, Causal Inference, Climate Studies, Computational Methods, Ecology, Economics, Epidemiology, Genomics, Machine Learning, Medical Statistics, Meta-Analysis, Networks, Phylogenetics, Statistics, Surveys, Utilities, and Visualization. The CRAN Top 40 is an attempt to sort through the massive amount of new packages submitted to CRAN every month and find forty, interesting packages that demonstrate the broad use of the R language, and appeal to a wide audience of potential users. If you take the time to scan through the post, I hope you will find something interesting and maybe even useful.
-