Over the past days I’ve been rewatching Silicon Valley. Something moved in me, maybe I’ve gotten nostalgic for this show or maybe I just remembered that I enjoyed watching it. In the first season - which I think is the most iconic one - the final episode gives a memorable scene where Richard manages to create a “middle-out” compression algorithm that breaks the theoretical…
I’ve learned about T64 (Transpose 64x64) compression algorithm while reading Clickhouse docs. My assumption is that it has been created in-house because it’s the first time I’m seeing any reference to it. The overall approach and idea is actually quite old, I’m specifically referencing T64 here. It’s so simple that I’m going to explain it with examples How does…
The job of a code formatter is simple: reprint the source code with pleasing white space1. From the description it’s very simple and yet as with anything in the software world there are two camps. The first camp says that having an automated formatter reduces the burden of the programmer, allowing one to focus on more important things. Additionally having a tool that enforces a coding style…
Ever since seeing Casey Muratori use xorshift32 to speed up his ray-casting code I’ve used that algorithm to generate random numbers while working in C. As the name suggests the internal state is a 32 bit number and the result of the function is just it’s internal state. From the perspective of safety and doing anything exposed to a wider audience where the cracks can be exploited for…
WASM has this great veil of misunderstanding around it and I don’t want to try to remove it because in the process I might end up creating more confusion. All I want to do is give you some ideas and experiences I’ve had writing a simple library in C, compiling it to WASM and using it from JavaScript. Because of timing, some soft requirements and pure curiosity I’ve ended up…
There is a very high possibility that your browser downloaded this website as compressed data. I can feel sure saying this because the web standard defines gzip as a standard compressor for web content. So what it achieved by compressing this webpage? As with any data compression algorithm, it reduces the data’s size with no or very little data loss. Data compression is a bigger deal than…
If you’ve ever entered a license key for software activation you might’ve experienced the software verify the validity of the key without the need for internet connection. The most popular example would be a Windows installation, during that time your computer most likely does not have the necessary drivers to be connected to the internet. This was for sure more true in the era of…
I’ve recently become in possession of a 4K (3840 pixels x 2160 pixels) 144Hz monitor to bask in the high DPI glory and to never be looking at poorly aliased fonts ever again. In my head all that I needed to worry about is if my GPU will be able to push these many pixels and if the monitor actually arrived. But when it did arrive another problem was born, with my RTX 3060 graphics card I was…