Skip to content

What’s happening in systems software

Kernel patch series, releases and news across kernels, compilers, runtimes, storage, networking and virtualization.

posts from people's personal blogs, newest first
Eli BenderskyBlog

Monads in Lean

This post demonstrates how to use monads in the Lean programming language (Lean 4, to be specific). If you're not familiar with Lean, this part of the language is very similar to other functional programming languages, like Haskell or OCaml. Motivating example - evaluating…

Daniel StenbergBlog

30 years of Internet transfers with curl

Thirty years ago, on November 11, 1996 the young Brazilian student Rafael Sagula posted the source code for his tiny HTTP download tool online. That was httpget 0.1: a little over 100 lines of C code. Bare bones source code with almost no error checks and limited functionality.…

Daniel LemireBlog

Telling your number parser what to expect

Our fast float library parses numbers such as -731.51 into binary floating-point values. It is part of GCC’s C++ standard library, among others. It is fast: often a few nanoseconds per number. Parsing a number means making decisions. Is there a sign? How many digits are there?…

Arthur O'DwyerBlog

Fun with designated initializers

C++20 (via P0329) introduced a relatively nerfed form of designated-initializer ( .field = 42 ) syntax. Unlike C, C++20 doesn't support out-of-order initializers, any mixture of designated and non-designated initializers, or array-element designators. Array-element designators…

Max BernsteinBlog

I am searching for a coffee alternative

I had an in-person work team meeting last week. In the office, they had Bevi seltzer machines. When Bevi machines first arrived at Facebook, where I used to work, I looked down on them. They seemed to be a cost reduction, a sad imitation of The Good Stuff that came in cans and…

Murat DemirbasBlog

Writing as a thinking tool

In middle school I could not get through long passages no matter how hard I tried. I would read an entire page and find that nothing had registered, so I started taking notes out of desperation. This was the late 80s, and Tony Buzan's mind maps had just reached Turkey. This led…

Fangrui SongBlog

四色滑道:从博物馆的益智玩具到一道OI题

Palo Alto Junior Museum and Zoo的室内科学展区(Indoor science exhibits)墙上挂着一块大号的Montessori Slide Puzzle:下方是四条竖直滑槽,每条槽里叠着四颗彩色圆柱珠子;上方的卡片给出目标图案,玩家要通过滑动珠子把下面摆成卡片上的样子。 本文把它抽象成一道OI题,并给出题解和标准程序。 我只拍了两张照片,问了一句「能否根据这个益智玩具设计一道OI算法题?涉及编号时,从 0 开始。提供题解和C++标准程序」。 下面的题面、题解、标程、对拍程序,连同数据范围的取舍,都是Opus…

Jens GustedtBlog

Named constants and supporting objects in C

In traditional C, the concept of what is a constant is already not very intuitive, but it is even less clear why some constants then also have an underlying immutable object. Let’s take a simple example In C11 this had a lot of problems. The first problem is that MyBound0 is not…

Daniel LemireBlog

A performance trap: when store forwarding fails

A store does not go straight into the cache. Waiting for that write would stall the processor. It sits in a store buffer, and a later load can take its bytes from that buffer. That is store forwarding. Forwarding works when the load is the same size as the store, or smaller and…

Dan MangumBlog

The Tragedy of the Oxide Root of Trust

I have spent a significant portion of my career focused on helping folks securely manufacture, deploy, and manage the lifecycle of connected devices. I don’t think it would be an overstatement to say that my professional mission in life is to dramatically improve the status quo…

Chris WellonsBlog

We can do better than line-buffered output

Buffered output typically comes in two flavors: fully buffered and line buffered. If output goes to a terminal then the implementation automatically selects line buffering, flushing its buffer when a line is completed so that it reaches the user immediately. Otherwise it fully…

Daniel LemireBlog

Open source as a research method

Many people still picture innovation as a line. The professor thinks and publishes. The engineer reads the paper and designs a product. The customer consumes it. It rarely works that way. The industrial revolution was not set off by professors writing papers. It was driven by…

Daniel StenbergBlog

Scrutinize our assessments

I recently blogged about how the curl project switched to doing all handling of vulnerabilities at severity LOW and MEDIUM in the public. Let me now describe how you can follow along this process and help out. Add your opinions, comments and assessments to help the curl project…

Daniel LemireBlog

In C++, = default and {} are not the same constructor

You can write an empty default constructor as span() = default or as span() {}. It can have remarkable effects on performance. struct span { const char p; int len; const char end; span() = default; // or span() {} span(const char s, int n) : p(s), len(n), end(s + n) {} }; The…

Dan LuuBlog

Test/verification technique effectiveness with Astra

When we looked at how well agents used test/verification techniques in August 1 , we saw that GPT-5.6 Sol generally did what you might call a caricature of various techniques when asked to use a technique or library such as TDD, QuickCheck, Lean 4, etc.; not specifying any…

Daniel LemireBlog

Beating the compiler at signed 32-bit division

Dividing integers is slow on our processors. A 32-bit division costs: processor latency throughput Emerald Rapids about 12 cycles one every 6 cycles Zen 4 9 to 12 cycles one every 6 cycles Zen 5 10 to 13 cycles one every 6 cycles Arrow Lake performance core 12 cycles one every 6…

Chris WellonsBlog

Prospero: a new coding harness for a more civilized age

I’ve been fascinated with local LLMs for a couple of years now. The better open weight models, including some that inference on regular, higher-end consumer hardware at tolerable speeds, are now reliable enough to handle simpler programming tasks. This requires a coding harness,…

Matthew GarrettBlog

Getting Google Cast on my Soundbar

I have a Samsung Q800A soundbar. It ships with built-in support for the Apple Airplay protocol, but I’m not really an Apple kind of guy so that’s never been particularly helpful for me. So, instead, I have a Chromecast Audio plugged into it via TOSLINK, and that works fine -…

Niko MatsakisBlog

'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…

Yoshua WuytsBlog

The Missing Future State

Introduction In async Rust the Future::poll method is called to progress the state of the future, which reports its progress via the Poll enum. This enum contains two variants: Poll::Pending : means that the future is not yet ready to produce a value, and poll will need to be…

Phil EatonBlog

NYC

The apartment is packed up and empty and I'm leaving New York for Durham this Saturday. Just short of my 9th full year here. People, visitors mostly I guess, seem to associate New York with skyscrapers and traffic and concrete. To me New York is the water. Looking out from…

Daniel LemireBlog

Billion-query-per-second lookup tables in C++

A lot of software spends its time mapping strings to values. A web server must identify the HTTP method (GET, POST, …). It must recognize header names. A URL parser must recognize the protocol (http, https, ftp, …). A compiler must recognize keywords. In C++, the default…

Murat DemirbasBlog

The Man from the Future: Why Johnny Can't Stop Abstracting

I have come to suspect that to most people thinking is painful. Some of us are addicted to thinking. Some of us find it a necessity. Johnny enjoyed it. I even have the suspicion that he enjoyed almost nothing else. -- Edward Teller, eulogizing John von Neumann I listened to…

Ecosystem activity

most active tracked projects and subsystems this week