While working to add typed configuration to my Haskell Redis server clone, I found myself learning some new tricks, all of them stemming from Haskell's Kind system. In this article, we're gonna discuss what I learned and the things I managed to build with it. We'll start from the beginning, with Values. Values These are the constructs we manipulate in our programs, things like 1 , 2 , True , "hell
13 Oct 2026Thunks & Thoughts on engineering, life, and all that good stuff
Latest posts
You're INFO a treat In a previous blog post , I talked about how I used Cabal's custom setup script to generate a module with build info at compile time. As mentioned in that post, the custom setup script work was but a piece of what went into implementing the INFO command for my Redis server. Let's talk about it. As always, if you want to peruse the code, feel free to check out the accompanying P
28 May 2026Like the third installment to a semi-epic TV show. Nix does sound like a cool MC name Alrighty! Since part 2 , I've handled the hardware configuration for my NixOS setup. Specifically, the configuration for an Intel CPU and Integrated GPU, and an NVIDIA GPU. My initial plan was to make reusable modules for each component, so I could plug'n'play across hosts. I wanted separate modules for an Intel
22 May 2026Who would've thunk. (*slow clapping*) Cabal custom scripts everybody This will be a quick one. I've been working on implementing replication in my Redis server . The first step for this, per the codecrafters challenge that I'm following, is to implement the INFO command, which I've done in this PR and may be the focus of a future blog post. The framework for the INFO command was pretty easy to imp
14 May 2026Putting a GUI on this thang Since part 1 , I have done work to configure and make configurable the GUI for my budding NixOS setup. If you're interested in the code, the PR for it can be found here . Comments and feedback welcome! Now, getting into some detail, AI, specifically Codex, has been really valuable thus far with this project. It's been a useful collaborator in discovering config options,
6 May 2026To Nix or not to Nix I am really digging this Nix thing. I've known about Nix for a while now. It didn't really seem like much, especially since I already had my distro-setup repository for reproducing my Fedora system. I considered Nix to be needless complexity until I started using it at work and my eyes were opened. I realized that most, if not all, of the things I have scripted in my distro-se
4 May 2026Onwards to NixOS I did some spring-cleaning on my dotfiles . Since I am planning on moving to NixOS, I figured now was as good a time as any to renovate. I've had my current setup for a long time. It has served me well, but nothing lasts forever, I suppose. The layout up to this point was basically an answer to the question: "what's the simplest thing I could do?". I first opted to have all my dot
3 May 2026Computer science is applied maths or some such I want to be dangerous with maths, at least, with regard to software engineering. I know math isn't necessarily a requirement for the field, but being competent never hurts. Moreover, time and time again I have found myself trying to read through some CS literature like Intro to Algorithms , or SICP, or (most recently) The Algorithm Design Manual only
22 Mar 2026Reading through the backlog of James Clear's 3-2-1 newsletter and came across this : Quote "Create your life rather than live it." To me this reads simply as "be deliberate." Don't just let yourself drown in mundane routine. Let each act be, as much as possible, a step towards the life you want for yourself This can be a difficult thing to do but as is the case with most things, starting one step
20 Mar 2026Ok then. Maybe not weirdness but I ran into something rather strange today. It looks like variables used in interpolation don't get pulled from the env files defined under the env_file option for a service. Essentially db : image : postgres:16 env_file : - path : ./backend/.env.something required : true - path : ./backend/.env.dev required : false environment : POSTGRES_DB=${POSTGRES_DB} # The var
20 Mar 2026To produce an executable Ever wondered how to produce multiple executables from your stack project? Neither did I until I found myself unable to do so in an experiment I was playing with. I've figured it out now though, and for future reference, whenever things of this nature come up you'll probably want to look at how it's done in Cabal then extrapolate for Stack making use of the hpack repositor
20 Mar 2026Endian deez nuts So there I was programming some binary serialization and deserialization logic to add persistence to my Redis server. I was in the zone then the docs I was referencing began to mention this "endian" thing, what the heck does that mean? I mean, I know it has something to do with how bytes are parsed but the rest of that thought was a little fuzzy ngl. It is at this point, dear read
20 Mar 2026Ever wondered about the difference between numbers and numerals? Me neither, but here we are So a while back I was attempting to do some data marshalling for the persistence of the store in my redis server implementation per the RDB file specification . It turns out that when you attempt to get the char code for a character in Haskell, it'll give you a decimal number. This stumped me for a bit sin
20 Mar 2026IO! IO! IO! It seems to me like IO is Haskell's way of modelling/representing the general concept of a statement (an action/impure operation, an operation with side effects that may or may not return a value). We know why statements are important. They allow our programs do useful things at the cost of non-determinism (changes to the world state tend not be consistent across invocations) and order
20 Mar 2026