P
We're nearing the end soon, I promise. Here's one that I see all the time: ... } else { var_t0_5 = temp_a0_3 - 0x140; var_a2_5 = 0xA0 - temp_a3_5; goto block_45; } } else { var_t0_5 = 0xA0 - temp_a0_3; var_a2_5 = temp_a3_5 - 0x118; block_45: var_v0_3 = var_t0_5 + 0xA0; var_v1_4 = var_a2_5 + 0x78; } So, eh, what's that goto doing there? What happened was that the compiler helpfully figured it could help with some tail deduplication; someone wrote the same code twice, and the compiler figured…
P
Another new and exciting version of our still-new package myman reached CRAN this morning, and has been built for r2u and on r-universe. The matching Python package has also been updated. The package offers twenty one hundred eighty four “My man …” posts by Kevin Kruse made on bsky during the summer of 2026. Each wave picked at one particular public persona. This package wrapse these up in the style of packages like fortunes or gaussfacts. This release regroups two new waves of posts mocking,…
P
I have just released a new version of pcsc-lite 2.5.3. pcsc-lite is a Free Software implementation of the PC/SC (also known as WinSCard) API for Unix systems. It provides an API for using smart cards and smart card readers. Changes: 2.5.3: Ludovic Rousseau 18 October 2026 pcscd.service: preserve card sessions across polkit restarts correctly decode all ATRs (fix the fix suggested by AI) Fix authorization for uid > 65536
P
Yet another way of writing for loops: var_a2_4 = ... if (var_a2_4 < 0x78) { ... do { ... var_a2_4 += 1; } while (var_a2_4 < 0x78); } This extra if is merely there because the compiler wasn't able to prove that the variable didn't start below the bound, so it can't rewrite the while-do to a do-while without that extra check. So the rewrite still reads: for (var_a2_4 = ...; var_a2_4 < 0x78; ++var_a2_4) { ... } possibly with the initializer skipped, if it comes from something complex earlier.
P
Armadillo is a powerful and expressive C++ template library for linear algebra and scientific computing. It aims towards a good balance between speed and ease of use, has a syntax deliberately close to Matlab, and is useful for algorithm development directly in C++, or quick conversion of research code into production environments. RcppArmadillo integrates this library with the R environment and language–and is widely used by (currently) 1370 other packages on CRAN, downloaded 49.4 million…
P
Let's look at the entire loop from yesterday: u16 spE10; u16 *var_v0_2; ... var_t1_2 = 0x7F; var_v0_2 = &spE10 + 0xFE; do { *var_v0_2 = 0; var_t1_2 -= 1; var_v0_2 -= 2; } while (var_t1_2 >= 0); What's going with the pointer arithmetic here? Why is it indexing out-of-bounds? The first thing to notice is that m2c doesn't really take into account that arithmetic on pointers in C is multiplied by the size of the element. And obviously, spE10 is the root of some array. So corrected, this reads: u16…
P
Anyone who's read “bro-coder” C from before that was a name will recognize this idiom: var_t1_2 = 0x7F; ... do { ... var_t1_2 -= 1; } while (var_t1_2 >= 0); Why does the loop count backwards? It's because comparison with zero is cheaper on some (many) platforms. Some people would reverse the loop manually, but compilers quickly managed to do that themselves. So you want: for (i = 0; i < 0x80; ++i) { ... } and tomorrow, we'll have a look at what's inside the loop as well.
P
A brand new release 0.1.17 of the RcppSimdJson package is now on CRAN, and has been built for r2u and on r-universe. RcppSimdJson wraps the fantastic and genuinely impressive simdjson library by Daniel Lemire and collaborators. Via very clever algorithmic engineering to obtain largely branch-free code, coupled with modern C++ and newer compiler instructions, it results in parsing gigabytes of JSON parsed per second which is quite mindboggling. The best-case performance is ‘faster than CPU…
P
The Debian LTS Team, funded by Freexian’s Debian LTS offering, is pleased to report its activities for September. Activity summary During the month of September, 20 contributors have been paid to work on Debian LTS (links to individual contributor reports are located below). The team released 41 DLAs fixing 1854 CVEs. In September, the Debian LTS Team was back to focusing on a single release: Debian 12 (“bookworm”). Debian 11 (“bullseye”) reached the end of its Long Term Support on 31 August…
P
The diffoscope maintainers are pleased to announce the release of diffoscope version 334. This version includes the following changes: [ Chris Lamb ] * Fix a crash when using the latest versions of Androguard. Thanks, hc! (Closes: reproducible-builds/diffoscope#434) You find out more by visiting the project homepage.
P
Say you see this lovely chunk of decompiled code: var_v1 = &sp10 var_v0 = D_80010040; temp_s4 = var_v1; sp110 = &sp2C sp114 = &sp30 do { var_v1->unk0 = (s32) var_v0->unk0; var_v1->unk4 = (s32) var_v0[1]; var_v1->unk8 = (s32) var_v0[2]; var_v1->unkC = (s32) var_v0[3]; var_v0 += 0x10; var_v1 += 0x10; } while (var_v0 != &D_8001040[0x3C]); var_v1->unk0 = (s32) var_v0->unk0; var_v1->unk4 = (s32) var_v0[1]; var_v1->unk8 = (s32) var_v0[2]; If you ignore the fact that m2c wrote ->unk0 for [0] (it has a…
P
Epic just announced the upcoming version 2 of their Linux implementation of Easy Anti-Cheat. It’s based on using the Linux eBPF security module to monitor what’s happening, and then a bunch of extra infrastructure to make sure this can’t be bypassed. The core part of this is requiring secure boot be enabled (ensuring that modified kernels can’t be used), using measured boot to verify that secure boot is enabled and which keys are used (to prevent you from just signing your own modified kernel),…
P
Here's one that m2c usually gets right itself, but sometimes cannot: if (var_v1_7 != 1) { if (var_v1_7 < 2) { if (var_v1_7 != 0) { spF0 = 40; } else { vram_x = cmt46->vram_x; vram_y = cmt46->vram_y; spF0 = 40; } } else if (var_v1_7 != 2) { if (var_v1_7 != 3) { Repeated comparisons against the same variable, especially in a nested form that could be binary search, should remind you of one thing: A switch. Usually, the compiler implements a switch with a jump table, but not always; if there are…
P
The twenty-second release of the qlcal package arrivied at CRAN yesterday, and has been built for r2u as well as on r-universe. qlcal delivers the calendaring parts of QuantLib. It is provided (for the R package) as a set of included files, so the package is self-contained and does not depend on an external QuantLib library (which can be demanding to build). qlcal covers over seventy country / market calendars and can compute holiday lists, its complement (i.e. business day lists) and much…
P
Welcome to the September 2026 report from the Reproducible Builds project! In our reports, we try to outline the most important things that we have been up to over the past month. As a quick recap about what problem our project intends to solve, whilst anyone may inspect the source code of free software for malicious flaws, almost all software is distributed to end users as pre-compiled binaries. The motivation behind the reproducible builds effort is to ensure no flaws have been introduced…
P
Review: Ties That Bond in Gretna Green, by Linzi Day Series: Midlife Recorder #3 Publisher: Linzi Day Copyright: February 2023 ISBN: 9798376517017 Format: Kindle Pages: 616 Ties That Bond in Gretna Green is a self-published fantasy novel and the third book in the Midlife Recorder series. As with the previous book, it picks up almost immediately after Painting the Blues in Gretna Green. Day calls the genre paranormal women's fantasy, and that sounds about right to me. There is an intervening…
P
Debian Contributions: 2026-09 Contributing to Debian is part of Freexian’s mission. This article covers the latest achievements of Freexian and their collaborators. All of this is made possible by organizations subscribing to our Long Term Support contracts and consulting services. DebConf site visit, by Stefano Rivera In preparation for DebConf 27, Stefano Rivera, Nattie Mayer-Hutchings, and Jongmin Kim from the DebConf Committee visited Asahikawa Japan. A contingent of the local team gathered…
P
A new release 0.4.29 of RQuantLib arrived on CRAN this evening, had already been built for r2u as well as on r-universe and has just been uploaded to Debian. QuantLib is a rather comprehensice free/open-source library for quantitative finance. RQuantLib connects (some parts of) it to the R environment and language, and has been part of CRAN for twenty-three years (!!) as it was one of the first packages I uploaded to CRAN. This release of RQuantLib brings two new calendars (Malaysia,…
P
(This is an updated version of an older post - the introduction remains the same, the technical details are different) Linux draws a distinction between code running in kernel (kernel space) and applications running in userland (user space). This is enforced at the hardware level - in x86-speak1, kernel space code runs in ring 0 and user space code runs in ring 32. If you’re running in ring 3 and you attempt to touch memory that’s only accessible in ring 0, the hardware will raise a fault. No…
P
The v0 register on MIPS is special in that it is the return register (like rax is on x86-64), so when you see code like this: if (x == 3) { var_v0 = 1; } else if (y == 4) { ... var_v0 = 3; } var_v0 = 5; return var_v0; then you have to consider the possibility that the intended match is: if (x == 3) { return 1; } else if (y == 4) { ... return 3; } else { return 5; } Whether you put the last return in an else block or not is irrelevant for the match, of course, it's purely a matter of taste.
P
This is more of a note to myself since I keep forgetting and "rediscovering" this technique every time I need it, but if it helps you, great!The JavaScript way is to toggle displaying the menu based on a button click. For instance, here's an example in Svelte:[This interactive/preview is only available on the website.]<script lang="ts"> let showMenu = $state(false); </script> <button onclick={() => (showMenu = !showMenu)}> {#if showMenu} Hide menu {:else} Show menu {/if} </button> <nav…
P
Today, for something completely different: s.x = (s16) ((s32) (temp_v0 << 0x10) >> 0x11); MIPS has 16-bit loads and stores, but not 16-bit (signed) arithmetic, so if it wants to do that, it needs to sign-extend to 32-bit first. And it does that by first shifting up by 16 so that the 16-bit sign bit is at the 32-bit sign bit, and then it can do an arithmetic shift afterwards. So what you want is: s16 temp_v0; s.x = temp_v0 >> 1; Sometimes, it can be pretty stubborn, and you'll need to go through…
P
I read Ruben Schade's notes on underlining and wanted to add more, as adding a border-bottom and leaving at that seemed incomplete to me.ModernOf course, you could just use the modern choice. Here, I've shortened what Schade uses into one line of CSS (because I can). As noted, this is a fairly new feature so not every browser supports this.[This interactive/preview is only available on the website.].underline-me { text-decoration: underline red solid 3px; }WorkaroundsSince some browsers don't…
P
Review: Daggerbound, by T. Kingfisher Series: Swordheart #2 Publisher: Bramble Copyright: 2026 ISBN: 1-250-40009-0 Format: Kindle Pages: 436 Daggerbound is a secondary-world fantasy and a sequel to Swordheart, although it follows different protagonists for most of the book. It's also a sort of sequel to the Clocktaur War duology in that one of the protagonists was a protagonist of those books. T. Kingfisher is the pen name Ursula Vernon uses for her adult fiction. Learned Edmond was once a…
P
For over ten years, the only way I have had of knowing what our solar panels are doing has been an impulse monitor on the generation meter, counting the flashes of its LED. It has always been a bit flaky due to battery changes or loose connections, and there has never been a way to see solar generation alongside the energy used by the rest of the house. This week I have fixed that, by building a small ESPHome sensor which talks directly to the inverter. I am still reeling slightly: with AI…
P
As a casual user of Gmail, I find its ability to recognize when I’ve received tickets, invoices, and flight confirmations, and to display this information in a structured way, very useful. Flights appear directly in Google Calendar, parcel delivery statuses are tracked, and reservations are easy to find at a glance. However, my main email address is not Gmail, and I don’t want to migrate to Gmail for a number of reasons (privacy, data sovereignty, vendor lock-in). At the same time, I missed…
P
A brand new release 0.1.16 of the RcppSimdJson package is now on CRAN, has been built for r2u, and is updated on r-universe. RcppSimdJson wraps the fantastic and genuinely impressive simdjson library by Daniel Lemire and collaborators. Via very clever algorithmic engineering to obtain largely branch-free code, coupled with modern C++ and newer compiler instructions, it results in parsing gigabytes of JSON parsed per second which is quite mindboggling. The best-case performance is ‘faster than…
P
My Debian contributions this month were all sponsored by Freexian. You can also support my work directly via Liberapay or GitHub Sponsors. OpenSSH I worked with upstream to remove libselinux linkage from /usr/sbin/sshd. I applied a fix from Mark Robillard Jr to fix reload logic when using sysvinit. groff I upgraded from 1.24.1 to 1.24.2, which fixed a few command injection security vulnerabilities. parted I upgraded from 3.7 to 3.8, which fixed CVE-2026-89085 and CVE-2026-89088. Python…
P
Greg KH gave a great lecture for Kernel Recipies 2026 about the use of LLMs to find and fix bugs in kernel code [1]. I recommend that everyone watch this and I also think it’s important to note that hardly any of the lecture is really specific to kernel coding, it’s just that the Linux kernel is one of the highest profile large free software projects so it gets more attention than most projects in both good and bad ways. One side note that Greg made at 20:30 is about the natural tendency to…
P
Currently a scam group is sending out email to the administrators of web sites that link to a variety of dead domains. They claim to be the legitimate operators of the dead domains in question and request that the links change to mirrors of the web sites under en-html.org. Their end goal appears to game search engines by getting links from a lot of old web pages and later use that high ranking for selling SEO optimisation. If you have made the mistake of linking to something under en-html.org…