HackerTrans
TopNewTrendsCommentsPastAskShowJobs

tynorf

no profile record

comments

tynorf
·12 gün önce·discuss
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, some people think there are problems with this usage: (pdf warning) https://www.cidrdb.org/cidr2022/papers/p13-crotty.pdf
tynorf
·6 ay önce·discuss
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 memory, or it’s the crappy websites I’m required to use for work with absurdly large heaps.

I really just meant that at least for work I need more than 8GB of RAM.
tynorf
·6 ay önce·discuss
Chrome on my work laptop sits around 20-30GB all day every day.
tynorf
·2 yıl önce·discuss
Perhaps a small nit, but the “design space tree” looks more like a directed graph.
tynorf
·2 yıl önce·discuss
You can try setting `export PYTHONWARNINGS="ignore"` to suppress warnings.
tynorf
·3 yıl önce·discuss
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.
tynorf
·3 yıl önce·discuss
> At Amazon you can't even open the building next door without approval.

This is not true.
tynorf
·3 yıl önce·discuss
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 presentation seems like such an obvious anti pattern, yet tools doing just that seem to be very popular for some reason.
tynorf
·3 yıl önce·discuss
You might be interested in this: https://brandur.org/idempotency-keys
tynorf
·3 yıl önce·discuss
The objects directory stores every file (and tree, commit, etc). Pack files are an optimization storing diffs.
tynorf
·3 yıl önce·discuss
Cassandra does not make you immune to database issues: https://monzo.com/blog/2019/09/08/why-monzo-wasnt-working-on...
tynorf
·3 yıl önce·discuss
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_US&locale=e...
tynorf
·3 yıl önce·discuss
Yes, that would be a different reason to prefer worktrees (that I mostly agree with). I was responding to the specific storage space claim.
tynorf
·3 yıl önce·discuss
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...
tynorf
·3 yıl önce·discuss
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..9}; do                             
  gzip <$i.txt >$((i + 1)).txt
  done
  $ ls | sort -n | xargs -n1 wc -c
       5 0.txt
      25 1.txt
      46 2.txt
      69 3.txt
      82 4.txt
     105 5.txt
     120 6.txt
     143 7.txt
     161 8.txt
     184 9.txt
     207 10.txt