Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jrockway
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
361.
▲
by
jrockway
2y ago
I agree with this. Having worked at FAANG, I'm always excited by the fanciness that is required. Spanner is the best database I've ever used. That said, my feeling is that in the real world, you just pick Postgres and forget abou
362.
▲
by
jrockway
2y ago
2 fewer characters to type every time you switch branches. I can’t complain.
363.
▲
by
jrockway
2y ago
Does this still work? The article is from 2021 but when I last tried it this year, Go appeared to (newly) depend on headers that Zig doesn't need and thus it doesn't work. The Github issue was something like "yeah, we don&#x
364.
▲
by
jrockway
2y ago
I can definitely get behind using some other migration library! Thank you for writing and sharing this!
365.
▲
by
jrockway
2y ago
I really think the library search is more of something you inherit from other languages, though database drivers are something you need to go looking for. The standard library has an adequate HTTP router (though I prefer grpc-gateway as it
366.
▲
by
jrockway
2y ago
No, but a lot of HN is (former) kids that had to sit through D.A.R.E for 12 years of school. "dope" immediately means "drugs" in my mind. I was really sad when I learned what drugs actually were and it wasn't some
367.
▲
by
jrockway
2y ago
I like the term post-Postel. There are two reliability constraints that all software faces; security and interoperability. The more lax you are about validation, the more likely interoperability is. "That's weird, I'll just
368.
▲
by
jrockway
2y ago
I think that Amazon is past the point where excellent software engineering is what makes them money. What makes them money is going out for golf with some Fortune 500 exec that saw "Stats powered by AWS" on the last NFL game, and
369.
▲
by
jrockway
2y ago
You can also rate limit on the server side. Service A talks to Service B. Service B is 3 replicas. Each replica keeps track of how many times Service A talked to it. If that goes over the limit / 3, deny the request. Now there is
370.
▲
by
jrockway
2y ago
I used to bike 30 miles a day and never lost weight. Cardio is good for pretty much one thing: building cardio. To lose weight, you have to eat less. GLP-1 receptor agonists make your brain think that enough food is actually enough food,
371.
▲
by
jrockway
2y ago
I was prescribed a CPAP (well, APAP as you mention) and the first week was miserable. I think I got 3 hours of sleep total that week, and obviously felt like crap. I talked to my primary doctor and she's like "well then go back
372.
▲
by
jrockway
2y ago
Definitely not. It seems that the keyboard on Apple Vision Pro is an onscreen keyboard you type with using your eyes. The Vision Pro also broadcasts your eye movements to a screen on the front of your headset, and the combination of the t
373.
▲
by
jrockway
2y ago
I think the underlying flaw here is that pointing your eyes at a virtual keyboard in space to type passwords is just a poor input method. Take away the VR headset and do the same thing and the flaw still exists. Now I want to make a keyboa
374.
▲
by
jrockway
2y ago
Well, you still only have to try one other password. If you get locked out after one password attempt and nobody knows that you use dvorak, your defense works, but if you have three attempts, you can also add colemak to your list of things
375.
▲
by
jrockway
2y ago
I know exactly what you're talking about! I used to go there so often as a kid and definitely remember the crack. (Also nearby was that exhibit where you could perform electrolysis on some water. It had a "push to start" b
376.
▲
by
jrockway
2y ago
> That may get you through if there is only one x.Close, but now you have to offer the guarantee to the callers that there will only ever be one Close error returned. No you don't. It's a multierror, a feature of the standard
377.
▲
by
jrockway
2y ago
The app doesn't crash, it's deadlocked. It can't do any more work because to do future work it needs to accept TCP connections. It can't do that because it has hit a resource limit. It hit the resource limit because i
378.
▲
by
jrockway
2y ago
You're really hung up on Kubernetes but it was an incidental comment in a hypothetical story. "You wake up and find out that Heroku's staff is anxiously awaiting your departure from your apartment to tell you that your app is
379.
▲
by
jrockway
2y ago
There isn't a bug, it's resource exhaustion. You open a bunch of files and they fail to close. You don't log errors on the close, so you have no idea it's happening. Now your app is failing to open new file descriptor
380.
▲
by
jrockway
2y ago
errors.Is is true for whatever x.Close() returned. If I'm going to do something upstream based on the error, I use a type. Most of the time, it's just log.Error text though.
381.
▲
by
jrockway
2y ago
The app crashes because "too many files" includes the fd accept(2) wants to allocate so your app can respond to the health check.
382.
▲
by
jrockway
2y ago
Ignoring errors is generally a poor practice. You don't have to stop your program on errors, but you should at least log some percentage of them so that when the failure cascades, you have some idea where the failure started.
383.
▲
by
jrockway
2y ago
> If close fails after read, who gives a shit? ulimit -n You ignore errors on close, and one morning you wake up with your app in CrashLoopBackoff with the final log message "too many files". How do you start debugging this? C
384.
▲
by
jrockway
2y ago
I defer these AND check the errors. https://pkg.go.dev/go.uber.org/multierr#hdr-Deferred_Functio... has a nice API. I wrote my own version for $WORK package (as our policy is that all errors must be wrapped with a mes
385.
▲
by
jrockway
2y ago
They really clamp your finger in the pulse oximeter probe, and it's taped with one-time-use adhesive. So there is no taking it out when it hurts, you just have to live with it and try to sleep. The instructions say "it's no
386.
▲
by
jrockway
2y ago
I don't really see these upgrades as being for iPhone 15 users. If you smash your phone or whatever, you get this years model and it's mostly like last year's model except it's not samashed. I upgraded from the X to the
387.
▲
by
jrockway
2y ago
At-home sleep studies measure heart rate (maybe ekg, some probe is on your skin), blood oxygen, sound, and the direction of gravity relative to your testing device (to classify results by "back", "side", "prone"
388.
▲
by
jrockway
2y ago
This is a neat feature. I read Reddit and r/applewatch shows up in my feed a lot. 99% of the questions are "do I have sleep apnea?" At least the watch can give them my cut-n-paste response "you should talk to your doc
389.
▲
by
jrockway
2y ago
I'm just happy that the "service mode" screens are easy to get to. Changing the ramp-up from 10 minutes to 45 minutes made a big difference for me. (I'm honestly surprised someone doesn't make the vendors require a
390.
▲
by
jrockway
2y ago
At the bottom the recommended next article is "The Nikon Z9 will be a flop." Guess they were wrong about that one.
More ›