Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ben0x539
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
121.
▲
by
ben0x539
3y ago
Right, the wild thing for me is when you mutate `i` in the loop body. So at the same time `i` is scoped to the iteration so that you can capture it, but also mutating it affects the loop-scoped `i` that is incremented between iterations and
122.
▲
by
ben0x539
3y ago
Seems like a pragmatic decision where the breakyness of the change is mitigated by the module versioning thing. Old code gets the old behavior, code written in newly created or updated modules gets the new behavior. Everybody is happy, comp
123.
▲
by
ben0x539
3y ago
But isn't it completely wild that the `for (let i =`... version works like that? What does the loop 'desugar' into if written as a while-loop?
124.
▲
by
ben0x539
3y ago
Yeah I don't think it's so much "we explicitly rely on this behavior, how dare you change this" as "somewhere in our mountains of maintenance-mode code that haven't seen the sun shine through an editor window i
125.
▲
by
ben0x539
3y ago
I assume that if compiling with 1.22 or later, you still get all the benefits from that version like other new features, bug fixes or perf improvements, just not this particular change.
126.
▲
by
ben0x539
3y ago
> The Democrats would have done the exact same if given the opportunity What would the Democrats be doing if they had a supreme court majority? I don't really follow US politics that closely but I got the impression that the Democra
127.
▲
by
ben0x539
3y ago
Of course they're smart enough to have a proper inode-based filesystem. They're probably just not smart enough to swap out the file system their customers are using without their customers getting mad at them.
128.
▲
by
ben0x539
3y ago
How is it more acceptable because it's a combination of two things? Lots of objectionable outcomes are a combination of multiple factors!
129.
▲
by
ben0x539
3y ago
I like the feeling of hanging out with likeminded people or friends and showing each other the cool stuff we're working on. Asking for (or receiving!) even nominal amounts of money makes it a completely different kind of interaction an
130.
▲
by
ben0x539
3y ago
Ah, I didn't think of it at all, I was only thinking about a hypothetical responsibility of whoever is in charge of the git repository, not the extra github flavoring.
131.
▲
by
ben0x539
3y ago
Are there legal reason the information has to be kept in the Github repo? Maybe the Rust foundation could keep it in a PDF on some office computer somewhere.
132.
▲
by
ben0x539
3y ago
Of course it's technically feasible. You do the filter-branch thing and then you force-push. Sure, it would be very inconvenient for everybody who has a clone of the repo, but I don't think that's a convincing argument to a
133.
▲
by
ben0x539
3y ago
On unixy systems, they put a restriction into Nethack to limit the game's "wizard mode" (the fuck-around mode where you can't die and just create all kinds of stuff out of thin air, etc) to the unix user with the usern
134.
▲
by
ben0x539
3y ago
> I also found that Zelle is basically just a front-end for the existing ACH Direct Deposit system. [...] > > tl;dr do not ever use Zelle. I can't figure out how to do ACH transfers to friends with my credit union, and I'
135.
▲
by
ben0x539
3y ago
That's sick, thanks for sharing!
136.
▲
by
ben0x539
3y ago
I wonder how fast you could get at typing everything onehanded with some modifier key that mirrors the keyboard. Right hand is probably more useful there.
137.
▲
by
ben0x539
3y ago
man people really post about this browser addon ad nauseam
138.
▲
by
ben0x539
3y ago
I think go loggers have tried to move away from passing log entries as maps for performance reasons.
139.
▲
by
ben0x539
3y ago
Yeah, not falling for that, clearly an attempt to drastically lower the entropy of people's correct horse battery staple passphrases.
140.
▲
by
ben0x539
3y ago
"Troll farm" is also based on this new usage of the word.
141.
▲
by
ben0x539
3y ago
Do you know that the neighbor didn't intentionally make their TV do that?
142.
▲
by
ben0x539
3y ago
I wish people on this website were as enthusiastic about addressing this problem as they are about tech things.
143.
▲
by
ben0x539
3y ago
When AI was 20 years away, people seemed more optimistic about it than now when its inevitable transformative societal impact is seemingly right around the corner, are you sure this is the kind of example they were going for?
144.
▲
by
ben0x539
3y ago
Doesn't that frequently run into other code that well-intentionedly wraps a value of the original interface adding new functionality but not passing through the newer interface, because it simply can't account for all interface sm
145.
▲
by
ben0x539
3y ago
I figure someone is going to come along who's excited about adapting the dishwasher for their own use cases, since they also don't want to do dishes. Maybe they'll even have it support their social circle's use cases so
146.
▲
by
ben0x539
3y ago
I'm 200% convinced there are plenty of people out there who could easily be nerdsniped into building an open source dishwasher! Hackers get up to all kinds of stuff that doesn't seem traditionally fun!
147.
▲
by
ben0x539
3y ago
It's incredibly easy for CO2 levels to get to uncomfy levels in an enclosed living space such as my office at home with no central air and a closed door, especially in the heat of local summer where I will try very hard to not open the
148.
▲
by
ben0x539
3y ago
I'm responding to a comment asking for a justification for sugar for function call based iteration. My comment is an attempt to draw a parallel to the need for sugar for channel based iteration. I'm not trying to suggest channel b
149.
▲
by
ben0x539
3y ago
Well, what was wrong with: for { next := <-channel ... }
150.
▲
by
ben0x539
3y ago
Whoa, I've been having opinions about error handling and result types and checked exceptions for like years and I never considered that Java couldn't be "properly" polymorphic over checked exception types. Thanks for poi
More ›