Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mgaunard
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
91.
▲
by
mgaunard
6mo ago
As I said, the advantage of the TUI is that they avoid context-switching.
92.
▲
by
mgaunard
6mo ago
Power users have always preferred the command-line, since expressing what you want to do as a programming language is of course much more powerful and productive than clicking menus. To avoid context-switching from the command-line, many es
93.
▲
by
mgaunard
6mo ago
That's also what Colima does. OrbStack isn't open-source though and I can't justify buying a license for every single person in my company just for something functionally equivalent but performing better. These kinds of thing
94.
▲
by
mgaunard
6mo ago
My only experience with VMs on macOS is colima+docker, and it's relatively painful and inefficient (but usable).
95.
▲
by
mgaunard
6mo ago
I find that good people get better with AI, but I'm not sure more average people really do. I've seen some produce stuff without really understanding it, barely review anything, and pretty much suffer from imposter syndrome.
96.
▲
by
mgaunard
6mo ago
The converter is generated automatically based on the differences between the two schemas. Takes zero effort other than CPU cycles.
97.
▲
by
mgaunard
6mo ago
I already said you can UUIDs and schemas, and even dynamic conversion between mismatched schemas. Doing plain C structs doesn't prevent any of this.
98.
▲
by
mgaunard
6mo ago
You can also just use an array which sets a max capacity, and either use a null-terminator or a separate size field. In practice you probably want to have both, and choose what's most practical based on the message.
99.
▲
by
mgaunard
6mo ago
I handle it in different ways by topic. For topics which are sending the state of something, a gap naturally self-recovers so long as you keep sending the state even if it doesn't change. For message buses that need to be incremental,
100.
▲
by
mgaunard
6mo ago
It's 2026 and I'm still defining my own messaging and wire protocols. Plain C structs that fit in a UDP datagram that you can reinterpret_cast from is still best. You can still provide schemas and UUIDs for that, and dynamically t
101.
▲
by
mgaunard
6mo ago
I find that conan2 is mostly painful with ABI. Binaries from GCC are all backwards compatible, as are C++ standard versions. The exception is the C++11 ABI break. And yet it will insist on only giving you binaries that match exactly. Thankf
102.
▲
by
mgaunard
7mo ago
It also means that you need to pay for EFS, which is outrageously expensive, to use S3, whose whole purpose is to be cheap.
103.
▲
by
mgaunard
7mo ago
Zero mention of s3fs which already did this for decades.
104.
▲
by
mgaunard
7mo ago
Well, you can always pin to a core and move other threads out of that core. That's what you'd do if manually scheduling. Ideally the dynamic scheduler would do that on its own.
105.
▲
by
mgaunard
7mo ago
The scheduling is based on how much the LWP made use of its previous time slices. A spinning program clearly is using every cycle it's given without yielding, and so you can clearly tell preemption should be minimized.
106.
▲
by
mgaunard
7mo ago
Most people looking for performance will reach for the spinlock. The expectation is that the kernel should somehow detect applications that are spinning, and avoid preempting them early.
107.
▲
by
mgaunard
7mo ago
Getting a minor wound bandaged up is not what A&E is meant for, it's for life-threatening injuries. Going to A&E and waiting there also means you're losing 4 to 6 hours. 111 you just get some robot asking you a never-endin
108.
▲
by
mgaunard
7mo ago
Not all disinfectants are child safe, and the wound was serious enough to require steri-strips (an alternative to sutures) -- it was not a matter of a bandaid.
109.
▲
by
mgaunard
7mo ago
A specialist also requires a referral in the UK. There are also much more medicines which are prescription-only than in the US. That's why in practice we have all these (private) services to get easy GP appointments via phone, video or
110.
▲
by
mgaunard
7mo ago
While away from home, my son (5 yo) cut his finger and was in need of disinfectant and a bandage (steri strips). Pharmacy was useless, no medical skills or knowledge of their own products. Asked me to figure out myself what I needed and put
111.
▲
by
mgaunard
7mo ago
The truth is that the NHS is very bad not due to funding, but for structural reasons. The fact I can't even see a GP I'm not registered with (not even an option to pay extra) is ridiculous. You have absolutely no control over your
112.
▲
by
mgaunard
7mo ago
Many people opt for off-shore bonds (which have a number of advantages) which means paying normal tax instead of capital gains, so the capital gains figure doesn't really capture investment as a whole.
113.
▲
by
mgaunard
7mo ago
Different parts of the build seeing inconsistent definitions of the same name is a clear consequence of building things piecemeal rather than as a single project -- which is precisely the problem I described higher up in this thread. Things
114.
▲
by
mgaunard
7mo ago
These local models are far behind the capabilities of latest Gemini Pro, Claude Opus or GPT. Why waste time with subpar AI?
115.
▲
by
mgaunard
7mo ago
Then you have it owned by the parent which owns all relevant sockets. Resource ownership management 101.
116.
▲
by
mgaunard
7mo ago
Clang cannot bootstrap in the same way GCC can; you need GCC (or another clang) to build it. You can obviously build it twice to have it be built by itself (bear in mind some of the clang components already do this, because they have to be
117.
▲
by
mgaunard
7mo ago
You can't fundamentally solve the issue of what happens if you call a function in another TU that takes a T but the caller and the callee have a different definition of T. Whether you call that IFNDR or UB doesn't make much of a d
118.
▲
by
mgaunard
7mo ago
It's pretty simple and works reliably as specified. I can only infer that your lack of familiarity was what made it take so long. Rebuilding GCC with specs does take forever, and building GCC is in general quite painful, but you could
119.
▲
by
mgaunard
7mo ago
It usually ends up somewhat non-generic, with project-specific decisions hardcoded rather than specified in a config file. I usually make it so that it's fully integrated with wherever we store artifacts (for CAS), source (to download
120.
▲
by
mgaunard
7mo ago
C simply has less wording for it because less work has been put into it. The same problems exist.
More ›