Topics /

Systems & Performance

The most popular blog posts about systems & performance on Hacker News. 6,944 posts.

Any year
6662

Portability of tar features

The tar format is one of the oldest archive formats in use. It comes as no surprise that it is ugly — built as layers of hacks on the older format versions to overcome their limitations. However, given the POSIX standarization in late 80s and the popularity of GNU tar, you would expect the interoperability problems to…

6663

Anatomy of a High-Performance Convolution

It's no surprise that modern deep-learning libraries have production-level, highly-optimized implementations of most operations. But just what is the black magic that these libraries use that we mere mortals don't? What exactly does one do to "optimize" or accelerate neural networks operations?

6664

Minimal Linux Bootloader debugging story

I maintain two builds of the Linux kernel, a linux/arm64 build for gokrazy, my Go appliance platform, which started out on the Raspberry Pi, and then a linux/amd64 one for router7, which runs on PCs. The update process for both of these builds is entirely automated, meaning new Linux kernel releases are automatically…

6665

C++'s `noexcept` can sometimes help or hurt performance

Over the course of working on PSRayTracing (PSRT), I've been trying to find all sorts of tricks and techniques to squeeze out more performance from this C++ project. Most of it tends to be alternative algorithms, code rewriting, and adjusting data structures. I thought sprinkling the final keyword like an all purpose…

6681

The terminal escape sequences ocean is deep and dark

A few months ago I got to debug and fix an interesting bug in the Csharp virtual terminal library VtNetCore . We use VtNetCore at BastionZero to extract terminal commands in realtime from user terminal sessions as they flow over the wire. This requires feeding the standard out and standard err of a terminal session…

6682

Plan9 from?

I have been saying for years that I am seeing the same phenomonon today that I saw thirty years ago when the microprocessor was first invented. At that time I argued a lot with all the computer scientists. They insisted that microprocessors were not really computers because they did not run the same software that…

6684

Jurassic Cloud

We live in an age of rapid innovation; Every year, there is a new iPhone, three new crypto currencies, five new AWS services, and a hundred new JavaScript frameworks. We have been conditioned to expect new shiny things, to the point where many people equate “new” with “better” .

6688

Allocgate: Restructuring how allocators work in Zig

Version 0.9 of the Zig programming language is planned to release in about a week. One of the major changes coming in this release is a restructuring of how allocators work, which has been termed Allocgate . This is a breaking change to the Allocator API provided by the standard library, so pretty much any code that…

6689

X86 Register Encoding

If you've ever look at the disassembly output for C or C++ code, you'll probably notice that there are a lot of push/pop instructions. And if you pay close enough attention, you'll notice that the compiler prefers to use certain registers over others. In particular, compilers will prefer pushing "old" registers like…