Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sgarland
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
481.
▲
by
sgarland
1y ago
Agreed; if you’re immediately requesting the entire generator, there’s little point in using it in the first place.
482.
▲
by
sgarland
1y ago
Thanks for the detailed explanation!
483.
▲
by
sgarland
1y ago
I like map() and filter() in Python, but unfortunately they’re 2nd class citizens compared to list comprehensions, which continue to get optimizations to further increase their speed. I like comprehensions as well - and their syntax is quit
484.
▲
by
sgarland
1y ago
Man, I love stuff like this! The hardware aspect of these things is always the most impressive to me. I make plenty of small software tools, as I’m sure many HN readers do, but designing and building bespoke hardware that interacts with sai
485.
▲
by
sgarland
1y ago
Depends how much bleed your paper has with your marker, but in general it’s quite accurate to eyeball it. I’ve never used it on punch cards, but I have for large documents.
486.
▲
by
sgarland
1y ago
The sub-linked legal document about Frank’s synthetic data generation was quite interesting, specifically how much difficulty their hired consultant (a Data Science Professor) had in creating it. It can indeed be a tricky problem to do in a
487.
▲
by
sgarland
1y ago
> doubly-linked lists are approximately useless Leaf pages in InnoDB’s B+tree implementation is the big one I can think of. Turns out being able to quickly walk pages for a range scan is helpful. I agree that there isn’t wide variety of
488.
▲
by
sgarland
1y ago
Maybe you need a better backpack? I’ve had zero cracked screens. I’ve also never cracked my phone screen, though, so there’s that. I did drop my watch last week, and the second hand fell off, though.
489.
▲
by
sgarland
1y ago
As someone with experience with a company that did hybrid, I’ll say: it only makes sense if your infra team deeply understands computers. The end state is “just some IaC,” wherein it doesn’t really matter to anyone where the application liv
490.
▲
by
sgarland
1y ago
Tbf, this is a natural consequence of companies doing premature optimization / cargo culting. There are many, many reasons to NOT go into microservices. Kelsey Hightower had some thoughts on this [0] back in 2020. You can run a hell of
491.
▲
by
sgarland
1y ago
I didn’t say they’re bad at their job, I said I find the technology choice horrifying. That’s a personal take, not a value statement.
492.
▲
by
sgarland
1y ago
I don’t even think it’s memory, it’s lack of experience. A lot of the battle-tested infrastructure is now abstracted away to the point that a lot of devs are hard-pressed to explain the difference between AWS’ ALB and NLB, much less name OS
493.
▲
by
sgarland
1y ago
> Do you think Stripe has 1% contention directly on an OLTP DB? Definitely not. Stripe runs on top of MongoDB, which is horrifying in its own right, but in any case comparing them to a shop running an RDBMS is apples to oranges.
494.
▲
by
sgarland
1y ago
While I am a fan of TigerBeetle’s general stance on correctness, coding practices, and their desire to hyper-specialize, I have some critiques on the post. I think the paragraph about multi-node is a bit misleading. Contrary to what cloud n
495.
▲
by
sgarland
1y ago
As a sibling comment said, what maintenance? The only problem I’ve ever had with any Mac was a bad keyboard on my M4 MBP, and that showed itself so quickly that even without AppleCare it would have been covered. Between work and personal, I
496.
▲
by
sgarland
1y ago
I went from a base M1 Air to a mid-spec’d M4 Pro. My main reasons were the 14” screen size, and the lack of a wedge shape for the new Airs (I loved the wedge). IMO, 14” is the perfect size for a laptop that actually sees time in your lap. M
497.
▲
by
sgarland
1y ago
Even if you are into gaming, between native builds and Crossover, it’s quite capable. It’s not going to match a top of the line Windows build with a dedicated GPU, but it’s shockingly capable.
498.
▲
by
sgarland
1y ago
This is utterly bonkers to me, well done.
499.
▲
by
sgarland
1y ago
It loaded fine for me. iOS 26.0, iPhone 16 Pro.
500.
▲
by
sgarland
1y ago
Oof, misread that.
501.
▲
by
sgarland
1y ago
As an aside, MySQL will optimize WHERE IN better than OR, assuming that the predicates are all constants, and not JSON. Specifically, it sorts the IN array and uses binary search. That said, I’m not sure if it would have any impact on this
502.
▲
by
sgarland
1y ago
So add a comment. “X is easier to understand” shouldn’t mean taking a 100x performance hit.
503.
▲
by
sgarland
1y ago
TIL, thanks! It looks like 3.14 is also changing it so that all evaluations are lazy.
504.
▲
by
sgarland
1y ago
Yes, annotations allows you to use the declared types as they are, no strings.
505.
▲
by
sgarland
1y ago
The giant parts of the country routinely vote against their own self-interests, and refuse to accept evidence to this effect.
506.
▲
by
sgarland
1y ago
They farm corn and soy almost exclusively, because those are heavily subsidized by the USG. Most of America’s fruits and vegetables come from elsewhere. Source: I lived in Nebraska and Indiana.
507.
▲
by
sgarland
1y ago
Not quite - if you have a crash / hard restart, the table is truncated. If Postgres gracefully shuts down, the data is retained.
508.
▲
by
sgarland
1y ago
Aside from the lack of tuning mentioned, it wasn’t mentioned what variety of UUID was used - I assume v4. If so, the visibility map impacted the performance [0]. [0]: https://www.cybertec-postgresql.com/en/unexpected-do
509.
▲
by
sgarland
1y ago
GraphQL isn’t changing your schema, it’s issuing queries to satisfy your request. The queries are in no way guaranteed to be optimal, or well-suited for your schema or indices.
510.
▲
by
sgarland
1y ago
I don’t hate this nearly as much as I hate YAML. Now get everyone else to adopt it - good luck.
More ›