Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stouset
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
781.
▲
by
stouset
2y ago
Roads are overwhelmingly funded by property taxes. Try again.
782.
▲
by
stouset
2y ago
> Is it a tax No, it is a usage fee just like stamps.
783.
▲
by
stouset
2y ago
People are not frictionless utilitarian spheres that perfectly obey the laws of economics. We have data, and removing public transit fares is not an effective lever to move people out of cars and onto buses, trams, trolleys, and trains.
784.
▲
by
stouset
2y ago
Your mind is going to be blown when you find out how much it costs to own and operate a car, not to mention how much it costs in terms of time to commute back and forth.
785.
▲
by
stouset
2y ago
Please, please do yourself a favor and visit places that aren’t the USA. Cars are the worse product . They are extremely energy inefficient for moving a human from A to B, even if powered by electricity. They are vastly more expensive th
786.
▲
by
stouset
2y ago
Jfc, building out more public transit, encouraging alternate forms of transportation, and mildly discouraging car use through a fee isn’t “losing your freedoms”. You have completely lost touch with reality.
787.
▲
by
stouset
2y ago
> Who ever claimed that GNU was a proponent of the UNIX philosophy? Certainly not me. Nothing was specific to GNU in that comment. `-r` is available in BSD grep too. You are being needlessly pedantic and avoiding the actual points being
788.
▲
by
stouset
2y ago
Absolute paths will break if, for example, the target and source are in the same directory but you move the directory. Sometimes you semantically want absolute paths (I want to symlink a thing to /bin/foo), sometimes you want rela
789.
▲
by
stouset
2y ago
TIL!
790.
▲
by
stouset
2y ago
You would be demonstrably wrong. Apple was already well under way on their USB-C transition. They literally shipped the first all-USB-C laptop in 2015. Not the first Apple laptop. The first laptop full stop. The iPad Pro switched to USB-C
791.
▲
by
stouset
2y ago
The one that always trips me up is that `ln` is “dumb” about how it handles the first argument. If the first argument isn’t an absolute path, it must be relative to the second argument, and not to pwd. ln ./foo ./bar/ba
792.
▲
by
stouset
2y ago
That is literally what people are doing. “Written in Rust” has become a pretty convenient shorthand for “this was written by someone who cares deeply about quality, and you can guess that it will be extremely fast, relatively free of bugs,
793.
▲
by
stouset
2y ago
No clue. I have never needed it nor wanted it to. All my music streams from Spotify or Apple Music.
794.
▲
by
stouset
2y ago
Apple didn't continue to iterate on Lightning because of the obvious future migration to USB-C connectors. I will die on the hill that the Lightning plug is superior to the USB-C plug . Lightning could some day have supported USB-3.
795.
▲
by
stouset
2y ago
What can be asserted without evidence can also be dismissed without evidence. GP was dismissing the original assertion.
796.
▲
by
stouset
2y ago
Citation needed.
797.
▲
by
stouset
2y ago
I'm not sure reaching for PHP to dunk on functional languages is the win you think it is? > Visually, it is basically the same, with clear visual messaging of what has changed. In order to do this you had to make edits to all but a
798.
▲
by
stouset
2y ago
> Great, please make all the software even slower than it already is. It is more or less trivial to emit essentially optimal autovectorized and inlined machine code from functional iterators. Rust does this, for example.
799.
▲
by
stouset
2y ago
Of course it’s possible. I am well aware it’s possible. You can also just call into a C library that hands you a null pointer. Further, it’s wholly possible to invalidate every single one of Rust’s safety guarantees if you try hard enough.
800.
▲
by
stouset
2y ago
I was talking more in the general case. Yes, you can always just write more and more and more code to fix these things. Or you could just… not write more code and still get optimal performance.
801.
▲
by
stouset
2y ago
Not really. I have written a lot of C and Rust. The notion that identical projects written in both languages would have identical numbers of (or even severity of) bugs is laughable on its face. I mean, literally just not being able to deref
802.
▲
by
stouset
2y ago
> What? Golang append()s also periodically grow the slice. If you already know the size of the result (there are no filtering operations), the functional approach can trivially allocate the resulting array to already have the correct cap
803.
▲
by
stouset
2y ago
> the only difference is whether or not it's hidden behind function calls you can't see and don't have access to. You "can't see and don't have access to" `if`, `range`, or `append` but somehow you don&
804.
▲
by
stouset
2y ago
There is just no way that reasonable people consider this to be clearer. One certainly might be more familiar with this approach, but it is less clear by a long shot. You've added a temp variable for the result, manual appending to
805.
▲
by
stouset
2y ago
The cost of this "footgun" is basically zero. Every step in a functional pipeline is isolated and wholly independent. If you want to split such a pipeline in two, doing so is trivial.
806.
▲
by
stouset
2y ago
Unlike the procedural approach, every step in a functional chain is wholly isolated and independent from the others. It is strictly easier to split this style of code up into two halves and name them than it is to disentangle procedural e
807.
▲
by
stouset
2y ago
> The problem is that it's easy to overdo it. Welcome to all features of every programming language? Sacrificing readability, optimization, and simplicity for the 95% case because some un-principled developers might overdo it in the
808.
▲
by
stouset
2y ago
So just do that then in the cases where you think it improves clarity? It's not like you can't assign names in the functional style if you need to.
809.
▲
by
stouset
2y ago
You have literally just described the set of objects asked for: the unique authors of the books with more than 1,000 pages. I don't understand how you expect to get any simpler than that. The functional style isn't even requiring
810.
▲
by
stouset
2y ago
This is true of literally anything and everything your compiler emits. In practice the functional style is much easier to optimize to a far greater degree than the imperative style.
More ›