Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hansvm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
361.
▲
by
hansvm
11mo ago
Which parts of it seem objectionable?
362.
▲
by
hansvm
11mo ago
I've seen a few of these in my career, if I understand the author correctly. You have a big ball of mud that can theoretically be 10x or 100x faster, but the costs are diffuse and can't be solved by just finding a hotspot and opti
363.
▲
by
hansvm
11mo ago
One other trick I use reasonably often is using something more complicated than AoS or SoA layouts. Reasons vary (the false sharing padding in your article is one example), but cache lines are another good one. You might, e.g., want an AoSo
364.
▲
by
hansvm
11mo ago
One normal "trick" is phantom typing. You create a type representing indices and have a small, well-audited portion of unsafe code handling creation/unpacking, where the rest of the code is completely safe. The details depend
365.
▲
by
hansvm
11mo ago
> graph-heavy code Could you share some more details, maybe one fully concrete scenario? There are lots of techniques, but there's no one-size-fits-all solution.
366.
▲
by
hansvm
11mo ago
Ballpark math says you could sustain it for half an hour on Hetzner for $5k-$6k (only from 1500 IPs though), at least if your account didn't get banned first and you're halfway decent at network programming. I have no idea what a
367.
▲
by
hansvm
11mo ago
TCP/IP is, in theory (AFAIK all experiments related to this fizzled out a decade or two ago), a global resource when you start factoring in congestion control. TLS is less obviously something you would want kernel involvement from, giv
368.
▲
by
hansvm
11mo ago
> "I don't need all that fancy stuff". Yes you do. > let's turn off dynamic mapping and not index all those text fields you never query on
369.
▲
by
hansvm
11mo ago
That's fair. I'd agree that isn't composition. I'm not sure the thing you describe is worse than inheritance.... It's not composition though.
370.
▲
by
hansvm
11mo ago
But both of those avoid the pitfalls of inheritance. "Othering" is a common phenomenon, and I think it's useful when creating an appropriate definition of composition.
371.
▲
by
hansvm
11mo ago
"Gluing together in a way that's not inheritance" is useful enough by itself. Most class hierarchies are wrong, and even when they're right people tend to implement th latest and greatest feature by mucking with the hier
372.
▲
by
hansvm
11mo ago
One of the main points of language is to evoke ideas in others' minds. "Autumn" and "fall" will normally evoke different ideas in US english (the former bringing about views of the cozier parts of the season, and th
373.
▲
by
hansvm
11mo ago
me> I'm writing a small article about a famous public figure (Sam Altman) and want to be respectful and properly refer to his mother when writing about her -- a format like "Mrs Jane Smith (née Jones)". Would you please wr
374.
▲
by
hansvm
11mo ago
"You're absolutely right, and I apologize for the confusion." For an AI-centric product, this has my spidey senses tingling. Are you using AI to help with translations or something?
375.
▲
by
hansvm
11mo ago
> It also helped me realize there was nothing I could do at my level of responsibility to change the number in any meaningful way That doesn't sound right. If your role is worth having around then it should have impact on the number
376.
▲
by
hansvm
11mo ago
Not really. The thing Vespa solved was taking existing ANN methods and fixing a disk/RAM tradeoff (and some other niceties). That's nowhere close to adequte when: 1. As softwaredoug mentioned, you might want to filter results, pot
377.
▲
by
hansvm
11mo ago
Yep. My heart-rate is normally pretty low (45bpm or so, 55 if I'm walking around), and my BP is on the high end of normal, but white-coat syndrome reliably brings it up to a fluttery 110bpm and 155/125 pressure. I was just in a wr
378.
▲
by
hansvm
11mo ago
Minor edit: The "5.3%" I wrote out seemed too large and was bothering me all day. The culprit is that a Major Third is 5/4, not 4/3, leading to the D/E ratio being 1.2% too small rather than 5.3% too large. Apologie
379.
▲
by
hansvm
11mo ago
It...depends. If you're working in a continuous environment rather than discrete (choirs and strings can fudge notes up or down a bit, but pianos are stuck with however they're tuned), you'll often find yourself wanting to pr
380.
▲
by
hansvm
1y ago
Yeah, it's right up there with the rest of the shady business practices. Delta, for example, charges more physical cash for a cash+miles ticket than for a pure cash ticket (every time I've been inclined to try to use miles over th
381.
▲
by
hansvm
1y ago
For more fun, Frontier's app doesn't even run on my phone. Step 1 to fly with them is to go buy a phone from the last 2-3 years (can probably get away with something a little older if iOS).
382.
▲
by
hansvm
1y ago
I'm not sure I understand. It sounds like you're saying you don't like the leg room being so cramped that beyond a certain height you're physically required to angle your knees into a neighboring seat's space. That&
383.
▲
by
hansvm
1y ago
I'd normally agree, but this is a case I don't see often -- despite the form being terrible the content is good. I certainly would strongly prefer the same post with better writing, but if the entire 2019 internet were replaced wi
384.
▲
by
hansvm
1y ago
Resumes are normally tailored for the role. The CV is the raw source you use to tailor them. It's a little strange to have a blanket "resume" available for public perusal.
385.
▲
by
hansvm
1y ago
> his resume is designed poorly ... too long The only readily available link I saw was to his CV, and it was shorter than a lot of resumes. It's wordier per line item than a normal CV, but it's not bad. Assuming it passes a san
386.
▲
by
hansvm
1y ago
> So this law wouldn't alter the outcome in the slightest. If an unchecked tyrant exists, do they really need the paper-thin facade provided by manhandling the English language to pretend that some law supports their actions?
387.
▲
by
hansvm
1y ago
I don't normally comment on formatting, but for a language I assume they're dog-fooding for the demo it's amusing that none of the gradient-backgrounded text renders visibly ("HTML-based", "building web apps&qu
388.
▲
by
hansvm
1y ago
It depends on the friend, but I definitely wouldn't be opposed to it.
389.
▲
by
hansvm
1y ago
It's only a tax evasion concern in the first place because the US started the trend of hoovering up wealth generated in other countries, which in-context still sounds like US overreach. They weren't arguing for anyone's right
390.
▲
by
hansvm
1y ago
FWIW, I don't think intro stats is easy the way I normally see it taught. It focuses on formulae, tests, and step-by-step recipes without spending the time to properly develop intuition as to why those work, how they work, which ones y
More ›