DanielcHooper Profile Banner
Daniel Hooper Profile
Daniel Hooper

@DanielcHooper

Followers
9K
Following
2K
Media
187
Statuses
1K

Graphics/games/low level programming. Created https://t.co/8vlhOlfcTi. Former Apple engineer.

Joined October 2011
Don't wanna be here? Send us removal request.
@DanielcHooper
Daniel Hooper
15 days
⭐️ New Article: Snooping On Slow Builds (Using syscalls)
Tweet media one
4
20
176
@DanielcHooper
Daniel Hooper
2 days
Jonathan Blow on Rust
Tweet media one
41
32
1K
@grok
Grok
1 day
Join millions who have switched to Grok.
91
167
1K
@DanielcHooper
Daniel Hooper
7 days
Basically all "AI for programming" discourse right now
Tweet media one
22
34
538
@DanielcHooper
Daniel Hooper
8 days
It's a shame that Apple stopped writing programming guides for their documentation, they had such rich high level information compared to today's list-of-functions docs, which are less informative than just reading the header. Here's the Dispatch Source docs before and after:
Tweet media one
Tweet media two
2
2
17
@DanielcHooper
Daniel Hooper
14 days
Bitwise series: Modern C Talk: Code:.raddbg: orca app: .sokol libraries: zig std:
0
2
51
@DanielcHooper
Daniel Hooper
14 days
For a C newbie:.Learn the C approach to programming before tricks. The bitwise "make a compiler" series is great for that. The talk "Modern C and What We Can Learn From It" is a good general overview of what makes C nice to write these days. However the best way to improve is.
@NagaiTetsuoo
Nagai Tetsuo
14 days
@DanielcHooper @vkrajacic C newbie here. Would you be able to point me to a noteworthy C "tricks" collection/article/etc please?.
6
18
315
@DanielcHooper
Daniel Hooper
14 days
My build profiler can be used on any type of program, not just builds, but I can’t think of another situation that spawns enough processes to be interesting. Perhaps something with asset pipelines in games / film?.
3
0
8
@DanielcHooper
Daniel Hooper
15 days
Making your project compile fast is simple, but inconceivable by modern dev standards: .1. Don't use dependencies.2. Use a fast language (no rust, swift, or typescript).3. Compile exactly one root source file. Seriously.
13
2
141
@DanielcHooper
Daniel Hooper
15 days
The internet is cool because you can write an niche article about build systems, and the guy that wrote the fastest one (Ninja) can find it and comment.
Tweet media one
0
1
13
@DanielcHooper
Daniel Hooper
16 days
It's interesting to see all the nonsense that Xcode does when it compiles a project. (Captured using my build profiling tool)
5
2
32
@DanielcHooper
Daniel Hooper
21 days
From
0
0
4
@DanielcHooper
Daniel Hooper
21 days
Cool: A 2443 character C program that simulates a spinning top in the terminal.
Tweet media one
Tweet media two
1
1
10
@DanielcHooper
Daniel Hooper
22 days
Edsger W. Dijkstra in 1988:. "Number of lines of code produced per month" is a very costly measuring unit because it encourages the writing of insipid code . if we wish to count lines of code, we should not regard them as "lines produced" but as "lines spent".
@paulg
Paul Graham
22 days
I met a founder today who said he writes 10,000 lines of code a day now thanks to AI. This is probably the limit case. He's a hotshot programmer, he knows AI tools very well, and he's talking about a 12 hour day. But he's not naive. This is not 10,000 lines of bug-filled crap.
4
5
56
@DanielcHooper
Daniel Hooper
22 days
⭐️ New Post: A Fast, Growable Array With Stable Pointers in C
Tweet media one
11
55
555
@DanielcHooper
Daniel Hooper
23 days
How to use zig to make any C file run like a shell script:.1. put `//usr/bin/env zig run $0 -- $@; exit` as the first line in the c file.2. make it executable: chmod +x file.c.3. run it: ./file.c.
2
0
10
@DanielcHooper
Daniel Hooper
1 month
Ok I gave it a solid 3 years, but I can still never remember where anything is in the redesigned System Settings. I want the old design back.
Tweet media one
Tweet media two
3
0
23
@DanielcHooper
Daniel Hooper
1 month
Is a build profiling tool something that people would be interested in? I've been working on one for myself, and I'm trying to decide if it's worth making nice and releasing. Works on any language/build system. Checks for issues like under utilized hardware, files compiled
Tweet media one
2
0
14
@DanielcHooper
Daniel Hooper
1 month
It is so annoying when a project's build instructions are more than:. git clone <repo url>.cd <repo>. /build.sh. Just encode your crazy long instructions in script form! Download the dependencies! Do whatever it takes, just build it!.
8
6
79