Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jart
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
361.
▲
by
jart
2y ago
If you think this is unpleasant, you should see the environmentalists who try to take a poke at Jeff Dean on Twitter.
362.
▲
by
jart
2y ago
Your libc fork() implementation will lock the stdio mutexes automatically before calling SYS_fork, so the code I wrote in my comment would be fork safe. Your child process would need to spawn the flusher thread again if it's desired th
363.
▲
by
jart
2y ago
That's what they want. International institutions actually go out of their way to recruit people from different backgrounds, specifically so those people will warn them whenever they're about to embarrass themselves in front of ot
364.
▲
by
jart
2y ago
The smartest thing to do is still probably not buffering. What's wrong with the thread? It would take maybe 15 lines of code to implement. It would be correct without rarely occurring bugs. It doesn't need signals or timers. It
365.
▲
by
jart
2y ago
Signals aren't a nightmare it's just that fflush() isn't defined by POSIX as being asynchronous signal safe. You could change all your stdio functions to block signals while running, but then you'd be adding like two sys
366.
▲
by
jart
2y ago
The only way you'd be able to do it is by having functions like fputc() call clock_gettime(CLOCK_MONOTONIC_COARSE) which will impose ~3ns overhead on platforms like x86-64 Linux which have a vDSO implementation. So it can be practical
367.
▲
by
jart
2y ago
Give me ethernet or give me death. I have a couple MikroTik RBcAPGi-5acD2nD-US cAPs connected to a couple CRS312 10gb switches connected via a XS+DA0001 cable to my RB5009UG router, which is connected to a 2.5gb modem. I don't put a lo
368.
▲
by
jart
2y ago
Yeah Ubiquiti used to be great before they went the other way. Now Mikrotik is the new hotness.
369.
▲
by
jart
2y ago
She's very much an agitator. However the C++ leaders aren't trying to avoid offending anyone. They're trying to do something even more difficult which is not making anyone feel uncomfortable. That paper's title makes peo
370.
▲
by
jart
2y ago
Most people haven't had any genuine exposure to the cultures that exist on the extreme ends of the political spectrum. You would have to be familiar with them to understand what emotions that dredges up, otherwise you're going to
371.
▲
by
jart
2y ago
Yes how much longer till we see Morgan Stanley VPs picketing outside demanding a living wage and humming The Internationale.
372.
▲
by
jart
2y ago
It's not just Tesla. All the online services you depend on are run this way, and none of it's regulated. Governments don't know how to regulate software companies like Tesla. They know how to regulate people constructing home
373.
▲
by
jart
2y ago
VP at Goldman is equivalent to Senior SWE according to levels.fyi and their entry level is Analyst. I'm surprised by the compensation though. I would have thought people working at a place with gold in the name would be making more. Al
374.
▲
by
jart
2y ago
No one actually lives up to their principles, but it's still important that we have them. If you actually do live up to yours, then you need to adopt better principles.
375.
▲
by
jart
2y ago
It was difficult to dig up, but I found it for you. https://security.googleblog.com/2024/09/eliminating-memory-s... Also headlines do not accurately model reality. The news only reports on things that are newswort
376.
▲
by
jart
2y ago
fly.io publishes their post-mortems here: https://fly.io/infra-log/ The last post-mortem they wrote is very interesting and full of details. Basically back in 2016 the heart or keystone component of fly.io production i
377.
▲
by
jart
2y ago
https://github.com/jart/cosmopolitan/blob/master/third_party...
378.
▲
by
jart
2y ago
Didn't Project Zero publish a blog post a few months ago, saying that old code isn't your security problem? They said it's new code you have to worry about. Zero also had copious amounts of data to demonstrate their point. In
379.
▲
by
jart
2y ago
Sex offender information is public so we can keep those people far away from children. There aren't any children on the C++ standards committee. You can actually be criminally prosecuted if you use someone's status to harass or in
380.
▲
by
jart
2y ago
You should know better than to take the word of an anonymous comment and call it fact. Andrew T. (the guy in question) gave this statement on Reddit: https://www.reddit.com/r/programming/comments/1gynl1v/
381.
▲
by
jart
2y ago
You don't need UBI to pursue your intellectual dreams. The upper classes already have UBI which is called living off interest and dividends. Even if you don't have a trust fund, you can still pursue your dreams. Just go backpackin
382.
▲
by
jart
2y ago
> Our role as technology leaders is to support this transition to AI-assisted living Why is it that we all woke up one morning and every corporation is suddenly saying this same thing?
383.
▲
by
jart
2y ago
With that kind of build latency, you're weeding out people who don't want to spend their whole day on coffee break.
384.
▲
by
jart
2y ago
Planning and "extreme care" makes sense if you're building a bridge. Professional software engineering is more like a demolition derby. If you want to be successful you should focus on building fast and breaking things. It wo
385.
▲
by
jart
2y ago
The US already spends $1000/month per citizen on entitlements. If you just give everyone $500/month instead, you'd eliminate the deficit and have a few hundred billion leftover to spend on colonizing planets.
386.
▲
by
jart
2y ago
Adopting an existing well-established style guide is a good way to make these sorts of questions go away. https://google.github.io/styleguide/cppguide.html
387.
▲
by
jart
2y ago
Open source is a thing because it's the most rewarding path. The respect I earn giving my software away is worth a lot more than any money I could hope to earn selling it. It's not possible to sell software. I also don't want
388.
▲
by
jart
2y ago
Well maybe you should be, since focusing on the technology is what allows our disagreements to be impersonal.
389.
▲
by
jart
2y ago
That's the same argument companies like Google make when they're in the exploit phase of their lifecycle. We can afford to let search results get worse, just so long as they're no so much worse people don't turn to our c
390.
▲
by
jart
2y ago
It places a hard scaling limit on how big an open source project can become. Projects like the Linux Kernel spend enormous amounts of political capital restraining decadent programming practices, since it's the only way a codebase like
More ›