Advertisement · 728 × 90

Posts by Daniel Hooper

Sorry for delay. Very few early access invites have been sent out so far since it’s still deeply in development and isn’t ready for lots of people to be using it.

4 weeks ago 1 0 1 0
Preview
I Made A Real-Time Build Visualizer Sometimes software takes a long time to compile just due to how much code it has, like in the LLVM project. But often a build is slower than it could be for dumb, fixable reasons. I’ve had the suspici...

I wrote it for my build profiler, more info and early access here: danielchasehooper.com/posts/syscal...

2 months ago 0 0 1 0
Video

I 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.

2 months ago 7 0 1 0

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

3 months ago 0 0 0 0

Thanks!

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

3 months ago 0 0 0 0
Preview
Testing Opus 4.5 For C Programming A grumpy C programmer sees what all the fuss is about

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...

3 months ago 9 1 2 0

I ran into this today with a different button - still no idea what the button does. Just removed it.

7 months ago 1 0 0 0
Preview
Snooping On Slow Builds (Using Syscalls) Many software projects take a long time to compile. Sometimes that’s just due to the sheer amount of code, like in the LLVM project. But often a build is slower than it should be for dumb, fixable rea...

⭐️ New Article: Snooping On Slow Builds (Using syscalls)
danielchasehooper.com/posts/syscal...

8 months ago 2 0 0 0
Preview
A Fast, Growable Array With Stable Pointers in C The C implementation is available here. My last post about generic data structures in C was written to set the stage for today’s topic: A data structure that can be used in place of dynamic arrays,…

⭐️ New Post: A Fast, Growable Array With Stable Pointers in C
danielchasehooper.com/posts/segmen...

8 months ago 4 1 0 0
Advertisement

The header technique described towards the beginning of my article is effectively that.

9 months ago 0 0 1 0
Post image

Ok, 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()

9 months ago 7 1 1 0
Video

Hacked together a weird spiral Mario game prototype

9 months ago 4 0 0 0

I haven't, thanks for the link.

I used to do that too, but it became problematic in a large, long lived, multi-engineer codebase

9 months ago 0 0 1 0
Post image

New Post: How I Write Type Safe Generic Data Structures in C
danielchasehooper.com/posts/typech...

9 months ago 19 3 1 0

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!

10 months ago 2 0 0 0
Post image

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.

10 months ago 1 0 0 0
Advertisement

Weird time to be someone that likes making tools

10 months ago 0 0 0 0

Haha so true!

10 months ago 1 0 0 0
Post image

Not a good sign when fixing a bug requires editing a file with this at the top

10 months ago 3 0 0 0
Post image

This was written by a filmmaker about color science, but it applies just as well to the software industry's dependency problem

11 months ago 1 0 0 0
Support Alpha blending in sokol_gl.h by danielchasehooper · Pull Request #1266 · floooh/sokol sokol_gl's api accepts colors with alpha, so blending should probably be enabled

I ended up doing this: github.com/floooh/sokol...

11 months ago 0 0 1 0
Post image

Github needs this notification option

Tired of getting pinged every time a random person adds their two cents to a Github issue I follow.

11 months ago 3 0 0 0

I've had that sitting on my games shelf for years but haven't played it, maybe I never will now!

11 months ago 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();

11 months ago 0 0 1 0

It’s wild that iOS still doesn’t have a “lock orientation *except videos*” mode

11 months ago 4 0 0 0
Advertisement

That was really nice. I recently realized I haven’t been playing guitar as much I used to, so I’m trying to fix that.

1 year ago 1 0 1 0

haha yeah, I wasn’t sure how far to take the meme…could have included micro architecture all the way down to electrons!

1 year ago 1 0 0 0
Post image

"C is how a computer actually works"

1 year ago 5 0 1 0
Post image

TIL that CRT "pixels" can have only a portion illuminated, unlike LCD pixels. (Seen on the top and bottom edge of this 'P')

1 year ago 3 0 0 0
Post image Post image

Today 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.

1 year ago 3 0 1 0