Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nh2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
271.
▲
by
nh2
2y ago
Interesting that on Linux Unix Domain Sockets are not faster than TCP. People often say that the TCP stack overhead is high but this benchmark does not confirm that.
272.
▲
by
nh2
2y ago
0.1 % of current revenue fine. If your company made a billion $ revenue per year, it'd have to pay $100k. Doesn't feel like a great incentive to do it right. If they improved debuggability by logging all requests to make the compa
273.
▲
by
nh2
2y ago
Ah, I misunderstood, thinking that your cousin lives close to your aunt. I was suggesting that somebody physically close could do the video call.
274.
▲
by
nh2
2y ago
Put 600 PB into the AWS S3 transfer cost calculator and you get $30M.
275.
▲
by
nh2
2y ago
This is unsafe (glob injection). Never use bash unless you know exactly what you are doing, and even then, better don't. Even worse to recommend bash to somebody who already stated that they don't know what they are doing. Just us
276.
▲
by
nh2
2y ago
> There are many cases where the one calling malloc cannot be the one calling free and must explicitly document That's fine. Special cases, documented deviation from the default convention. > one cannot rely on file descriptors b
277.
▲
by
nh2
2y ago
I don't understand your point. If you construct scenarios where the subprocess you call daemonizes and outlives your program, then there of course there isn't any convention your code should follow because your code isn't in
278.
▲
by
nh2
2y ago
Ask your cousin to visit her and video call you together? Or go there for a weekend and check?
279.
▲
by
nh2
2y ago
> no existing code working like that That doesn't really matter for discussing how correct code _should_ be written. Also, a good amount of existing code works like that. For example, if you `with open(..) as f:` a file in Python an
280.
▲
by
nh2
2y ago
Thanks for your answer. That sounds good on power. My first "connection" question was about Internet connection though. Can you get e.g. 10 Gbit/s, and is there a traffic limit?
281.
▲
by
nh2
2y ago
Why not a simple solution: 1. Programs should call close() on stdout and report errors. 2. It's the job of whomever creates the open file description to fsync() it afterwards if desired. 3. If somebody runs a file system or hardware th
282.
▲
by
nh2
2y ago
> close a file (which ironically is the poster child for RAII) Yes, I call this "RAII is a lie" (T-shirt pending). Closing file descriptors is univerally used to showcase RAII, but it should never be used for that. C++ has the
283.
▲
by
nh2
2y ago
I need that too for hyper-OCR-able monospace labels.
284.
▲
by
nh2
2y ago
What connection deal do you get for that? Does it have uninterruptible power supply?
285.
▲
by
nh2
2y ago
Indeed. Most countries' driving laws for good reason demand that you must maintain enough distance to the vehicle in front of you so that if it hard-breaks surprisingly for _whatever reason_, you will not touch it. Lots of people ignor
286.
▲
by
nh2
2y ago
Such hack is often not necessary. Set larger kernel TCP send and receive buffers and enable BBR congestion control. Speed will usually be good also across high latency links, and no multiplexing logic needed. Especially if you control both
287.
▲
by
nh2
2y ago
It means exactly that, 23 mins on a single core for 10k lines! (Insert "This is C++" Sparta image here.) It is quite clean application code but it _uses_ some of the most template heavy open-source libraries around (e.g. Eigen, CG
288.
▲
by
nh2
2y ago
> The compiler is slower than most mainstream language compilers Depends on which mainstream languages one compares with; there's always C++. My project here has 50k lines Haskell, 10k C++, 50k lines TypeScript (code-only, not comme
289.
▲
by
nh2
2y ago
I found NixOps when searching for an alternative to Ansible that is actually declarative and not just a "bash in yaml" runner. Our Ansible deployments took > 10 minutes and were not "congruent" (well explained in [1])
290.
▲
by
nh2
2y ago
The Haskell LSP crashes less often now than 2 years ago. It isn't perfect yet, but pretty usable for us.
291.
▲
by
nh2
2y ago
What would be the benefit of doing it spun-off vs. in-house when it's still owned by the same company and making the same amount of money?
292.
▲
by
nh2
2y ago
What distributed storage backend does it use if not those two?
293.
▲
by
nh2
2y ago
> they are going to need an infrastructure person No. I run multi-site Ceph+Nomad clusters with NixOS on Hetzner for our startup and maintaining those takes less than 5% of my time. By using great tools and understanding them well you ca
294.
▲
by
nh2
2y ago
Can't you just use them to revoke them?
295.
▲
by
nh2
2y ago
Anybody have a benchmark that shows that postgres is actually slower when on the same machine with same durability settings?
296.
▲
by
nh2
2y ago
Because it offers composable configuration. With Docker or Ansible you usually get a "snapshot" of a system where you can't easily and automatically change the implementation details from outside; you would have to run some u
297.
▲
by
nh2
2y ago
If your app is sane (== uses threads for blocking IO operations) then this does not happen.
298.
▲
by
nh2
2y ago
> You don't need to maintain, secure Of course you need to maintain postgres. Major version upgrades are not automatic, you can't just install a newer binary/library version and start it as you can for SQLite. You need to
299.
▲
by
nh2
2y ago
You know what kills software progress and bug fixing? Closing and locking thousands of Signal issues automatically and locking all conversations for "spring cleaning"... ... which feels exactly like something somebody oversubscrib
300.
▲
by
nh2
2y ago
No, that's wrong. Somebody else burns the same number of calories being active as you do sitting. The article does not compare the the same individuals performing sitting vs. being active. It says that members of hunter-gatherer trib
More ›