Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haberman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
67 ms
·
751.
▲
by
haberman
7y ago
70% is the bottom of C grade range. ( https://en.m.wikipedia.org/wiki/Academic_grading_in_the_Unit... ) Honestly I think this can explain a large part of D-K. People just aren't calibrated to imagine getting a 25%
752.
▲
by
haberman
7y ago
I don't see anything on that page referencing C++20. Am I missing something? On a related note, I always find the official docs for GCC inline assembly are insufficient for figuring out what I am trying to do. I nearly always have to
753.
▲
by
haberman
7y ago
> Newspapers like NYT are one of the few institutions where workers enjoy a level of freedom from management in doing their work. Then why do these articles not also criticize the NYT for these practices? Google is an easy target for ne
754.
▲
by
haberman
7y ago
"The First Law of @nytimes Tech Reporting: Whatever privacy practice they're complaining about, they do themselves." -- https://twitter.com/antoniogm/status/1146492837447393282
755.
▲
by
haberman
7y ago
Why isn't a moved-from object always considered "consumed"?
756.
▲
by
haberman
7y ago
> It is really annoying, however, when people retrofit these things into old houses and you get something like a downstairs bathroom outlet that has no apparent GFCI, but then it trips, and you have to hunt around the house for the GFCI
757.
▲
by
haberman
7y ago
If GFI sockets and breakers had been widely available at the time, would the third prong have been added? Would a GFI along with the "one long slot" plugs make the ground wire obsolete?
758.
▲
by
haberman
7y ago
I thought constexpr implies const: https://godbolt.org/z/u3a1pq That is what bothers me about constexpr. It conflates compile-time evaluation with non-mutability. I want a keyword that guarantees an evaluation happen
759.
▲
by
haberman
7y ago
If his arguments are weak, it should not be necessary to buttress counterarguments with speculation about his motives.
760.
▲
by
haberman
7y ago
I'm an amateur at math: is what is being calculated in the article the same as a Taylor series?
761.
▲
by
haberman
7y ago
I don't think Equifax is innocent, I believe they should be liable for the damage they caused. Regulators answer to the people, it is their job to act in our interest and our job to hold them accountable to this.
762.
▲
by
haberman
7y ago
The market relies on a sensible legal framework of ownership and liability. Society has to decide under what circumstances a person or business can be financially liable for their mistakes. The liability should match the real-world harm.
763.
▲
by
haberman
7y ago
I have a distant memory of Alan Cox saying something back in the day along the lines of "there are so many things left undocumented in the TCP/IP RFCs that if you just implement it straight from the spec your stack won't work
764.
▲
by
haberman
7y ago
Correct me if I'm wrong, but I think if you kill a process normally, it will invoke a signal handler which will exit the process (maybe writing a core file first) without ever returning to normal program flow. Recognizing EINTR at the
765.
▲
by
haberman
7y ago
Wow. I am the author of this, but I forgot all of this after 8 years and it was like reading an article written by someone else. :) I think the only thing I would add now is that SA_RESTART does seem like inherently the wrong design for th
766.
▲
by
haberman
7y ago
I'm curious, have you used Android Auto? You get in the car and it already knows where you want to go because it has access to your calendar. It has all of your contacts and your music. As a user these are the things that matter to
767.
▲
by
haberman
7y ago
> If the people with their fingers on that button held these same ideals, we wouldn’t need the GPL. The reality, however, is that we live in a capitalist world. Our socialist free software utopia is ripe for exploitation by capitalists,
768.
▲
by
haberman
7y ago
My understanding is that fixed-length conversion to string is more or less trivial, the tricky part is writing a fast algorithm to compute the shortest round-trippable conversion to string, correct?
769.
▲
by
haberman
7y ago
That is fascinating. I can't think of any other opinion where Republicans and Democrats have more in common than Independents, off the top of my head.
770.
▲
by
haberman
7y ago
I generally dislike the "bottleneck" metaphor when applied to performance, because the metaphor only makes sense when the individual "parts" run in parallel. In most scenarios, each bit of code adds its own latency that
771.
▲
by
haberman
7y ago
> As an example, a load instruction takes a cache miss which means it cannot retire until the miss is complete. On an Haswell machine with a ROB size of 192, at most 191 additional instructions can execute while waiting for the load: at
772.
▲
by
haberman
7y ago
Isn't monetary liability a form of "outsourced responsibility"? I'm not understanding why damages from lawsuits are not sufficiently motivating the industry to take data breaches seriously. Maybe they just aren't
773.
▲
by
haberman
7y ago
> It makes me wonder if this can be solved technically by published curated language subsets. I'm biased, but I generally find the Google C++ Style Guide to be a good curation of C++: https://google.github.io/stylegu
774.
▲
by
haberman
7y ago
Internally at Google we have this functionality. We use Kythe, which is open-sourced: https://kythe.io/
775.
▲
by
haberman
7y ago
I think they both missed the mark. Pratchett says: "there’s no way of finding out whether this stuff has any bottom to it or whether someone has just made it up." But that's not really true. It's not hard to evaluate f
776.
▲
by
haberman
7y ago
Will the calling convention pass this by value even if it isn't inlined? My hope is that the ABI would systematically decide: "passing a const ref to a type that fits in a machine word is silly, so we never do that."
777.
▲
by
haberman
7y ago
> Part of the problem is conceptualizing this as a reference (which, admittedly, it is without optimization). Isn't that also the official name of the feature in Rust? Isn't &T in Rust pronounced "reference to T"
778.
▲
by
haberman
7y ago
Coming from C++, this always throws me a bit: if (0..=10).contains(&5) { I assume we are taking a ref to "5" (and not passing by value) because "Range" is a generic type that might be too big to want to copy
779.
▲
by
haberman
7y ago
That is a deep and interesting question. I'm not sure I can give a great answer, but here are a few thoughts. If we look at the file format itself (separate from the features/semantics of the linker and loader), I think ELF is si
780.
▲
by
haberman
7y ago
Interesting, what was your job that required writing both a Mach-O and ELF loader?
More ›