Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tynorf
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
tynorf
29d ago
They still need to buy said RAM from all the same players.
2.
▲
by
tynorf
1mo ago
FWIW, if you aren’t interleaving other allocations (which includes on other threads), the ArenaAllocator in Zig doesn’t have this problem. If you attempt to resize the most recent allocation, it will do so in place if possible. https:/
3.
▲
by
tynorf
3mo ago
IIRC: it is to leverage the OS page cache rather than having a separate buffer pool in user land. By default lmdb uses normal pwrite/fsync for the write path, but can optionally use a writable mapping and (presumably) msync. However, s
4.
▲
by
tynorf
9mo ago
The computer has 18GB of total RAM so I would hope that it’s already trying to conserve memory. It’s kind of humorous that everyone interpreted the comment as complaining about Chrome. For all I know, it’s justified in using that much memor
5.
▲
by
tynorf
9mo ago
Chrome on my work laptop sits around 20-30GB all day every day.
6.
▲
by
tynorf
3y ago
Perhaps a small nit, but the “design space tree” looks more like a directed graph.
7.
▲
by
tynorf
3y ago
You can try setting `export PYTHONWARNINGS="ignore"` to suppress warnings.
8.
▲
by
tynorf
3y ago
Anecdotally, I fly round trip out of SEA ~3 times a year and experience very bad turbulence on about half the flights. Earlier this year it was bad enough to suspend drink service.
9.
▲
by
tynorf
3y ago
> At Amazon you can't even open the building next door without approval. This is not true.
10.
▲
by
tynorf
3y ago
This is a very important point. I'd argue all these "publish your DB schema as a GraphQL endpoint" frameworks that seem to proliferate have done a lot of damage to GraphQL's reputation. Strongly coupling data to presenta
11.
▲
by
tynorf
3y ago
You might be interested in this: https://brandur.org/idempotency-keys
12.
▲
by
tynorf
3y ago
The objects directory stores every file (and tree, commit, etc). Pack files are an optimization storing diffs.
13.
▲
by
tynorf
3y ago
Cassandra does not make you immune to database issues: https://monzo.com/blog/2019/09/08/why-monzo-wasnt-working-on...
14.
▲
by
tynorf
3y ago
The interior has been aluminum, but the band around the outside has been stainless steel. > Ceramic Shield front, Textured matte glass back and stainless steel design https://support.apple.com/kb/SP875?viewlocale=en_
15.
▲
by
tynorf
3y ago
Yes, that would be a different reason to prefer worktrees (that I mostly agree with). I was responding to the specific storage space claim.
16.
▲
by
tynorf
3y ago
FWIW, local git clones use hard links for object files, so share a lot of their data. https://www.git-scm.com/docs/git-clone#Documentation/git-clo...
17.
▲
by
tynorf
3y ago
I'm pretty sure part of the contract with gzip (and compression in general) is that applying it N times is undone by decompressing N times. The size definitely gets bigger with each iteration: $ echo text >0.txt $ for i in {0.
18.
▲
by
tynorf
5y ago
Something like this? https://stop.lying.cloud/
19.
▲
by
tynorf
6y ago
I believe orf is talking about the read(2) syscall, which is blocking.
20.
▲
by
tynorf
6y ago
OWASP is a good resource for web security related topics. i.e. https://cheatsheetseries.owasp.org/cheatsheets/Authenticatio...
21.
▲
by
tynorf
6y ago
I think the classic example is article list with author details. You load the articles (one query), then for each article you load its author (N queries). Naive use of an ORM causes this: articles = Article.load(limit=10) for article
22.
▲
by
tynorf
6y ago
I believe being lenient in accepting input is what leads to SSRF attacks (HTTP request smuggling via disagreeing `transfer-encoding` and `content-length` headers).
23.
▲
by
tynorf
6y ago
Probably either via a third party service (such as AWS secrets manager), or mounted as files scoped to the user your process is running as (which is not root, right? :) ).
24.
▲
by
tynorf
6y ago
Just a point of clarification: native app notifications on iOS are absolutely opt-in. If the app wants to send notifications it requires a dialogue and user confirmation. Disappointingly, Apple makes an exception for their first party apps.
25.
▲
by
tynorf
6y ago
Out of curiosity, how many windows/tabs? I routinely launch FF with dozens of windows/hundreds of tabs and I've never had macOS kernel panic in that case.
26.
▲
by
tynorf
7y ago
Curious: what is your definition of strongly typed, contrasted with weakly typed? How about static vs dynamic?
27.
▲
by
tynorf
7y ago
I haven't actually watched it in a while, but are you referencing this talk by Chandler Carruth? https://youtu.be/yG1OZ69H_-o
28.
▲
by
tynorf
7y ago
Unfortunately: E183: User defined commands must start with an uppercase letter
29.
▲
by
tynorf
7y ago
Your protobuf messages are changing that much? My condolences. ETA: Also, you already are needing to add code to every encode/decode point for the `map[string]interface{}` handling. :P
30.
▲
by
tynorf
7y ago
One technique I use is to create a struct that mirrors the layout of the target struct, then just cast between them. So if you have a type Person struct { FirstName string `json:"first_name"` } And you get json like `
More ›