The Joy of Cryptography
No this isn’t crypto currency. The Joy of Cryptography is a free undergraduate textbook that introduces students to the fundamentals of provable security.
The tale of a single register value
A software bug where the network stack crashes in reaction to a single received network packet, taking down the whole operating system with it.
Faster software through register based calling
When optimization, we optimize our code, what if the compiler optimize its own to emit more efficient assembly code, therefore make your code run faster than before. This is the case for Go, though it’s still a good read for everyone to understand more about assembly and register vs stack based function calling.
How Reliability and Product Teams Collaborate at Booking.com
With more than 1.5M room nights booked per day, Booking.com requires a solid infrastructure that’s constantly monitored. Booking.com now has a footprint of 50,000+ physical servers running across four data centers and six additional points of presence. The sheer size of this server fleet makes it viable for Booking.com to have dedicated teams specializing into looking only at the reliability of those servers.
Decompressing a gzip file by hand
Let’s make a gzipped file and see what’s in it. We’ll keep it simple: just write 8 ‘a’s to a file and see what is the final gzip file and decode it by hand, looking at byte by byte.
Lossless Image Compression in O(n) Time
Introducing QOI — the Quite OK Image format. It losslessly compresses RGB and RGBA images to a similar size of PNG, while offering a 20x-50x speedup in compression and 3x-4x speedup in decompression. All single-threaded, no SIMD. It’s also stupidly simple.
Should I Create an Index on Foreign Keys in PostgreSQL?
We constantly hear that indexes improve read performance and it’s usually true, but we also know that it will always have an impact on writes. What we don’t hear about too often is that in some cases, it may not give any performance improvement at all. This happens more than we want and might happen more than we even notice, and foreign keys (FKs) are a great example. I’m not saying that all FK’s indexes are bad, but most of the ones I’ve seen are just unnecessary, only adding load to the system.
Code to read
Pure Ruby implementation of Google Common Expression Language
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
A blazingly fast JSON serializing & deserializing library.
Improve performance of JSON parsing by implement JIT and some Assembly optimization. Over my head I must say but interested to figure it out
a TUI (Text User Interface) framework for Python inspired by modern web development.
ssh mitm server for security audits supporting public key authentication, session hijacking and file manipulation
Scalable PostgreSQL connection pooler
a high-performance open-source monitoring, incident and alert system written in Golang with Bazel and love.
An open-source screen recorder built with web technology
If you ever store large binary file in git you know how painful it is. This is still a need for design system or game assets. elfshaker is a low-footprint, high-performance version control system fine-tuned for binaries. It stores snapshots of directories into highly-compressed pack files and provides fast on-demand access to the stored files.
That's it for this round, have a great day! If you like this newsletter, please tell the world, or
tweet about this