Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haberman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
511.
▲
by
haberman
6y ago
> But! The underlying storage uses deltas (which are diffs) to save space. That's the material cause. This does not make the "commits are stored as diffs" story much more true: 1. This is only true of pack files, but pack
512.
▲
by
haberman
6y ago
> What is missing, from the users point of view, when they model commits as diffs+parents vs as snapshots? With the wrong mental model it's harder to predict what operations are expensive. If "git checkout <SHA>" tr
513.
▲
by
haberman
6y ago
> With that in mind, things like rebase become obvious: Take the same diff and attempt to apply it to a different parent. You can think of it that way if you want. But it's not what Git actually does. Personally I much prefer to ha
514.
▲
by
haberman
6y ago
Can companies be held responsible for damages from data breaches? If they could, it seems like it would incentivize more caution about what data is collected, and more investment in the security of that data. I also imagine an insurance ind
515.
▲
by
haberman
6y ago
I was replying to "Inter-Christian conflict is almost nonexistent in 2021". That's a fairly categorical statement, and seems plainly false.
516.
▲
by
haberman
6y ago
I don't think that's true. Churches are deeply divided on some core issues, and in some cases are splitting over these differences: https://abcnews.go.com/US/wireStory/united-methodist-conserv...
517.
▲
by
haberman
6y ago
> This is the take of people who have little on the line, and don't face issues everyday, falsely lumping all matters of outrage together. They're now upset, outraged even, that their status quo is challenged, and write about h
518.
▲
by
haberman
6y ago
Sure, the article lumps together all kinds of outrage, some of it more serious than others. For example, it also lumps together outrage that someone would commit a micro-aggression like asking "where are you from?" together with
519.
▲
by
haberman
6y ago
You want to a priori establish some outrage as virtuous and legitimate (ie. critiques around sexism/racism) while dismissing other outrage as silly and trivial (ie. critiques around pressure campaigns to censor culture). Is it possible
520.
▲
by
haberman
6y ago
> This is the take of people who have little on the line, and don't face issues everyday This kind of narrative is an easy way to dismiss the opinions of people who disagree with you, but it bears little resemblance to the real worl
521.
▲
by
haberman
6y ago
> SQLite doesn't really enforce column types[0], the choice is really puzzling to me. This is acknowledged as a likely mistake, but one that will never be fixed due to backward compatibility: > Flexible typing is considered a fea
522.
▲
by
haberman
6y ago
This seems to work. The compiler has to see the previous add to know what is in the carry flag. #include <stdint.h> uint64_t addWithCarry(uint64_t x, uint64_t y, uint64_t z) { return x + y + (y + z < y); }
523.
▲
by
haberman
6y ago
> I noted the other day that zig has @addWithOverflow which is a step in the right direction. This seems reasonably easy to implement in C: #include <stdint.h> typedef struct { uint64_t val; uint64_t carr
524.
▲
by
haberman
6y ago
Glenn Greenwald gets into this a lot. As one recent example, WaPo misquoted Trump's comments on his infamous phone call with the Georgia secretary of state and this was not corrected until two months later when the Wall Street Journal
525.
▲
by
haberman
6y ago
Even if you could parse a double in a single cycle, it would take 292 years to run through 2^64 cases on a 2GHz machine. https://www.google.com/search?q=2**64+%2F+2GHz&oq=2**64+%2F+... Also, while there are only 2^64 d
526.
▲
by
haberman
6y ago
A surprising fact I just learned about float parsing is that it is absolutely trivial (and, I expect, very fast) if you are willing to tolerate a 1 ULP inaccuracy: https://www.exploringbinary.com/quick-and-dirty-decimal-to-f
527.
▲
by
haberman
6y ago
> "Audacity is the GIMP of audio" is perfectly accurate in this regard. This statement brings back a fond memory for me. I was first introduced to open-source software in the late 90s, when I was in high school. GIMP was one
528.
▲
by
haberman
6y ago
Looks like no type aliases still? Does anyone know if type aliases are anywhere on the road map for Java? Is there some philosophical objection to them?
529.
▲
by
haberman
6y ago
But "for a given causal model" precisely means "given a set of statements about what causes what." Those statements must be either proved or assumed. If they are already proved, they don't need to be proved further
530.
▲
by
haberman
6y ago
Do you mean that the new techniques will (1) help you prove which variables should not be controlled for, or that they will (2) help you more clearly describe your causal assumptions, so that you can more easily recognize which variable
531.
▲
by
haberman
6y ago
Sure, but what does Pearl bring to the table here? The idea of making falsifiable predictions long predates the "Causal Revolution." The warning of "correlation is not causation" still seems as relevant as ever.
532.
▲
by
haberman
6y ago
> The catch is that, whether explicitly or implicitly, you must make assumptions in the first place about the directions of causality among the variables. That right there is the headline to me. Compare this with the blurb in the dust ja
533.
▲
by
haberman
6y ago
> In this case, the rightsholder thinks the early books are in poor taste and no longer wants them associated with the brand. This is an incomplete story. The company convened a panel of outside "experts" to make these determi
534.
▲
by
haberman
6y ago
Yikes. That definitely seems more complicated than it should be. I have not used Emscripten in this way before, I was going from my experience of passing custom flags like -fsanitize=address. I was under the impression that Emscripten was
535.
▲
by
haberman
6y ago
> I struggled a lot using Emscripten to port FFmpeg to wasm - you have to compile EVERY dependency to wasm This is a scenario where the Bazel model is a good fit IMHO. Bazel rebuilds all of your dependencies from source. This makes it
536.
▲
by
haberman
6y ago
Black Mirror comes to life: https://en.wikipedia.org/wiki/Be_Right_Back > Martha Powell (Hayley Atwell) and Ash Starmer (Domhnall Gleeson) are a young couple who have moved to Ash's remote family house in the c
537.
▲
by
haberman
6y ago
> with a single third party login for all services, though, if that third party account gets compromised the results are catastrophic. The same can be said of the password manager account. It's turtles all the way down. The fact th
538.
▲
by
haberman
6y ago
Haidt is a founding member of this organization (Let Grow) and sits on their board: https://letgrow.org/our-people/
539.
▲
by
haberman
6y ago
If you read my comment carefully, I didn't actually say that the article labeled him, I merely asked some questions and posed a hypothetical. And yet you drew an inference about my meaning beyond what my literal words were. You could
540.
▲
by
haberman
6y ago
This seems reasonable to me. It seems comparable to the following in C++: template <class T> T floor(T x) { /* ... */ } I think a documentation generator could display your Zig signature verbatim and a user could m
More ›