1,804 karma · joined Jun 4, 2010 (16y ago) · 699 submissions
comment 1w ago · link · parent
If I write an Outlook networking server that handles 100k req/s, and it fails in production when someone points 200k req/s at it, there is a bug. Whose error is it? Is it my fault for writing a component that only handles 100k req/s? Is it the code-reviewer who didn't catch that it only handles 100k req/s? Is it the team lead who told the programmer it needed to handle 100k req/s? Is it the project manager who assigned this task to a junior engineer who can't be trusted to know that the system might need to handle more than 100k req/s? Is it the business leaders who laid off everyone who knew it would need to handle way more than 100k req/s? Is it the engineers who wrote load tests that didn't reach 200k req/s? Is it the operations team that configured this in a way where it can get 200k req/s?
In reality any one of these people could have made a decision that avoided this bug. There are always many errors on the critical path of a bug, identifying "the root cause" means you have already made a leap in logic and concluded which issue(s) you are planning on addressing and which you have decided are not worth tackling.
comment 1y ago · link · parent
comment 3y ago · link · parent
It's important for the business that the insurance fund is safe. If you look closely you will find that it is unsafe. But if people believe it is safe you won't need the insurance fund, so do whatever you need to to inspire confidence in the insurance fund.
comment 3y ago · link · parent
Oncall rotations are part of defense-in-depth against bugs and unforeseen circumstances: Most of the companies that survive without a formal one only do so by outsourcing this for the most common cases; to Cloudflare, to Amazon, etc. -- if there's an opportunity cost to being down someone needs to be able to pick up the phone when there's an outage or critical issue.
comment 3y ago · link · parent
comment 3y ago · link · parent
How does this situation improve in any way if X is a trade secret? Under what circumstance would company A be willing to accept payment to make X open, but not willing to license X as a protected patent?
It sounds like you'd be in exactly the same situation except that there would be a massive collective action problem trying to figure out how much the world should pay A to make the invention open and who should pay it, and also A and B would have multi-million-dollar incentives to engage in corporate espionage and counter-espionage that achieves no progress.
comment 5y ago · link · parent
For example, suppose you started with a commit graph that looked like this:
C1 --- C2 --- C3
\ \ \
T1 T2 T3
\ \ \
F1 - - F2 - - F3
Where C1, C2 and C3 are commits; T1, T2 and T3 are the trees they reference; and F1, F2 and F3 are three versions of a file blob stored delta-compressed in your packfile. Then if you had a malicious version of C2 with the same hash you could replace C2 with a new commit C2' pointing at a new tree T2' with a new file object F2', and nothing would break. The resulting commit graph would look like this, and F1, F2 and F3 would all still be in your packfile delta-compressed and accessible, just with nothing referencing T2/F2: C1 --- C2'--- C3
\ \ \
T1 T2' T3
\ \ \
F1 - - \ - - F3
\
F2'
Regardless, this is all moot to some extent. The attack most everyone talks about is that if you were in control of a central git repository (for example if you were hosting a mirror of an open source repository), you could give two different versions of that repository to different people without them being able to tell, even if they were checking PGP signatures or referencing specific git hashes. For example you could serve the non-malicious files to human developers, and when a user-agent that looks like a CI/CD pipeline such as Jenkins or the Ubuntu/Debian/RedHat packager's build machine or someething clones the repository to build a specific hash requested by the user, give it a malicious version of the source tree that builds a backdoor into the binaries it creates. In this sort of attack you never have to "change" a git object on someone's machine which is something the git protocol naturally isn't designed to do because it never happens naturally.comment 5y ago · link · parent
William Lin - https://www.youtube.com/channel/UCKuDLsO0Wwef53qdHPjbU2Q
Errichto - https://www.youtube.com/channel/UCBr_Fu6q9iHYQCh13jmpbrg
comment 5y ago · link · parent
comment 5y ago · link · parent
That's not how git works. The commit contains the entire tree. You could prepare two separate repositories such that `git checkout deadbeef0001deadbeef` in one checks out the linux kernel and in the other checks out ILOVEYOU.exe.
comment 5y ago · link · parent
Instead what you would do is attempt to make a file-object that has a certain SHA1 hash identifying it, and a colliding file-object that has the same SHA1 hash. Then you are free to give people who clone the repository different file contents depending on when/who/how someone requests it (if the file content is hosted on github, how to change the file object identified by a given SHA1 hash is an additional hurdle since it's assumed to be immutable and indefinitely cacheable; if you control the host yourself you can just change it whenever you like).
comment 5y ago · link · parent
Phone numbers are nice because the marginal cost to a customer is low (they probably already have one) while the marginal cost to a bad actor is high (it's expensive to acquire many of them or to change one once it's been identified as malicious).
comment 6y ago · link · parent
comment 6y ago · link · parent
"I want to make a change to a shared library. Why can't I make a pull request?" "Wait, I have to use this unfamiliar interface to make comments on other people's changes and I can't leave comments on specific lines?" "You know, if you used Jenkins and Github then you could show the status of passing or failing tests right here on the code review screen..."
These social pressures are really quite strong. They affect a bunch of open source projects especially: people who want to make changes expect code to be on Github and might even mirror it there themselves (creating confusing situations for anyone trying to contribute). Even if the project does host its code on Github to allow for contributions from Github users, Github is (naturally) not very good about directing its users off of its platform to where the existing discussion and development is going on. "It's easier if you just do everything on Github" says Github, and their users by and large agree, and slowly more and more process (code review, merging patches, CI, documentation) gets sucked onto Github by the platform effect.
comment 7y ago · link · parent
comment 7y ago · link · parent
In the worst case, if someone notifies you of a configuration problem or some software bug that allows anonymous access to your database or the ability to remove logs, you may have to assume the entire database was compromised since the existence of that configuration issue or software bug.
comment 7y ago · link · parent
Many games since (including Destiny) have tried to recreate that feeling of an oppressive enemy that you can't defeat, only push back or cut a temporary swathe through. But no one comes close to Halo.
comment 8y ago · link · parent
For example, your phone can dial dozens or hundreds of your friend's phones without you remembering their numbers. This means you never need to use their phone numbers and hence don't remember them. A reasonable question you might ask is whether you are now free to spend that brainpower memorizing other, more useful things? Or are you actually less capable of memorizing other things because you are exercising your memory less?
There are other similar examples, for example password managers and even just general Google-able trivia. Is it a good thing or a bad thing for general intelligence that humans need spend less time memorizing these things?
comment 8y ago · link · parent
At the end of the day, languages that were less extreme won the popularity contest. Ruby and Python, for example, are just more accessible and full-featured.
comment 8y ago · link · parent
comment 8y ago · link · parent
If there's a complaint to be had here, it's that the HN poster changed the word "did" to "do" in the headline while posting here.
comment 8y ago · link · parent
Choosing zero as a threshold deterministically does not work for all choices that Alice can make because, as you say, for some choices such as (10,20) it gives you exactly 50% chance to win. But as long as there is always a non-zero chance that you chose a threshold between Alice's numbers, then there is a > 50% chance that you win the game.
comment 8y ago · link · parent
https://play.rust-lang.org/?gist=1324a919ca5d0e2f16e445364a7...