Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cakoose
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
cakoose
21d ago
> putting the record data right after the CacheEntry members I assumed they couldn't do that because they're using it with some kind of generic HashMap<K, V>. In that situation, can "V" be dynamically sized? A d
2.
▲
by
cakoose
6mo ago
> it avoids ambiguity by using ordered choice (the first matching rule wins) PEG parsing tool authors often say that ordered choice solves the problem of ambiguity, that's very misleading. Yes, ordered choice is occasionally useful
3.
▲
by
cakoose
1y ago
Now I'm curious -- is that here a way to do this that avoids downloading any more than strictly necessary? The command above downloads the whole repo history. You could do a depth=1 to skip the history, but it still downloads the he la
4.
▲
by
cakoose
1y ago
Why will TypeScript 7 make Node.js irrelevant? In TypeScript 7, the compiler will be written in Go instead of TS. But the compiler will still produce JS code as its output and so Node.js is still relevant for running that JS code. Or is the
5.
▲
by
cakoose
1y ago
> When we started 8 years ago, SQL databases were “old fashioned.” NoSQL was the future. Hadoop, MongoDB, Cassandra, InfluxDB – these were the new, exciting NoSQL databases. PostgreSQL was old and boring. In 2017? I thought the NoSQL hyp
6.
▲
by
cakoose
1y ago
Yup, the example doesn't make sense for the reason you pointed out. You could water down the example a bit to make it work: 1. Assume there's some other authentication mechanism for client-server communication, e.g. TLS. 2. The cl
7.
▲
by
cakoose
2y ago
Offload only makes sense if there are other advantages, e.g. speed, power. Without those, wouldn't it be better to use the NPUs silicon budget on more CPU?
8.
▲
by
cakoose
2y ago
What happens if we gradually transition to memory-safe languages for new features, while leaving existing code mostly untouched except for bug fixes? ... In the final year of our simulation, despite the growth in memory-unsafe code, the
9.
▲
by
cakoose
2y ago
A few years ago I was considering Heroku for something new. But then I learned that Heroku Postgres's HA offering used async replication, meaning you could lose minutes of writes in the event that the primary instance failed. That was
10.
▲
by
cakoose
3y ago
But the article claims it applies to SQL databases as well. > Are these rules specific to a particular database? > > No. These rules apply to almost any SQL or NoSQL database. The rules even apply to the so-called "schemaless&
11.
▲
by
cakoose
3y ago
> Cargo-cult thinking means only looking for, and only accepting, confirming evidence. This article's definition of cargo-cult thinking seems incorrect. The definition I'm familiar with: when you lack a true understanding of so
12.
▲
by
cakoose
3y ago
I'm not the person you're responding to, but I interpreted their comment as, "doesn't the argument against having protobuf check for required fields also apply to all of protobuf's other checks?" From the linke
13.
▲
by
cakoose
3y ago
One core Lua thing that I think is an ugly mistake: trying to represent maps (dictionaries) and arrays using a single logical data type. Most languages use different data types but with some API overlap, e.g. maps and arrays are both "
14.
▲
by
cakoose
3y ago
It is also possible for a link-time optimizer to observe that a non-static global variable is never modified and optimize that away too. But the Postgres mailing list is talking about 2000 global variables being a hurdle to multi-threading.
15.
▲
by
cakoose
3y ago
I think there might be a terminology mix-up here. In C, a global variable with the `static` keyword is is still mutable. So it typically can't be constant-folded/inlined. The `static` modifier in that context just means that the s
16.
▲
by
cakoose
3y ago
> I think as a straightforward, easily correct transition from 2000 globals, a giant structure isn't an awful idea. Agree. > It's not like the globals were organized before! Using a struct with 2000 fields loses some encapsu
17.
▲
by
cakoose
3y ago
> We migrated Netflix’s mobile apps to GraphQL with zero downtime Is "zero downtime" relevant here? For example, when migrating a database that is the source-of-truth for data, then yeah, downtime is something you have to conte
18.
▲
by
cakoose
4y ago
Having it be evenly divisible by all those bases is neat! But I wouldn't say "no wasted bits" unless 120 bits is also exactly the right length for a particular use case. For example, if my use case would be served better by 6
19.
▲
by
cakoose
4y ago
Offering a bounty like this has value, but probably only for finding shallow bugs. Thoroughly evaluating security/cryptography takes deep expertise and a lot of time. You're not going to elicit that without more money, impact/
20.
▲
by
cakoose
4y ago
"git undo" tool: https://github.com/arxanas/git-branchless/wiki/Command:-git-...
21.
▲
by
cakoose
4y ago
> It's therefor also fine if you're writing in a monospace/fixed-width font. This is the standard explanation I see everywhere, but I don't get it. With two spaces, the gap after a period is longer than a gap after a
22.
▲
by
cakoose
4y ago
There are analogies that make this seem bad (fake construction worker) and analogies that make this seem good (ethical security researcher). We need to go past the analogy and make a deeper assessment of the factors that matter. For example
23.
▲
by
cakoose
4y ago
I see this more like a security researcher identifying a vulnerability in a system, executing a proof of concept, and then disclosing it. This vulnerability is being exploited by worse actors. Exposing the vulnerability publicly may bring a
24.
▲
by
cakoose
4y ago
I wasn't saying langcc was not powerful, just that the shape of the argument doesn't make sense. That part of the README goes something like this: 1. It can parse Python and Go efficiently. 2. In fact it's so expressive that
25.
▲
by
cakoose
4y ago
That claim is sort misleading. The complexity of the specification's own grammar is largely unrelated to it's expressiveness. I'd expect most parser generators in this category to be able to parse their own grammars. Imagine
26.
▲
by
cakoose
4y ago
> 3. Don't allow cross-platform requests in the first place; have your API consumers go through a server-side proxy on the same domain instead, or host it on the same domain in the first place. That works for first-party JS. Doesn&
27.
▲
by
cakoose
4y ago
No, I left Dropbox 5 years ago. But it might be easy to add? https://github.com/dropbox/dropbox-sdk-js/blob/main/src/drop... Make sure to always set the URL parameter "reject_cors_preflight=tru
28.
▲
by
cakoose
4y ago
Unfortunately this caching is still per-path. For example: GET /v1/document/{document-id}/comments/{comment-id} For every new document-id or comment-id, there will be a new pre-flight request. Alternative h
29.
▲
by
cakoose
4y ago
What does "distributed" mean in this context? > Each queue is implemented using a Redis list. That seems to imply that queue itself is not distributed. But maybe "distributed" refers to the fact that workers are run
30.
▲
by
cakoose
4y ago
When you run a type checker, it's proving that a program conforms to the type, right? That's why it seems like the incompleteness theorem applies. (Though as I mentioned before, I'm playing a bit loose with the logic.)
More ›