New
The latest blog posts to take off on Hacker News. 498 posts.
A fast alternative to the modulo reduction (2016)
Suppose you want to pick an integer at random in a set of N elements. Your computer has functions to generate random 32-bit integers, how do you transform such numbers into indexes no larger than N? Suppose you have a hash table with a capacity N. Again, you need to transform your hash values (typically 32-bit ……
Picolibc – Libc for Embedded Systems
I wrote a couple of years ago about the troubles I had finding a good libc for embedded systems , and for the last year or so I've been using something I called 'newlib-nano', which was newlib with the stdio from avrlibc bolted on. That library has worked pretty well, and required very little work to ship.
How much faster is Redis at storing a blob of JSON compared to Postgres?
tl;dr; Redis is 16 times faster at reading these JSON blobs.*
New In Postgres 12: Generated Columns
pgDash is an in-depth monitoring solution designed specifically for PostgreSQL deployments. pgDash shows you information and metrics about every aspect of your PostgreSQL database server, collected using the open-source tool pgmetrics.
On Sharding
If you need to handle really a lot of traffic, there’s only one way to do it: sharding. Which is to say, splitting up the incoming requests among as many hosts (or Lambda functions, or message brokers, or data streams) as you need. Once you get this working you can handle an essentially unlimited request volume. Of…
Designing far memory data structures: think outside the box
Designing far memory data structures: think outside the box Aguilera et al., HotOS’19 Last time out we looked at some of the trade-offs between RInKs and LInKs, and the advantages of local in…
Performance metrics for web apps
Performance metrics are surprisingly challenging to get right. Here we share how to create metrics that are accurate, precise, and useful!
Google Chrome Keystone is modifying /var symlink on non SIP Macs causing k-panic
Reports that some AVID Users Macs would no longer boot. It now may be that a Google Chrome Keystone update modifies /var on NON SIP Protected Macs.
ReactOS 0.4.12
ReactOS is a free, opensource reimplementation of windows
CentOS Stream
Today, Red Hat has introduced a new Linux development model into the CentOS community: CentOS Stream, a developer-forward, faster-moving distribution that helps community members, partners and others take full advantage of open innovation.
How did MS-DOS decide on two seconds to keep the floppy disk cache valid?
A stopwatch and a race against time.
When TCP sockets refuse to die
While working on our Spectrum server , we noticed something weird: the TCP sockets which we thought should have been closed were lingering around. We realized we don't really understand when TCP sockets are supposed to time out!
Async.h – asynchronous, stackless subroutines in C
The async/await idiom is becoming increasingly popular. The first widely used language to include it was C#, and it has now spread into Jav...
Common Systems Programming Optimizations and Tricks
Today’s blog post is an overview of some common optimization techniques and neat tricks for doing “systems programming” – whatever that means today. We’ll walk through some methods to make your code run faster, be more efficient, and to squeeze just a little more juice from whatever you got.
The cost of parsing JSON
The dominant costs of processing JavaScript are download and CPU execution time.
Going Fast Slowly
Varnish is a powerful, flexible HTTP accelerator that speeds up web applications by caching content and optimizing delivery.
Announcing Yugabyte DB 2.0 GA: High-Performance Distributed SQL
YugabyteDB 2.0 released. Read to learn about production-ready YSQL, performance benchmarks, Jepsen results, and Beta feature previews
Absolute Scale Corrupts Absolutely
The Internet has gotten too big. Growing up, I, like many computery people of my generation, was an idealist. I believed that better, faste...
Efficient string copying and concatenation in C
Martin Sebor looks at C string handling functions used to copy and concatenate strings and examines ways to improve their efficiency.
A lighter V8
The V8 Lite project dramatically reduced the memory overhead of V8 on typical websites, this is how we did it.
GCC eBPF for Linux port has landed
This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project .