Recent submissions

Comment · 10 months ago
For those who don't know the story: it's ironic because Jefferson died first.
Comment · 1 year ago
In DC, they're storing the combined runoff+sewage until it can be treated: https://dcist.com/story/23/09/18/new-anacostia-river-tunnel-...

As expensive as this project is, separating the storm drains from the sewage lines (https://en.wikipedia.org/wiki/Combined_sewer) in an existing system is much more costly.

Comment · 1 year ago
That’s actually the Bureau of Engraving and Printing, on 14th St. SW, which is indeed worth visiting. They print the paper bills (among other things). The U.S. Mint produces the coins. I think only the Philadelphia Mint still mints coins, but it’s also worth visiting.
Comment · 1 year ago
While I agree, pip has very strong backward compatibility requirements. I'm not sure why, maybe because people tend to upgrade it without considering the consequences.
Comment · 1 year ago
You can (and should!) tell pip not to do this with '--only-binary=:all:'. Building from source is a lousy default.
Comment · 1 year ago
For what it’s worth, I was in the “loved it” camp.

(I’m the author of dataclasses, and I owe an immeasurable debt to Hynek).

Comment · 1 year ago
Comment · 2 years ago
I think you're saying that it takes fewer characters to define a namedtuple. If you're interested in less typing, There's also dataclasses.make_dataclass:

   >>> Point = dataclasses.make_dataclass("Point", ["x", "y", "z"])
   >>> Point(1, 2, 3)
   Point(x=1, y=2, z=3)
Comment · 2 years ago
This is incorrect. The returned integer is a regular Python object, not some "unboxed" integer value.
Comment · 2 years ago
What you're seeing here is an optimization about integers, not about pass by value. CPython only does this for small integers:

  $ python -c "print(int('3') is int('3'))"
  True
  $ python -c "print(int('300') is int('300'))"
  False
Other implementations make different choices.
Comment · 2 years ago
I’ve worked at places where subverting firewall rules like this would get you fired. I now refer to such situations where I’m forced to twiddle my thumbs while no work gets done as “letting the process work”.
Comment · 2 years ago
Thank you for the kind words.
Comment · 2 years ago
This is spelled out in the PEP (I’m the author). There isn’t one “portion” (a term defined in the PEP) to own that file. And it’s also not a requirement that all portions be installed in the same directory. I’m sorry you feel this was lazy, it was a lot of work spanning multiple attempts over multiple years.
Comment · 2 years ago
I have not used chezmoi, thanks for the pointer. From the comparison chart it looks similar to yadm. It looks like go vs. bash is the biggest difference. It’s occasionally handy to debug yadm’s bash script, although it’s been years since I had to do so. I’ll take a deeper look.
Comment · 2 years ago
For managing config files I use yadm https://yadm.io/, which I learned of on HN.

Among other great features, it lets me tailor settings per OS (Windows, Mac, Linux) and per client. And my settings are all in git, so they’re easy to save and copy around, and they’re all in one place, not dependent on each tool to know how to save their settings on some server.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton