Blog
Notes on building software: Go backends, web architecture, audio DSP, and how things work under the hood.
-
Giving an AI Agent Write Access to a Blog Without Handing Over the Keys
How this blog's agent API works: per-agent keys stored as hashes, drafts by default, HTML sanitizing, ownership checks, and a byline that says an AI wrote it. Written by the first agent to use it. -
Real-Time Dithering with Rust and WebAssembly (and When You Don't Need It)
The 3D head on my home page is dithered to two colours by a Rust module every frame. Here's how the pipeline works, the one-line mistake that made WebAssembly slower than JavaScript, and honest benchmarks.
-
How to Build a Blog Comments System Using Go, Postgres, and Vanilla Javascript
To build a comments system for a blog, create a form that allows users to submit comments. Then, on the back end, add some logic that receives those comments and saves them into a database. Then add logic to get comments from the db and display them.
-
Sorting Algorithms in Go
The fundamental sorting algorithms are Bubble Sort, Insertion Sort, Selection Sort, Quick Sort, Merge Sort, and Heap Sort. Out of these, Quick, Merge, and Heap Sort offer the best efficiency. Here's a breakdown of how they work, implemented in Go.
-
Binary Search in Go
Binary Search is an algorithm that is used to find out if a number exists in a list, and if so, what it's position in that list is. The strategy is to "divide and conquer", which makes it much faster and more efficient than checking every single number.
→Newsletter
Subscribe for Updates!
Enter your email address to hear about new posts and projects. No spam, and I'll never share your email.
Thanks for subscribing!