Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
arielb1
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
arielb1
10y ago
gitless gives each branch its own separate worktree (see `git worktree`), and saves/restores them when you switch branches. Also, there's no harm in creating "temp" commits. If you are having multiple branches, you proba
32.
▲
by
arielb1
10y ago
How are `git reset` and `git revert` related? How are `git fetch` and `git cherrypick` related?
33.
▲
by
arielb1
10y ago
By that, AFAICT they mean "a branch, in addition to being a commit pointer, contains all the files in the working directory".
34.
▲
by
arielb1
10y ago
2FA is supposed to be 2 -factor authentication: a password and a phone number. If you allow the phone number to reset the password, it becomes 1 -factor authentication.
35.
▲
by
arielb1
10y ago
I find terraform's git log to be more readable. You can get a quick overview for which commits corresponds to which feature by following the first-parent chain.
36.
▲
by
arielb1
10y ago
Pick a reference frame. Sample the state of each CPU on its clock edge. Now you have a sequence of transitions. The sequence is heavily non-deterministic, but that's life in a concurrent universe.
37.
▲
by
arielb1
10y ago
No. If the problem is computational resources, performance can't be increased by mere concurrency (while even completely deterministic STM-style parallelism would help). Concurrency improves performance when a process accesses both t
38.
▲
by
arielb1
10y ago
nitpick: encrypt-then-MAC is an AEAD construction.
39.
▲
by
arielb1
10y ago
Having the SHA-512 hash at the beginning simplifies the implementation because the "security" code only needs to handle 64-byte random strings (which are truncated to 54-byte strings for `bcrypt`, but still...). That removes all s
40.
▲
by
arielb1
10y ago
Even hex-encoding for 288 bits of entropy is plenty good enough.
41.
▲
by
arielb1
10y ago
What's the problem with `H(salt||H(pepper||password))`? If `H` is a good PRF, it should work fine (you want `KDF(salt, H(pepper||password))` to protect against guessing attacks). In any case, if you pepper is exposed and you don't
42.
▲
by
arielb1
10y ago
Except that security standards are mostly driven by compatibility with all sorts of edge cases (ancient versions of software! COBOL-bound CAs! tiny smart cards! huge distributed systems!) that are probably not relevant to your case and crea
43.
▲
by
arielb1
10y ago
That's because a blackout costs the customers the same tens or hundreds of millions.
44.
▲
by
arielb1
10y ago
Universal healthcare is probably a good idea. And while it is a form of basic income, it feels fairly orthogonal to it politically. I'm not really sure why an "old age and unemployment" security net is intrinsically more poli
45.
▲
by
arielb1
10y ago
So the problem with San Fransisco is too much people chasing not enough houses, and your solution is to pay people to buy houses?
46.
▲
by
arielb1
10y ago
Fancy highly-scalable distributed algorithms have that annoying tendency of starting at 10x slower than the most naïve single-machine algorithm.
47.
▲
by
arielb1
10y ago
JSON is just as much rooted in math as SQL tables - it is `fix T = FiniteMap String T` plus a few primitive types, while SQL is `Collection (Set [String])` plus a few primitive types. Of course, SQL has a nice efficiently-implementable alge
48.
▲
by
arielb1
10y ago
The iPhone is a pocket PC with a phone bolted on. The phone part can remain be just as boring and utilitarian as ever - I think my "phone" experience might have even been better with a Nokia.
49.
▲
by
arielb1
10y ago
Why loss aversion? People don't want a black person in their home because they believe that black people are more likely to mess up their home than white people. They would rather not rent out their home at all.
50.
▲
by
arielb1
10y ago
No it doesn't. You can perform the first pass of salted hashing on the client-side. This should not harm security, but it can improve it if someone on the datapath is logging requests but does not alter them.
51.
▲
by
arielb1
10y ago
If you can't pay enough to find someone competent to be on-call, you have to do without. That's life.
52.
▲
by
arielb1
10y ago
If there is one thing our world does not lack, it's amoral people. Would you prefer that Facebook only hire them?
53.
▲
by
arielb1
10y ago
"RAM+arithmetic"-style complexity analysis in terabyte-scale-and-above problems is unable to distinguish between very practical and absolutely impractical algorithms. "square-root ideal cache hierarchy + arithmetic" has
54.
▲
by
arielb1
10y ago
You can say everything is O(1) because nothing would ever take more than `2^128` seconds. In practice, O-notation means "with a reasonably small constant".
55.
▲
by
arielb1
10y ago
Yeah. The other way around.
56.
▲
by
arielb1
10y ago
Puzzler #3 does not have much with using a half-closed socket - you still have a socket that selects as writable, but is not connected to anything. For some reason I remember that when a process crashes the OS's TCP stack sends an RS
57.
▲
by
arielb1
10y ago
Puzzler 1 is when a machine goes down and stays down, and you hang or retransmit until a timeout. Puzzler 2 is when a machine goes down and then comes back up, and you get reset.
58.
▲
by
arielb1
10y ago
Docker contains the effects of sucky programming to a single container. If your programs follow best practices, systemd is just as good.
59.
▲
by
arielb1
10y ago
If you have an API on a shared data structure, either you have distributed locking or you have conflicts. Distributed locking sucks, but CRDTs only prevent conflicts from messing up your data structure, not from existing.
60.
▲
by
arielb1
10y ago
It's not like you are making tight fits with wires anyway, a millimeter here or there won't matter. However, using something like the E12 series would work pretty well.
More ›