Nat Pryce

@natpryce
684 Followers
116 Following
741 Posts
Co-author of Java to Kotlin: a Refactoring Guidebook, and Growing Object-Oriented Software Guided by Tests

Going to the UK polls today? Remember, Labour is the party that just greenlit Palantir being in charge of all the health data in our NHS:

https://www.theregister.com/paas-and-iaas/2026/05/07/minister-gives-palantirs-nhs-platform-a-clean-bill-of-health/5230642

While the Greens are the party that has put Palantir on notice that all of its contracts will be torn up and the company will be ejected from the country after the next general election:

https://greenparty.org.uk/2026/01/22/zack-polanski-tells-defence-surveillance-corporation-palantir-to-pack-its-bags-and-get-the-hell-out-of-the-nhs/

Minister gives Palantir's NHS platform a clean bill of health

£330M contract defended as value for money despite concerns over IP and lock-in

theregister

We’re very proud of this year’s training day, with content from world-renowned trainers:

* @emilybache - Controlling Legacy Code with Approval Tests
* @lisihocke - Secure development lifecycle
* Gemma Cameron - Bringing User Stories to Life (@ruby_gem)
* @claresudbery - Using TDD to get Better Results from LLMs/AI
* Jon Jagger - TDD with Cyber-dojo
* Duncan McGregor & @natpryce - Mercilessly Refactoring AI Code
* Tim Ottinger - Value Stream Mapping (@tottinge)

It'd be fab to see you there.

Goyal et al 2026: "EnCoDe: Energy Estimation of Source Code At Design-Time" https://arxiv.org/abs/2605.00504 "Our results demonstrate stable, reproducible block-level estimations, with regressors achieving R^2 = 0.75 and classifiers achieving 80.6% accuracy in identifying energy hotspots, enabling developers to localize and address inefficient code regions early in the development process without execution."
EnCoDe: Energy Estimation of Source Code At Design-Time

Energy efficiency has emerged as a vital attribute of software quality, with significant implications for both environmental sustainability and operational costs. However, existing profiling tools operate only at runtime and coarse granularity, typically capturing energy at the process or method level. Such tools fail to expose how small code blocks, such as functions, loops, and conditionals, contribute to energy consumption, preventing developers from reasoning about and comparing the energy efficiency of programming constructs during design-time. To address this gap, we propose EnCoDe, a methodology for fine-grained, design-time energy estimation, with the following key contributions: (1) PowerLens, a novel measurement methodology that achieves reliable sub-millisecond energy readings for small code blocks; (2) Extensive empirical study on code blocks extracted from over 18,000 Python programs, uncovering linear and non-linear relationships between energy consumption and static code features such as structural, complexity, density, and contextual characteristics, resulting in a first-of-its-kind fine-grained dataset; and (3) Predictive modeling, in which machine learning models are trained on these features to accurately estimate and classify block-level energy consumption at design-time. Our results demonstrate stable, reproducible block-level estimations, with regressors achieving R^2 = 0.75 and classifiers achieving 80.6% accuracy in identifying energy hotspots, enabling developers to localize and address inefficient code regions early in the development process without execution.

arXiv.org

Markset (my tiny macOS app for previewing Markdown in Finder) is deliberately small. Native Swift, no SPM packages, no Electron. The landing page followed the same stance: plain HTML, no build step, no React. Turns out the whole lot* fits on a floppy, under 1.44 MB combined. Not the goal, but a nice side-effect

*We can ignore the video right? All friends here.

Look, I'm not saying it's the only programming book you need, but it's a contender

Built Markset: tiny native macOS app that renders Markdown with Finder's QuickLook (press Space). No app to open, no file associations to change. Free.

If you live in .md files: Obsidian, READMEs, notes, I'd love to know what breaks.

https://markset.app

#macOS #markdown #indiedev #ObsidianMD #typography

Markset — Beautiful Markdown previews in Finder

Typeset PDFs with one click. Without changing your editor.

DDD Europe is beautifully designed and curated (take a look at the schedule, and watch talks from past years, to build antici-pa-tion!), in a gorgeous city full of history, right at the train station in Antwerp, Belgium.

These are the years of building community, and this is a unique conference focusing on the practices of system design and modeling (and Domain Driven Design in particular). Highly recommended!

Follow @dddeu for updates

RE: https://mstdn.chrisalemany.ca/@chris/116352646031251286

Great article. BYD seemed like just another car maker but looks like it may be a lot more.

I like the phrase : “Physics does not negotiate.”

Similar to one a colleague used 20-ish years ago “you can’t negotiate with the code”

People are using « tokens used » as productivity metric ?! « Tokens used »?!?!? That’s like, the first time « lines of code created » gets beaten for the « worst metric of software engineering » 🫠
"We need a sovereign AI strategy!" Fuck that and fuck you. If you don't have an every child sleeps in a warm bed under a safe roof and studies on a full stomach strategy, if you don't have an everyone who wants an education can have one strategy - and you can have all of those for one percent of your sovereign AI strategy - your sovereign AI strategy is worth nothing.