Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ericvsmith
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
ericvsmith
9mo ago
For those who don't know the story: it's ironic because Jefferson died first.
2.
▲
by
ericvsmith
1y 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 drain
3.
▲
by
ericvsmith
1y 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, b
4.
▲
by
ericvsmith
1y 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.
5.
▲
by
ericvsmith
1y ago
You can (and should!) tell pip not to do this with '--only-binary=:all:'. Building from source is a lousy default.
6.
▲
by
ericvsmith
1y 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).
7.
▲
by
ericvsmith
2y ago
And for a similar idea in Python see https://peps.python.org/pep-0750/
8.
▲
by
ericvsmith
2y 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"
9.
▲
by
ericvsmith
2y ago
This is incorrect. The returned integer is a regular Python object, not some "unboxed" integer value.
10.
▲
by
ericvsmith
2y 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
11.
▲
by
ericvsmith
2y 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”.
12.
▲
by
ericvsmith
2y ago
Thank you for the kind words.
13.
▲
by
ericvsmith
2y 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,
14.
▲
by
ericvsmith
2y 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
15.
▲
by
ericvsmith
2y 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
16.
▲
by
ericvsmith
2y ago
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.
17.
▲
by
ericvsmith
2y ago
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 it could “fit” in the stdlib. Or maybe you mean the backport
18.
▲
by
ericvsmith
3y ago
I like to think of it like mad cow: that’s what you get when you feed animals to animals. Same with AI.
19.
▲
by
ericvsmith
3y ago
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 log, then start making edits; but the line numbers in the e
20.
▲
by
ericvsmith
3y ago
D’oh! Of course you’re correct. I skipped over “any”, and focused on “patch”. Sorry about that.
21.
▲
by
ericvsmith
3y ago
That’s not a typo, that’s the name of the technique.
22.
▲
by
ericvsmith
3y ago
PEP 649 “Deferred Evaluation Of Annotations Using Descriptors” should result in vastly reducing the need for TYPE_CHECKING. https://peps.python.org/pep-0649/
23.
▲
by
ericvsmith
3y ago
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 two 120 volt lines, each 180 degrees out of phase with the ot
24.
▲
by
ericvsmith
3y ago
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 it's an eerily awesome facility. Also the nearby visitor
25.
▲
by
ericvsmith
4y ago
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, too.
26.
▲
by
ericvsmith
4y ago
It would be hard to argue that Sun has not disappeared.
27.
▲
by
ericvsmith
4y ago
Getting a 30y and paying off in 15 is a smart move. For our most recent house, that's we did set out to do, until the last refi (maybe 5 years in to the 30y) when we got a 15y and paid it off in 10 more years.
28.
▲
by
ericvsmith
4y ago
Back in the 80s and 90s ARMs were very popular in the US because interest rates were high, and the expectation was that they wouldn't stay that way forever. The rate increases had a lifetime cap, so there was a knowable upper bound. Ed
29.
▲
by
ericvsmith
4y ago
I can't say enough good things about yadm. I found a yadm bug under Cygwin years ago, and the author had a patch for me within a day. I'll grant that Cygwin is an odd platform. I use yadm to manage dotfiles across Windows (via Cyg
30.
▲
by
ericvsmith
4y ago
> almost zero regen-braking Are you sure this is related to the cold, and not just that the batteries were fully charged so that regen had nowhere to put the energy? [Edited to add]: I say this because I see this in all types of weather:
More ›