Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mgaunard
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
331.
▲
by
mgaunard
11mo ago
Systems programming in general is a bit out of fashion.
332.
▲
by
mgaunard
11mo ago
You only achieved a deadlock by re-introducing mutexes.
333.
▲
by
mgaunard
11mo ago
Personally I don't even understand why NAT gateways are so prevalent. What you want most of the time is just an Internet gateway.
334.
▲
by
mgaunard
11mo ago
If you want to avoid any kind of traffic fees, simply don't allow routing outside of your VPC by default.
335.
▲
by
mgaunard
11mo ago
They're not, the interactions with the memory model are different, as are the guarantees. CPS shouldn't be able to deadlock for example?
336.
▲
by
mgaunard
11mo ago
that isn't a mutex, that's delegating work asynchronously and delegating something else to run when it is complete (the implicitly defined continuation through coroutines). In systems programming parlance, a mutex is a resource wh
337.
▲
by
mgaunard
11mo ago
what was wrong with using a python repl with pyarrow/polars/duckdb for this?
338.
▲
by
mgaunard
11mo ago
The very idea of a mutex is that it is synchronous. You wait until you can acquire the mutex. If it's asynchronous, it's not a mutex anymore, or it's just used to synchronously setup some other asynchronous mechanism.
339.
▲
by
mgaunard
11mo ago
You could easily get better performance with a pair of well-optimized high-density cabinets, much more reliable and not even that expensive to operate legitimately.
340.
▲
by
mgaunard
11mo ago
500k isn't even that many. Can probably rent that many IPs for a few grand.
341.
▲
by
mgaunard
11mo ago
You made me check the programme of many university courses. Most parallel programming courses are at Masters level and require specialization, but those are much more advanced (sorting networks, distributed computing on supercomputers and G
342.
▲
by
mgaunard
11mo ago
I find it better to model that as an Actor than a mutex, but I guess it's inherently the same thing, except the actor also allows asynchronous operations.
343.
▲
by
mgaunard
11mo ago
tl;dr mutexes are evil because they don't compose, STM is the solution because it does compose, otherwise just avoid shared state, or even state entirely. Not anything that's not already covered in any undergraduate CS course.
344.
▲
by
mgaunard
1y ago
The native client had features the web one didn't have, like video calls, so it was actually the one leading features-wise. I guess it's because they decided to make the web client first-class, and instead of maintaining a native
345.
▲
by
mgaunard
1y ago
Well, he's using try/catch locally. You're not supposed to handle errors locally with exceptions. The whole point is inversion of control, you manage them at the point where you can do meaningful recovery, which then triggers
346.
▲
by
mgaunard
1y ago
sure, but that has limitations as well, since gotos can't cross lexical scopes, so you can't introduce variables later on, and it's easy to mess up. Destructors are a higher-level and safer approach.
347.
▲
by
mgaunard
1y ago
Don't use try/catch in the first place; that's where his error lies.
348.
▲
by
mgaunard
1y ago
That means you cannot use early exit, and all your variables must be checked as to whether they were initialized (which on top of the checks might also require further state).
349.
▲
by
mgaunard
1y ago
Author completely misunderstands how to use exceptions and is just bashing them. A lot of what he says is inaccurate if not outwardly incorrect. Also Bjarne's control of C++ is quite limited, and he is semi-retired, so asking him to &q
350.
▲
by
mgaunard
1y ago
There are a bunch of different encodings for decimal floating-point. I fail to see how this is the standard that all languages are converging to. IEEE754 normalizes two encodings, BID and DPD, for decimal32, decimal64 and decimal128 precisi
351.
▲
by
mgaunard
1y ago
How do containers help when bpf is mostly a matter of kernel version?
352.
▲
by
mgaunard
1y ago
I did get a PCI-Express to M2 adapter and installed an NVMe drive. That was indeed the biggest upgrade ever.
353.
▲
by
mgaunard
1y ago
My desktop computer is a Sandy Bridge from 2011. I still haven't seen any compelling reason to upgrade.
354.
▲
by
mgaunard
1y ago
That means you need to deploy with a compiler etc., not ideal.
355.
▲
by
mgaunard
1y ago
What's most annoying with gperf and similar tools is that they aren't really suited to applications where the set of keys is known at runtime during initialization.
356.
▲
by
mgaunard
1y ago
of course, why wouldn't you? I was using it even before it hit 1.0
357.
▲
by
mgaunard
1y ago
doesn't work well on phones, run query button is not visible.
358.
▲
by
mgaunard
1y ago
why is Apple focusing on AI? do they have any AI products like Google, Meta or OpenAI?
359.
▲
by
mgaunard
1y ago
and then cloudflare converts that to http/2 or even 1.1 for the backend
360.
▲
by
mgaunard
1y ago
it needs a compiler to convert it to machine code, it also has a non-trivial runtime...
More ›