Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sirwhinesalot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
61.
▲
by
sirwhinesalot
7mo ago
> Swift 6.3 introduces the @c attribute, which lets you expose Swift functions and enums to C code in your project. Annotating a function or enum with @c prompts Swift to include a corresponding declaration in the generated C header that
62.
▲
by
sirwhinesalot
8mo ago
Then why are the APIs they provide such turds? Cocoa is excellent but who knows when Apple will deprecate it for SwiftUI (which is not very good yet, if it ever will be)? Windows is a disaster of half-finished APIs. Win32 doesn't even
63.
▲
by
sirwhinesalot
9mo ago
I remember the problems with the WinRT APIs being tied to specific Windows versions (still are, just a smaller surface area, so less of an issue). With the old service pack model it wouldn't be an issue but with constant OS releases it
64.
▲
by
sirwhinesalot
9mo ago
If you use classic unstyled Win32 controls (Windows 95-2000 style) then you can do that. If you use uxthemed Win32 controls (Windows XP onwards) then there's no official dark theme support.
65.
▲
by
sirwhinesalot
9mo ago
For those unaware, the current recommended way to develop "native" apps for Windows is to use WinUI3, distributed with the WindowsAppSDK. Unlike regular Windows SDK, which lets you make use of the functionality provided by the OS,
66.
▲
by
sirwhinesalot
9mo ago
They exist but are rare and don't hire often. I know a guy (self taught programmer) who got his first major a job at a company doing native ui (not even using OS frameworks, straight GPU stuff). The company does highly complex simulati
67.
▲
by
sirwhinesalot
9mo ago
Exceptions are cheap on the happy path and super expensive on the error path. Checked exceptions only make sense for errors that are relatively common (i.e., they aren't really exceptional), which calls for a different implementation e
68.
▲
by
sirwhinesalot
9mo ago
Yeah, CLAUDE.md. Sometimes it just ignores what was in there after the context window gets big enough (as it tends to with planning mode).
69.
▲
by
sirwhinesalot
9mo ago
The only approach I've tried that seems to work reasonably well, and consistently, was the following: Make a commit. Give Claude a task that's not particularly open ended, the closer to pure "monkey work" boilerplate non
70.
▲
by
sirwhinesalot
9mo ago
Better can be argued. More performant though? Yes, massively so. Turns out spending some time understanding what your CPU and GPU are actually doing when running your app, and how to make them do less work, leads to pretty speedy software.
71.
▲
by
sirwhinesalot
9mo ago
For now.
72.
▲
by
sirwhinesalot
9mo ago
And here's the ruining of Pixelmator Pro everyone was waiting for. I paid one time 20 euros for it (discounted). And I would gladly pay again even full price for a new major version. I don't want yet another subscription. I see
73.
▲
by
sirwhinesalot
9mo ago
It's a pun, look up Alan Dye :)
74.
▲
by
sirwhinesalot
9mo ago
Nobody in their right mind should be touching any Microsoft provided API that isn't already well established (like Win32 and Direct3D). I'm happy they're at least maintaining (to a limited extent) Windows Forms and WPF and up
75.
▲
by
sirwhinesalot
9mo ago
I had friends use those exact words but replaced with "Windows Phone" and "Windows 8 Computer".
76.
▲
by
sirwhinesalot
9mo ago
That's not what they mean. As a developer, the API you used to develop your app was now deprecated with no migration path. That meant your app was deprecated, with no migration path. For an app platform already a distant third place an
77.
▲
by
sirwhinesalot
9mo ago
So what is the right way that Skia uses? Why is there still discussion on how to do vector graphics on the GPU right if Skia's approach is good enough? Not being sarcastic, genuinely curious.
78.
▲
by
sirwhinesalot
10mo ago
Even on mobile it took a few iterations from when the design was first introduced for it to be usable . Not good mind you, just usable. Even Apple's own marketing material had screenshots where text was near impossible to read, even
79.
▲
by
sirwhinesalot
10mo ago
Really? Same guy? OUFF. What a track record...
80.
▲
by
sirwhinesalot
10mo ago
It's hard to justify Liquid Glass in general. The wastefulness of flat design (in terms of space) married with the visual excess of skeuomorphism, but without even providing any affordances (does the sidebar being raised give you any n
81.
▲
by
sirwhinesalot
10mo ago
C3 doesn't have a recompile everything model, in fact it's pretty much designed around supporting separate compilation and dynamic linking (unlike Zig and Odin), it even supports Objective-C style dynamic calls.
82.
▲
by
sirwhinesalot
10mo ago
It's not just the size of the data but also the amount of copies. Consider a huge tree structure: even if each node is small, doing individual "malloc-style" allocations for millions of nodes would cause a huge performance hi
83.
▲
by
sirwhinesalot
10mo ago
NOTE: I'm a fan of value semantics, mostly devil's advocate here. Those implicit copies have downsides that make them a bad fit for various reasons. Swift doesn't enforce value semantics, but most types in the standard librar
84.
▲
by
sirwhinesalot
10mo ago
The problem is that it's not the user of the LLM doing the reproduction, the LLM provider is. The tokens the LLM is spitting out are coming from the LLM provider. It is the provider that is reproducing the code. If someone hires me to
85.
▲
by
sirwhinesalot
10mo ago
OpenAI got really pissy about DeepSeek using other LLMs to train though. Which is funny since that's a much clearer case of "learning from" than outright compressing all open source code into a giant pile of weights by learni
86.
▲
by
sirwhinesalot
10mo ago
I'm not whining in this case, just pointing out "they gave it out for free" is completely false, at the very least for the GNU types. It was always meant to come with plenty of strings attached, and when those strings were do
87.
▲
by
sirwhinesalot
10mo ago
It's not free. There is a license attached. One you are supposed to follow and not doing so is against the law.
88.
▲
by
sirwhinesalot
10mo ago
I've been working (very slowly) on a cross-platform UI library written in C. It uses as much as it can from the OS without outright using the native widgets for everything. Rather the focus is on letting the user of the library customi
89.
▲
by
sirwhinesalot
10mo ago
L4 was a microkernel design by Jochen Liedtke (RIP). It was notable for proving that microkernels can perform much better than was thought at the time (L4 performed 20x better than the Mach microkernel). The work was so influential it got t
90.
▲
by
sirwhinesalot
10mo ago
That actually goes a bit further than my suggestion, since it allows the closure to be returned with its unique type. I'm not a fan of introducing these "unnamable types" to C since it means the closure producing function can
More ›