😭
Daniel Hooper
@danielchooper
Daniel Hooper’s Tweets
It'd be cool if long tweets supported markdown/formatting.
Quote Tweet
Replying to @forkingpathsdev
The Metal implementation will be written in Objective-C and be accessed via a C struct interface. The render code (which is all C) can call these without caring what the backing graphics library is (WebGL, OpenGL, Metal, etc)
typedef struct {
void *context;
ClearFuncPtr…
1
4
Most performant way to get video frames into an OpenGL texture: the accepted Stack Overflow answer vs the actual right answer.
(stackoverflow.com/a/75176543/122)
10
It'd be nice if keyboard shortcuts went to the window you're looking at and not the foreground window on that other monitor over there
1
3
I wanted to be adding new stuff to Principle today, but instead I'm finding workarounds for dumb macOS bugs. 😩
Quote Tweet
If any AppKit folks are listening, here's an NSTrackingArea regression in Ventura, filed as FB11772168. Sample project: github.com/siracusa/NSTra
read image description
ALT
1
3
The Zig code builds and uploads changes to the website in 6.4 seconds, most of that time is spent waiting for tsc to do its thing. Everything could be made way faster, but this is good enough for an internal tool.
3
Show this thread
whew. principle.app is now built using my custom static website builder. It's written in Zig and handles django-ish templates, markdown, asset fingerprinting, calling tsc, and upload to s3.
3
13
Show this thread
I just have to remember to do customer support at the *end* of the day!
1
1
Show this thread
Nothing kills my motivation more than doing customer support for mean people. Be nice to the people trying to help you
1
10
Show this thread
This is a good way to get a faster horse
6
I seem to have a knack for picking projects to write from scratch that *seem* easy if you never done them but are a huge pain to get right.
This time: markdown parsing.
Previously: text rendering.
6
Since confirmed that Twitter is getting long tweets, I made a prototype of how they could retain the ability to retweet or like a single idea - as is currently possible in multi-tweet threads. Stick to the end for heat map analytics!
1
20
Take a moment to look in your node_modules folder and reflect on this Alan Kay quote
"Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves"
1
6
Editing my old code is like getting into a fight with a younger, dumber version of myself
12
Saddened by the end of OurMachinery and their technical writing. Their data structures series was excellent. Check out the archived versions while you can:
web.archive.org/web/2022031320
web.archive.org/web/2022031401
web.archive.org/web/2022031401
6
Maybe the concept of a throwaway game prototype is stupid? If the prototype is developed enough to evaluate then you've probably sunk some time into it, time better spent in your production tool of choice
4
4
If an experienced programmer wanted to quickly make throwaway 3D game prototypes, what should they use?
- Godot20.7%
- C with raylib, bullet12.1%
- Unreal or Unity (which?)55.2%
- three.js + ammo.js12.1%
58 votesFinal results
2
3
iOS 16 separates work and personal messages, mail, and notifications based on your focus mode. Aka Apple added Severance mode to iOS.
15
Tough to choose between an “Excellently acted and directed” film and a “Brilliantly acted and directed” film 😂
1
Show this thread
I wanted to watch a movie, so I asked the GPT-3 AI for recommendations🤯
read image description
ALT
5
6
76
Show this thread
Is there anyone trying to simplify the web by removing stuff rather than piling more features on?
4
2
11
Today's easy discovery: glyphs should be drawn with nonzero winding rule, not even-odd. Doesn't matter for *lots* of fonts/glyphs, maybe even most, until it does...
7
23
Show this thread
I got nerd sniped by the internet saying how hard text rendering is, so I decided to write a text system from scratch. Now I know: There's no *one* hard part, *but* there are thousands of easy parts...that you slowly learn about over the course of months via bug reports 😂
2
2
20
Show this thread
So macOS 12.3's removal of Python 2 finally killed Cactus, the build system I've used for Principle's website since 2016. I'm taking the opportunity to write a new build system in ! The annoyance of this is *mostly* offset by my excitement to use Zig
6
Just ordered a computer solely to fix a graphics bug that only happens on a certain GPU from 2016, so I guess I’m a real graphics programmer now. 🎊
10
Is anyone pushing for something like this?
5
1
Show this thread
As a first step, browsers could recognize pages served with something like "application/webapp" (idk), to opt into this mode without the browser compositor or js interpreter. WASM will need to be able to use WebGL+I/O without going through js for this to work.
1
1
Show this thread
Obviously browsers would maintain a legacy support for html/js/css that would be frozen except for bug fixes. All the new es11++ work would go to the libraries.
1
Show this thread
The huge reduction in footprint that browsers would have to standardize on would dramatically improve quality and cross browser consistency. It'd also be much easier for the browser makers to maintain.
1
1
Show this thread
2. Pages could all use the same publicly hosted library, like "google.com/v8.wasm", so it'd be in the browser cache already
1
Show this thread
"but won't each webpage including a html/js implementation take longer to load?" - no.
Two reasons:
1. Since a js interpreter library would only implement one version of js like "es7", with no need for backwards compatibility, the implementation would be smaller.
1
Show this thread
Implementing html/css/js as libraries the client includes (like jquery) would remove the need for the standards bodies. 3rd parties could implement their own variations of each. Devs could chose which variant/version they wanted to use.
1
1
Show this thread
Browsers could be flipped to fix this. Instead of WASM being instantiated from js and run inside an HTML page, WASM would be the only thing the browser "understood". js and HTML would be implemented as a wasm library included by the webpage (if the webpage wanted to use js)
1
4
Show this thread
Figma, Google, etc deal with these issues too. They're magnified when you're trying to do interactive animations at 60fps (Like does: principle.app/share?id=a9nm4)
1
3
Show this thread



