Hexadecimal clock counting down to 2038 problem
It is now ??????????.??? ( ????-??-??T??:??:??.???Z ) in Unix time , according to your local system clock.
Pictures of a working garbage collector
C++, a "Reality sandwich", and an Octopus.
Reverse Engineering the DualShock 4
This year I got a very special gift for Christmas: a broken DualShock 4. :smile:You may say it’s a relatively poor gift, but the person who gave me this know...
How I came to write “Tidy First?” tl;dr it took 18 years
Taking a software design course in college (Go Ducks!), we used Ed Yourdon (RIP) & Larry Constantine’s book Structured Design as a text.
The History of Windows 2.0
Success and Litigation
Emacs is not just an editor (2015)
Emacs is Not Just An Editor
Building a front end framework – Reactivity, composability with no dependencies
Before I start—to set some context—by frontend framework what I mean is, a framework that allows us to avoid having to write regular old HTML and JavaScript such as this:
Philosophy of Coroutines
I encountered the idea as a student, when I first read The Art of Computer Programming . I’d been programming already for most of my childhood, and I was completely blown away by the idea, which was entirely new to me. In fact, it’s probably not an exaggeration to say that in the whole of TAOCP that was the single…
Building Boba AI: Lessons learnt in building an LLM-powered application
A series of patterns for building an AI co-pilot application.
Notes on training BERT from scratch on an 8GB consumer GPU
I trained a BERT model (Devlin et al, 2019) from scratch on my desktop PC (which has a Nvidia 3060 Ti 8GB GPU). The model architecture, tokenizer, and trainer all came from Hugging Face libraries, and my contribution was mainly setting up the code, setting up the data (~20GB uncompressed text), and leaving my computer…
A ChatGPT Emacs Shell
UPDATE: has evolved a bit and is now on MELPA. I had been meaning to give ChatGPT a good try, preferably from Emacs. As an eshell fan, ChatGPT seemed ...
Git branches are named sequences of commits
From the highly eclectic blog of Mark Dominus
32 MiB Working Sets on a 64 GiB machine
Memory is a relatively scarce resource on many consumer computers, so a feature to limit how much memory a process uses seems like a good idea, and Microsoft did indeed implement such a feature. Ho…
A guide to closures in Rust
Understand how closures really work in Rust
I fixed a bug the other day
I fixed a bug that was in production for 2 years with a few lines of code.
Not knowing the /proc file system
Overview Edit: this post was discussed on hacker news Some of the comments contained valuable reviews of the C code listed below. I’ve appended some edits after the original listing. I’ve been working quite with files and file systems on Linux recently. Mostly from the vantage point of either a shell or a python…
The saga of the Closure compiler, and why TypeScript won
This post looks at the Closure Compiler, Google's tool from the mid-2000s for adding types to JavaScript. It looks at how its focus on minification led to very different design choices than TypeScript, and how this and a few other factors led to TypeScript becoming the ubiquitous solution for JavaScript + types. The…
The pull request hack is fucking magic
I don't have time to keep up with all the daft Open Source projects I release. I wish my skill and my energy was as wide as my ambition. Several years ago, I came across Felix Geisendörfer's Pull Request Hack. The premise is simple - if people are making decent Pull Requests to your project then you should give them…
Chinchilla’s death
“With more careful calculations, one can win; with less, one cannot” — Sun Tzu, The Art of War .
Squeezing a Sokoban game into 10 lines of Haskell
Call-by-push-block
Why use Rust on the back end?
I don't care about avoiding GC or about maximum performance. I treat Rust as a high level language.
How did people deal with punch cards?
In the fall of 1976 I started as a Freshman at SUNY Stony Brook intending to major in Math and Computer Science. I took Honors Calculus I a...
Time is not a synchronization primitive
Xe Iaso's personal website.
Why Do ML on the Erlang VM?
Another question might be; why do machine learning at all? I'm not big into ML/AI though I've been poking it more recently as the open models, such as Stable Diffusion and the more practical Whisper, caught my curiosity. I have a very decent GPU (3090 Ti) and I've poked around a bit. I don't consider ML a super…
Driving Compilers
I remember how pleasant it was to learn to program in C. There were so many good books explaining not only the language but also the standard library. I devoured both The C Programming Language (K&R) by Kernighan/Ritchie and The Standard C Library by P.J. Plauger. Then came Expert C Programming by Van der Linden and…
Ruby's hash is a Swiss-army knife
This article shows the obscure but useful capabilities of Hash, a simple but equally powerful data structure in Ruby.
The curious case of a memory leak in a Zig program
Digs into a unexpected memory leak when using Zig's FixedBufferAllocator