Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jmull
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
571.
▲
by
jmull
2y ago
In real code I've only actually seen memoization used as a cache. That leaves cache validation to some higher level which is in a poor position to do it very well. In my experience, most often it means someone has to figure out what th
572.
▲
by
jmull
2y ago
You made up a fake quote to respond to. What's the point of that? > There is nothing mutually exclusive about analysis and violence. Of course not. That's just the hypothetical presented here, though. The post I replied to argu
573.
▲
by
jmull
2y ago
I know this is useful (for something), but I'm stuck on the plot holes in the motivating story... Why didn't they replace the battery when the app complained? How long would a thief really keep the AirTag anyway? If the thief did
574.
▲
by
jmull
2y ago
> The VFS interface is synchronous On a single thread. There can be multiple threads. Of course leaving a thread idle while waiting for IO isn't great. That's why I noted it at the beginning. But it doesn't seem idling thr
575.
▲
by
jmull
2y ago
They had been talking about making the high-level interface to sqlite async (sqlite3_step()). With io_uring you're talking about the low-level, where blocks are actually read and written. As-is, sqlite is agnostic on that point. It doe
576.
▲
by
jmull
2y ago
> Right, and how do you obtain that "proof of deliberateness"? Or measure that non-physical harm in a way that doesn't give power to people who just don't like what you're saying (possibly the truth)? If only the
577.
▲
by
jmull
2y ago
I'm not buying the rationale in the "async IO" section. First, there's no need to rewrite anything to add an async interface to sqlite if you want (many clients do, whether local or remote). The issue with sqlite's
578.
▲
by
jmull
2y ago
The errata seems like a mistake. Makes more sense to drop the term "control character" and leave the specification of which characters are not allowed as-is. The cat's already out of the bag on this one. Changing the characte
579.
▲
by
jmull
2y ago
> PRAGMA busy_timeout = 5000; I would go higher than this by default. Probably the best default is something like "amount of time a human would be willing to wait for something they want before giving up" which, if you have to
580.
▲
by
jmull
2y ago
> …why wouldn't you want type safety in the logic that happens to be database queries? The problem is you’re writing queries in Litdb’s Javascript/typescript-based query language instead of SQL, but the types it provides still
581.
▲
by
jmull
2y ago
It seems like a step back to have to write SQL in Javascript syntax with a non-standard API. You can use real SQL and get type-safety just using typescript’s “… as MyType”. Of course it blows up if the database doesn’t match up, but so does
582.
▲
by
jmull
2y ago
> health insurance companies to spend 80-85% of their premiums on claims and healthcare I don’t really know what narratives you’re objecting to. But I want to point out the existence of that regulation doesn’t make healthcare companies p
583.
▲
by
jmull
2y ago
Does react use semantic versioning? I’d hate to have to deal with incompatible versions at the rate they release major versions. If you try to stick with one version do you soon get stuck because you need to take a bug fix or security fix t
584.
▲
by
jmull
2y ago
> Disclaimer: the data is made-up, based on my perception of the state of the web The problem is made-up, too, based on the author’s (incorrect) perception of markdown. You can start dropping in as much or as little HTML as you want.
585.
▲
by
jmull
2y ago
Well, designing a module to be a peer dependency and then not strongly favoring backwards compatibility is a choice. When you make that choice you're probably screwing your users, in the long run. As a user of modules, if you can detec
586.
▲
by
jmull
2y ago
Cool idea, but it's science fiction. If this intrigues you, try some really good science fiction on the topic, like Neal Stephenson's "Fall; or, Dodge in Hell".
587.
▲
by
jmull
2y ago
My $dayjob is freaking out about the new cost of VMware. I suspect Broadcom's plan is to figure out just how much they can bear and cut a deal along those lines. That would totally work -- we're neck deep in vmware, and there'
588.
▲
by
jmull
2y ago
It always strikes me as odd how much of using LLMs is doing the dumb plumbing of transferring/connecting data in and out of the LLM and whatever domain things are involved. The LLM is doing the interesting stuff, and we get to do data
589.
▲
by
jmull
2y ago
It's still mostly opt-in. I guess the danger is that creators of libraries start barfing all this stuff into the interface, forcing client apps to deal with it. But at least that lets you know which libraries you may not want to use. H
590.
▲
by
jmull
2y ago
> newer, safer, nimble "newer" is hopefully a non-goal. Unfortunately, an option that is both safer and nimble doesn't appear to exist. I'm still hopeful, but at the moment it looks like rust is our future. A fate onl
591.
▲
by
jmull
2y ago
I don't think you can blame postel's law for people not following it. > when the whole ecosystem follows it you get a gigantic ball of slightly different interpretations You're describing the properties of a long-lived, we
592.
▲
by
jmull
2y ago
> ...tragedy of following Postel's Law. The "law" is: "Be liberal in what you accept, and conservative in what you send." But here the problem is caused by being liberal in what is sent while being more conservat
593.
▲
by
jmull
2y ago
Well, we’re getting into how to choose metaphors here. Not being literal, there’s always room to stretch. Still, you try to choose a metaphor with characteristics congruent with the topic. With a minefield, you can be doing something perfec
594.
▲
by
jmull
2y ago
> minefield Cookies are a bit of a mess, but if you're going to use them, you can follow the standard and all will be well. Not so much a minefield, but a hammer; you just need to take some care not to hit yourself on the thumb. I
595.
▲
by
jmull
2y ago
Popular science has always promulgated culture. If you're only complaining now, it's just because you don't like the culture SA is promulgating today. I don't disagree that SA has a lot of nonsense in it, but that's
596.
▲
by
jmull
2y ago
Might be true, but I don't think the case presented here is very compelling. The general problem is it interprets the evidence to fit the conclusion: studies showing a placebo effect are interpreted as having bad methodology while ones
597.
▲
by
jmull
2y ago
What makes it worth the extra trouble? I guess the "green cards" really work cheap?
598.
▲
by
jmull
2y ago
Swift just lets you use type inference liberally, which is nice, IMO. (Go ahead and opt-out if you disagree.) The problem you describe is more with the design of SwiftUI, which makes massive, complex, extenuated use of the type system. The
599.
▲
by
jmull
2y ago
Is it "childish antics" for the Guardian to have their own political viewpoint? Musk can have a preferred candidate and political stance. And he can run Twitter accordingly. The Guardian can have a preferred candidate and politica
600.
▲
by
jmull
2y ago
I don't know exactly what you mean, but sqlite probably supports your use case. sqlite's defaults balance performance, flexibility, and backwards compatibility. They don't work for every case, but there is almost always a lev
More ›