Viewing profile — ericvsmith
ericvsmith
HN member- Joined
- Wed, May 15, 2019, 2:39 PM UTC
- HN karma
- 162
- Public activity
- 63 items
- HN profile
- View on Hacker News ↗
About ericvsmith
No profile information was provided.
Recent public activity
-
comment
Comment #46257915
For those who don't know the story: it's ironic because Jefferson died first.
-
comment
Comment #44476276
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, separati…
-
comment
Comment #44437045
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 co…
-
comment
Comment #44369880
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
Comment #44365073
You can (and should!) tell pip not to do this with '--only-binary=:all:'. Building from source is a lousy default.
-
comment
Comment #44092307
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
Comment #42831211
And for a similar idea in Python see https://peps.python.org/pep-0750/
-
comment
Comment #42078284
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.m…
-
comment
Comment #42078234
This is incorrect. The returned integer is a regular Python object, not some "unboxed" integer value.
-
comment
Comment #42078208
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 $ pyth…
-
comment
Comment #41913391
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…
-
comment
Comment #41910528
Thank you for the kind words.
-
comment
Comment #41910078
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 instal…
-
comment
Comment #41721174
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…
-
comment
Comment #41719296
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…
-
comment
Comment #41453902
See my comment and the linked email at https://github.com/ericvsmith/dataclasses?tab=readme-ov-file... for dataclasses and 3.6. I think it's still true.
-
comment
Comment #40495100
That’s not actually true. While dataclasses to most of its inspiration from attrs, there are many features of attrs that were deliberately not implemented in dataclasses, just so i…
-
comment
Comment #39461310
I like to think of it like mad cow: that’s what you get when you feed animals to animals. Same with AI.
-
comment
Comment #39400439
BRIEF by UnderWare! I loved that editor. I particularly liked the “go to this line number, but use the line number before unsaved edits”. This let you compile a file, get the error…
-
comment
Comment #38924872
D’oh! Of course you’re correct. I skipped over “any”, and focused on “patch”. Sorry about that.
-
comment
Comment #38924327
That’s not a typo, that’s the name of the technique.
-
comment
Comment #38707899
PEP 649 “Deferred Evaluation Of Annotations Using Descriptors” should result in vastly reducing the need for TYPE_CHECKING. https://peps.python.org/pep-0649/
-
comment
Comment #36634623
This is a common misconception. US homes are not two phase, they are single phase 240 volts, called split phase because the single transformer leg is tapped in the middle to form t…
-
comment
Comment #36191392
I can highly recommend the Delta-01 Minuteman launch control facility in South Dakota, near Badlands National Park. Only 6 visitors at a time, so tickets are hard to come by. But i…
-
comment
Comment #35010814
I don't think that picture is about the new chamber they're referencing in the article. Note the caption "showing an empty corridor" (emphasis mine). I was hoping to see a picture,…