rmgraham

Joined 17 years ago

Karma
243
Submissions
110
Member since
Jul 15
Professional software developer. Programming language, open source, and technology enthusiast.

[ my public key: https://keybase.io/rmg; my proof: https://keybase.io/rmg/sigs/pWw62UMFkJ8JZWzVJt9Sy8UAmLFxrg0YfbjfVCiJxLA ]

View on Hacker News

Recent submissions

Comment · 4 years ago
Tar doesn't use any sort of index like zip does, so to extract the specified file the server side would need to parse through possibly the entire file just to see if the requested file is there, and then start streaming it. Requests for files that aren't in the tar archive would be prohibitively expensive.

There are definitely ways to do it without those problems, though. They just wouldn't be quite as simple as the approach done for supporting zip.

Comment · 7 years ago
I think the observation being made was that this is at the scary intersection of consumer IoT non-security and major infrastructure.
Comment · 7 years ago
Or only run Linux? *

* (any source available OS)

Comment · 7 years ago
Comment · 7 years ago
I haven't used hg enough to have an opinion on it, despite several attempts... Problem is I learn bottom up, and I just haven't been able to "think in mercurial" the way I can "think in git".

I find it interesting that what git calls a commit is actually a revision (or checkpoint, snapshot, point-in-time) and what mercurial calls a revision is actually a commit (or patch, delta, changeset).

I think a lot of people think in terms of patches/changesets and I suspect (still haven't gotten far enough to confirm) hg is a toolbox for managing them in a similar way to how git is a toolbox for manipulating its snapshot based DAG.

Comment · 7 years ago
Alternatively... how large would the whale population need to be to counter the carbon footprint of such tourism?
Comment · 7 years ago
If you're using rebase there's the `--committer-date-is-author-date` and `--ignore-date` flags. One uses the author date for both and the other uses the commit date for both.

Without using either flag rebase should update the commit date and preserve the author date.

If by rebase you meant GitHub's rebase merge option I think you're out of luck :-/

Comment · 7 years ago
Thank you for humoring me. I had to sleep on it, but I can see it now. Seems like it would require a really bad design or more likely bad actors (remotes leaving dead sockets open), but it would definitely be possible.

The same scenarios would lead to resource exhaustion if the thread pool wasn't bounded.

Comment · 7 years ago
Are those really the only options? I'm trying to wrap my head around how using a fixed size thread pool for I/O automatically implies deadlocks but I just can't. Unless the threads block on completion until their results are consumed instead of just notifying and then taking the next task..

I can definitely imagine blocking happening while waiting for a worker to be available, though. Did you mean simply blocking instead of deadlock?

Comment · 8 years ago
Comment · 8 years ago
I suspect "Western-style dates" was meant to refer to the Gregorian calendar rather than the format used to represent a date on that calendar.

ISO-8601 only really applies to the Gregorian calendar.

Comment · 8 years ago
I really liked that 2/3 of the post is a walk through the solutions using existing tools before getting to the project.

I also like how it combines a "big data" format (parquet) with the main "your data isn't actually big data" tool of choice (sqlite).

Comment · 8 years ago
It's about pineapples.
Comment · 8 years ago
Seconded. The only person I know who sleeps like this is also the highest functioning person I know.
Comment · 8 years ago
I really wanted something like this when embedding serial numbers and keys in ROMs. At the time I was mostly working in C and PHP, so I was imagining something closer to a template language, but something like this would have given me a good intermediate step where I could have used PHP to render this text format and then ran that to produce the necessary bits on disk.

A decade late for me, but still looks cool.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton