Latency Numbers Worth Knowing
Came across this classic post about computer performance numbers. Really puts things in perspective. The Numbers Here are the key ones (approximate, 2024 hardware): L1 cache reference ...
Came across this classic post about computer performance numbers. Really puts things in perspective. The Numbers Here are the key ones (approximate, 2024 hardware): L1 cache reference ...
rust-analyzer wasn’t picking up my Cargo.toml changes. Had to reload manually. The Problem Modified Cargo.toml to add a new dependency. rust-analyzer didn’t notice. LSP features (autocomplete, ...
Spent hours debugging why rustic-format-buffer wasn’t working in Emacs. The error? “Program not found: No such file or directory, cargo” The Problem rustic-format-buffer Error: Program not foun...
Elfeed (RSS reader for Emacs) was showing way too many old entries. Here’s how to clear it. The Problem Thousands of old RSS entries cluttering my elfeed buffer. Search was slow, scrolling was ...
Emacs was taking forever to start. Found the built-in profiler to track down the culprit. The Commands M-x profiler-start # Do the slow thing (restart Emacs, open files, etc.) M-x profiler-repo...
Spent an hour debugging why my S3 bucket policy changes weren’t working. Turns out: browser cache. The Problem Changed S3 bucket policy to make a file public. Tested in Chrome. Still getting 40...
Been looking into rate limiting for calling third-party APIs. Two main algorithms keep coming up: Leaky Bucket and Token Bucket. Here’s what I learned. The Problem Calling external APIs without...
Been thinking about my default Go project setup. Here’s what I’m settling on. The Stack Database: sqlc Generates type-safe Go code from SQL No ORM magic, just SQL Compile-time safety T...
Confused moment: Doom Emacs org +present module doesn’t use the org-present package. It uses org-tree-slide-mode instead. The Confusion Saw the +present flag in Doom’s org module config. Assume...
Mar 16 Go 1.18 released Generic types support tutorial func Foo[K comparable, C int32 | float32] (m map[K]C, args... any) C { //code } new declarations: any, comparable type constraint fo...