Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
n2d4
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
107 ms
·
601.
▲
by
n2d4
3y ago
What would you search for, the zero/root in the derivative? Imagine the derivative is a function like y=x^2-eps with some small eps, say 0.000001. For binary search like that to work, you need to start with two values x1 and x2 such th
602.
▲
by
n2d4
3y ago
If you're interested, I wrote a more elaborate comment on asyncio vs. multiprocessing vs. multithreading here: https://news.ycombinator.com/item?id=36915581 (fyi, Python's multiprocessing has support for interproc
603.
▲
by
n2d4
3y ago
More precise wording would've been: "It's still really easy to write code that runs into race conditions". The race conditions are rare, but code that (rarely) causes them isn't.
604.
▲
by
n2d4
3y ago
I don't think this is true. There are fairly strong voices on both sides inside the community, at this time it's pretty uncertain. To quote Guido: >Let’s not blow it this time. If we’re going forward with nogil (and I’m not sa
605.
▲
by
n2d4
3y ago
In Python, asyncio and multiprocessing packages can get nearly the same or better performance for IO- and CPU-intensive tasks respectively as no-GIL multithreading (and are more performant than GIL multithreading), with only a tiny fraction
606.
▲
by
n2d4
3y ago
Quoting my comment from elsewhere: >I didn't dive deep on this, but I assume that GIL mode can still run anything, including no-GIL code (it is one of their promises, at least). So, unlike 2->3, there is forwards-compatibility.
607.
▲
by
n2d4
3y ago
Stores like that, while scaling well, are orders of magnitudes slower than CPU memory. The kind of application I was thinking of is more compute-intensive, eg. image processing or fancy algorithms.
608.
▲
by
n2d4
3y ago
I didn't dive deep on this, but I assume that GIL mode can still run anything, including no-GIL code (it is one of their promises, at least). So, unlike 2->3, there is forwards-compatibility. It also seems like the latter isn't
609.
▲
by
n2d4
3y ago
It's only about performance. asyncio is still inherently single-threaded, and hence also single core. multiprocessing is multi-core and hence better for performance, but each process is relatively heavy and there's additional over
610.
▲
by
n2d4
3y ago
Heads-up, the parent edited their comment to remove that sentence and added some "convincing" instead, so that's why your comment looks out of place.
611.
▲
by
n2d4
3y ago
The GIL does very little to protect unexperienced users. It's still really easy to run into race conditions, for example, if your thread gets scheduled out in any multi-instruction operation (this is more common than you think [1]). In
612.
▲
by
n2d4
3y ago
Musk has previously talked about X, his envisioned "everything app" [1]. He also merged Twitter into X Corp, a newly formed company. So, he's rebranding Twitter [2]: > And soon we shall bid adieu to the twitter brand and,
613.
▲
by
n2d4
3y ago
> And there won't be enough software that actually utilises the 3D features until a sufficient number of developers get access to the device. Judging by the keynote, Apple doesn't seem to care too much about 3D features. The
614.
▲
by
n2d4
3y ago
It doesn't distinguish, the non-digit character index is hardcoded into the bitmask (note the missing f in the second hex literal): part1 = _pext_u64(part1, 0x0f0f0f0f0f0f0f0f); part2 = _pext_u64(part2, 0x0f000f0f0f0f0f0f); Yo
615.
▲
by
n2d4
3y ago
> Is the lack of such a feature in TypeScript (or any language) a deliberate design decision to avoid unnecessary complexity, or due to technical constraints such as performance considerations? It makes a lot of things impossible. For
616.
▲
by
n2d4
3y ago
What's wrong with The Conversation? They do what they promise, they report on research, and I've never heard nor seen anyone complain about bias. Comparing them to Ann Coulter, who proudly self-describes to be ultra-conservative,
617.
▲
by
n2d4
3y ago
I don't know what happened there, because it should be disabled by default. But if you accidentally enabled it, you can change that in Settings > Accessibility > Voice Control.
618.
▲
by
n2d4
3y ago
> But you know what, that's not much different from something that works in one browser and not in another. The idea behind standardization is precisely to not let that happen.
619.
▲
by
n2d4
3y ago
You would replace the Fastly CDN with Storj, correct? Your link mentions 1500TB of Fastly traffic, which would cost $12k with Storj. Not sure if this is related to parent's 3TB/day number, but I went with that when I estimated the
620.
▲
by
n2d4
3y ago
Using the pricing from your other comment and the numbers from the parent, if I estimate correctly, Storj comes in at about $8k/month? That's cheaper than AWS (considering there are no CDN costs), roughly on the same level as Clou
621.
▲
by
n2d4
3y ago
I'm curious. What would you do, host on-prem? Even if I had the hardware, as a pure software person, I have no clue how I'd even start setting up a physical location to serve data on that scale. And even if the people on the NixOS
622.
▲
by
n2d4
3y ago
I think they meant it in the literal sense; "programming requirements that are dynamic", not dynamic programming algorithms you'd use for the knapsack problem :)
623.
▲
by
n2d4
3y ago
Shouldn't you rather use $TERM=dumb (or unknown) for this, since there are plenty of other escape sequences that you also wouldn't want? The author has a use case (I believe their issue is that unlike $NO_COLOR, setting $TERM take
624.
▲
by
n2d4
3y ago
> thanks to progressive enhancement, and only Svelte and maybe Remix and a handful of others do that. Notably, since a few weeks ago, Next.js (by far the biggest of the pack) has support for progressive enhancement with Form Actions. ht
625.
▲
by
n2d4
3y ago
For those who missed the discussion: https://news.ycombinator.com/item?id=35742476
626.
▲
by
n2d4
3y ago
Matt Levine has a great column, and he talks about ESG and anti-ESG a lot. He won't give you specific advice, but if you want to learn more about this dynamic I can highly recommend reading some of his opinion pieces, such as https:&#
627.
▲
by
n2d4
3y ago
A less misleading title: "25% of all convicted violent offenders are accountable for 63% of all violent convictions", but those numbers aren't big enough to be interesting.
628.
▲
by
n2d4
3y ago
> I believe I've heard this called splitting tails of the distribution Diverging tails [1], or Berkson's paradox [2]. One of the (imo) most underrated fallacies in statistics. [1] https://slatestarcodex.com/2018
629.
▲
by
n2d4
3y ago
Yes.
630.
▲
by
n2d4
3y ago
When they bet on bonds, they essentially bet on the government not to default. When they bet against bonds, they expect a sovereign default, which would be terrible for everyone involved.
More ›