13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 6y ago · link · parent
TBH you seem to have a really odd bias against Rust, you repeatedly take something about it that's positive and try to spin it as negative, like possibly even for years? Maybe examine that.
comment 6y ago · link · parent
I find myself upvoting tons of comments in Rust threads where those comments are just asking questions, but are, for whatever reasons, downvoted. Happens on the Rust subreddit too. I don't know wtf it's about.
comment 6y ago · link · parent
HOSTS files may also be simplest (I totally disagree btw), but I can't imagine they're anywhere near the most common.
comment 6y ago · link · parent
The context of the quote from both Hoare and Knuth is critical, and is always left out.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil."
ie: 3% of the time you should absolutely care about 'small' efficiencies. Given that most programs spend almost all of their time in a few places, this is hardly surprising, and 3% is actually a fairly sizable amount of code to optimize to the degree which the paper is discussing (most people are rarely dropping to tools like goto for performance).
And, from the same paper (Structured Programming with goto Statements):
"The conventional wisdom shared by many of today's software engineers calls for ignoring efficiency in the small; but I believe this is simply an overreaction to the abuses they see being practiced by pennywise-and-pound-foolish programmers, who can't debug or maintain their "optimized" programs. In established engineering disciplines a 12 % improvement, easily obtained, is never considered marginal; and I believe the same viewpoint should prevail in software engineering. Of course I wouldn’t bother making such optimizations on a one-shot job, but when it’s a question of preparing quality programs, I don’t want to restrict myself to tools that deny me such efficiencies."
In other words, we should not write slower code when we can help it. Small efficiencies are well worth attaining in the general case, and the fears of writing 'unreadable' code because it's fast are mostly unfounded.
I believe this has never been truer. It's easier than ever to create highly tuned code that's hidden behind a 0 cost abstraction, and it's well worth it to tune that code for simple and obvious wins - we should never strive for inefficiency, as so many seem to advocate.
comment 6y ago · link · parent
Agreed. I didn't realize this when I was newer to programming, and I think it's in part because I was "thinking in milliseconds".
https://gist.github.com/jboner/2841832
latency.txt was a game changer for me, as well as starting to measure things in terms of nanoseconds.
Side note: is there an updated latency.txt?
comment 6y ago · link · parent
I guess all of the systems I build are just built to assume no order/ or to leverage causal ordering, because that feels much easier to reason about - enforcing ordering feels really hard, and like something that a message bus can only do some of the work of.
comment 6y ago · link · parent
comment 6y ago · link · parent
I want to say no? If I were to reframe the question as a slow function that I had to call, I wouldn't call it IO bound, so I think not - the fact that there's IO in between the two components is more of a confounding factor in profiling than an actual performance limitation.
comment 6y ago · link · parent
comment 6y ago · link · parent
Trying to consider any of these things in isolation is worthless and not really something that makes sense to discuss, it's just a sillier version of the trolley problem. Context is going to be everything.
Could someone convicted of murder be worth hiring? Yeah, sure, I'm not willing to say that that's not the case - what if they had an untreated medical condition, just as one potential contextual element? It's not worth discussing because it will end up with a "but what if but what if but what if".
The point I will definitely make is the original point I made - that if I determine someone to be a racist that is important to me, and if I find that someone is a criminal I will need more context before I determine that it is important to me.
comment 6y ago · link · parent
You can say that all "though crimes" are incomparable to legal indictments, and when you are hiring people that is your right as well.
comment 6y ago · link · parent
Further, because there would be shorter sentences, you're far more likely to encounter a candidate with a lesser sentence.