I wrote it for my build profiler, more info and early access here: danielchasehooper.com/posts/syscal...
09.02.2026 22:24 β π 0 π 0 π¬ 0 π 0@danielchooper.bsky.social
Graphics/low-level/game programmer. Made www.principle.app. Former Apple Engineer. https://danielchasehooper.com I post more frequently to my x.com/danielchooper account, if you'd rather follow me there.
I wrote it for my build profiler, more info and early access here: danielchasehooper.com/posts/syscal...
09.02.2026 22:24 β π 0 π 0 π¬ 0 π 0I wrote a UI library in C that can lay out 95000 items at 60fps.
The library is 566 lines of C, and the application-specific ui code is 998 lines. Works on mac, windows, and linux.
in my experience the models small enough to run locally aren't that good. But keeping your code to yourself may be a lost cause if you host your code somewhere like github
12.01.2026 03:29 β π 0 π 0 π¬ 0 π 0Thanks!
Thats one of my most common uses for it. Iβm writing a new hash map so I pointed it at the source for several open source implementations to summarize each oneβs design
New post: Testing Opus 4.5 For C Programming.
TLDR: it's good, even for curmudgeons like me, but you need to play to its strengths. You don't have to use it like a dumb yolo vibecoder.
danielchasehooper.com/posts/code-a...
I ran into this today with a different button - still no idea what the button does. Just removed it.
19.09.2025 20:59 β π 1 π 0 π¬ 0 π 0βοΈ New Article: Snooping On Slow Builds (Using syscalls)
danielchasehooper.com/posts/syscal...
βοΈ New Post: A Fast, Growable Array With Stable Pointers in C
danielchasehooper.com/posts/segmen...
The header technique described towards the beginning of my article is effectively that.
09.07.2025 10:08 β π 0 π 0 π¬ 1 π 0Ok, here's the new way I recommend to do type safe generics in C.
It's cleaner compared to my old function-pointer-cast approach, avoids the undefined behavior everyone is so paranoid about, and doesn't require typeof()
Hacked together a weird spiral Mario game prototype
30.06.2025 23:08 β π 4 π 0 π¬ 0 π 0I haven't, thanks for the link.
I used to do that too, but it became problematic in a large, long lived, multi-engineer codebase
New Post: How I Write Type Safe Generic Data Structures in C
danielchasehooper.com/posts/typech...
As a precursor to public key cryptography, William Jevons said in 1874 "What two numbers multiplied together produce 8616460799? I think it unlikely that anyone but I will ever know"
Modern computers find the answer in 0.004s: primes 89681 and 96079
Cool for the time, just needed bigger numbers!
I like this comment in the source of /usr/bin/dtruss. It provides context with a "Hey dorks, don't mess with my code" kind of energy.
03.06.2025 23:48 β π 1 π 0 π¬ 0 π 0Weird time to be someone that likes making tools
30.05.2025 16:51 β π 0 π 0 π¬ 0 π 0Haha so true!
29.05.2025 01:42 β π 1 π 0 π¬ 0 π 0Not a good sign when fixing a bug requires editing a file with this at the top
21.05.2025 15:32 β π 3 π 0 π¬ 0 π 0This was written by a filmmaker about color science, but it applies just as well to the software industry's dependency problem
15.05.2025 17:40 β π 1 π 0 π¬ 0 π 0I ended up doing this: github.com/floooh/sokol...
15.05.2025 02:08 β π 0 π 0 π¬ 1 π 0Github needs this notification option
Tired of getting pinged every time a random person adds their two cents to a Github issue I follow.
I've had that sitting on my games shelf for years but haven't played it, maybe I never will now!
14.05.2025 15:24 β π 0 π 0 π¬ 1 π 0@flohofwoe.bsky.social Is there a trick to get alpha blending working in sokol-gl, or does that require making my own pipeline?
aka:
sgl_begin_triangles();
sgl_c4b(255, 0, 0, 127);
...
sgl_end();
Itβs wild that iOS still doesnβt have a βlock orientation *except videos*β mode
05.05.2025 15:27 β π 4 π 0 π¬ 0 π 0That was really nice. I recently realized I havenβt been playing guitar as much I used to, so Iβm trying to fix that.
14.04.2025 18:22 β π 1 π 0 π¬ 1 π 0haha yeah, I wasnβt sure how far to take the memeβ¦could have included micro architecture all the way down to electrons!
14.04.2025 18:04 β π 1 π 0 π¬ 0 π 0"C is how a computer actually works"
14.04.2025 15:30 β π 5 π 0 π¬ 1 π 0TIL that CRT "pixels" can have only a portion illuminated, unlike LCD pixels. (Seen on the top and bottom edge of this 'P')
11.04.2025 04:56 β π 3 π 0 π¬ 0 π 0Today I bought an old TV for visual reference. Played Balatro to see how the game's CRT emulation compared to a real Cathode Ray Tube. Sadly details aren't legible on a 13" TV, and the emulation's scanline/phosphor pattern isn't realistic, but it nails the chromatic aberration.
11.04.2025 04:56 β π 3 π 0 π¬ 1 π 0Already exists! βSpaceβ toggles pencil. βShift + a numberβ edits pencil digits regardless of pencil mode.
04.04.2025 02:45 β π 1 π 0 π¬ 0 π 0