Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zbentley
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
661.
▲
by
zbentley
11mo ago
> a mechanism to prove that code can or cannot panic would be great As appealing as the idea of a #[cfg(nopanic)] enforcement mechanism is, I think linting for panic() is the optimum, actually. With a more rigidly enforced nopanic guaran
662.
▲
by
zbentley
11mo ago
> I work for a FAANG but I’m not going to say which one. You or a relative are, with almost 100% certainty, relying on code written to that philosophy, by me, daily and widely. Cool story bro. Like, even interpreted maximally charitably,
663.
▲
by
zbentley
11mo ago
This article's incomplete/flawed, I'm afraid. And like ... I take no pleasure in calling that out, because I have been exactly where the author is when they wrote it: dealing with reams of async code that doesn't actua
664.
▲
by
zbentley
11mo ago
You’re not wrong, but the very first lines of asyncio.gather wrap the supplied arguments with create_task if they’re not already Tasks.
665.
▲
by
zbentley
11mo ago
Not GP but off the top of my head: async cancellation, mutex poisoning, drop+clone+thread interactions, and the entire realm of unsafe (which specific language properties no longer hold in an unsafe block? Is undefined behavior present if t
666.
▲
by
zbentley
11mo ago
GP didn’t say “setting a ‘bool’ value to true”, it referred to setting a “field”. Interpreted charitably, this would be done in Go via a type that does support atomic updates, which is totally possible.
667.
▲
by
zbentley
11mo ago
You just described OnlyFans.
668.
▲
by
zbentley
11mo ago
I think this is partly right, partly misguided. Misguided: there's now a focus on causality and precise identification based on symptoms and negative impact caused that wasn't present in the days of exorcisms and shamanism. Those
669.
▲
by
zbentley
11mo ago
People don't innovate to compete on cost?
670.
▲
by
zbentley
11mo ago
Strongly agree. A language which has something like “wantarray” as a first-class feature is semantically…unique, at best, probably more like “flawed by design”. All the oddness with typing and sigls descends from that. Same for autovivifica
671.
▲
by
zbentley
1y ago
> Anything enabled by default without prompting in an update is usually against the user. I believe that, of browser features released, the overwhelming majority are enabled by default (if they even can be disabled). Including TLS/h
672.
▲
by
zbentley
1y ago
Correction on my first bullet, regarding tagged pointers. The link was wrong (mistaken duplication of the link used above), and the tagged pointer optimization is not present in CPython, but only in PyPy, so it largely does not pertain to t
673.
▲
by
zbentley
1y ago
That’s a good argument. I had not considered properties in those terms before, and have historically been skeptical of them in many languages. I’m partly convinced now! I still worry a bit about property authors who don’t follow the “cheap,
674.
▲
by
zbentley
1y ago
> The only way I can see it being a lot of work is if your nodes are very small Which is a totally valid use case for a huge-nodecount cluster! Geo distribution or similar use cases employ this pattern often. > you're going to ho
675.
▲
by
zbentley
1y ago
> If your 1000-node busy production environment is run so close to the edge that 2000 heartbeat messages per second, push it into overload, that's impressive resource scheduling. Eeeh I’m not so sure. The overhead of handling a he
676.
▲
by
zbentley
1y ago
Eh, you may be right, but there's a big difference between "they are going to forbid other OSes by placing a software restriction where they explicitly permit things now" and "they already effectively forbid other OSes b
677.
▲
by
zbentley
1y ago
> If I have to give my consent anew for each app update, I might as well install the apps manually and live in the usual auto-update pop-up hell. Really? That's a whole lot of UI actions/clicks (and a variable number per .app)
678.
▲
by
zbentley
1y ago
> what sort of "everything" do you have in mind? I’ll answer in two parts. First, in my original claim: > not everything is necessarily backed by the same kind of heap-allocated memory object. the emphasized part is import
679.
▲
by
zbentley
1y ago
search for “browser.ml” not “browser.lm”.
680.
▲
by
zbentley
1y ago
Grandparent was referring to outsourcing, not H-1B hiring.
681.
▲
by
zbentley
1y ago
What about TLS versions? Or tabs, way back in the day? Or security warnings/prevention for CORS? All of those were, as far as I know, enabled by default and released in browser updates.
682.
▲
by
zbentley
1y ago
Sure, surgery and several other risky and/or invasive treatments. Or you could take statins and prevent it from becoming an issue in the first place.
683.
▲
by
zbentley
1y ago
I think we’re using different definitions of “compile time”. I know who you are, and am sure everything you say about the mechanisms of BEGIN is correct, but when I refer to “compile time”, I’m referring to something that happens before my
684.
▲
by
zbentley
1y ago
How are perl5’s BEGIN blocks equivalent to comptime? It’s been awhile, but I recall BEGIN blocks executing at require time—which, in complicated pre-forking setups that had to be careful about only requiring certain modules later during p
685.
▲
by
zbentley
1y ago
> Mature C programs written by professional coders (Redis is a good example) basically never crash in the experience of users That is a very difficult assertion to validate. It might well be true! But so many conversations about memory s
686.
▲
by
zbentley
1y ago
Non-paywalled link: https://archive.is/pQt2k
687.
▲
by
zbentley
1y ago
How so? Genuine question. Duck typing is “try it and see if it supports an action”, where interface declaration is the opposite: declare what methods must be supported by what you interact with. In Python, that would be a Protocol ( https:&
688.
▲
by
zbentley
1y ago
Yeah, spelunking around this is a great way to learn a language! That said, “is an object” is a bit of an overloaded term in this context. Most things in Python can be semantically addressed as objects (they have fields and methods, “dir”
689.
▲
by
zbentley
1y ago
Yes, but Direct File moved us closer to a future where the government could pre-fill data for (and/or potentially just send a bill to) tax filers. Even if other free tax filing software exists, the loss of Direct File is painful becaus
690.
▲
by
zbentley
1y ago
Taking this more seriously than it perhaps deserves: if that’s true, why isn’t widespread adoption of this approach growing? Whether or not it’s a good idea, “realistic” implies practicality, which could presumably be measured by whether pe
More ›