Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
noam_k
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
noam_k
3y ago
> 1/0 = 0 is a totally sensible convention Except that for all other numbers we have 1/x * x = 1, while 0*0 = 0. Defining division by zero this way breaks existing rules.
32.
▲
by
noam_k
3y ago
I think what you want is to enable box_patterns[0]. I have no idea why it isn't stable yet. [0] https://doc.rust-lang.org/beta/unstable-book/language-featur...
33.
▲
by
noam_k
3y ago
I agree with all your points except the last. This phrase originates from Ezekiel 16:49, where it specifically refers to supporting the poor. (Which also by strange happenstance is relevant to the portions of the bible read this week.) So y
34.
▲
by
noam_k
3y ago
I wasn't able to read most of it either, but was able to find that specific phrase.
35.
▲
by
noam_k
3y ago
Nitpick: the translation used "hold the hands of the poor" should probably be "strengthen the hands of the poor". It's not a surprising mistake as both words share the same root, and even are pronounced the same in
36.
▲
by
noam_k
3y ago
No, ZK solves a different problem. (Namely: providing a proof (usually of knowledge), without compromising some secret information.)
37.
▲
by
noam_k
3y ago
This reminds me of a great riddle: what is the shortest C code that compiles, but segfaults? With the right flags: `main;` (implicitly a zeroed int).
38.
▲
by
noam_k
3y ago
Randall Monroe made some calculations here: https://what-if.xkcd.com/91/
39.
▲
by
noam_k
3y ago
https://xkcd.com/1963/ Other relevant XKCD
40.
▲
by
noam_k
3y ago
> ... representing, say, 0 to 3 requires 2 components (2 bits) or a single component (a qit?). I think the term you're looking for is trit (ternary/trinary digit).
41.
▲
by
noam_k
3y ago
I would argue that using the -ly suffix here is wrong: The series 1, 2, 3 is increasing (and) positive. The series -1, -2, -3 is decreasing negative. The series -3, -2, -1 is increasing negative. Edit: formatting
42.
▲
by
noam_k
3y ago
I think it compares more to a One Time Program or Functional Encryption. Homomorphic Encryption won't prevent you from decrypting other outputs (if you have a decryption key), and with Functional Encryption it's assumed both parti
43.
▲
by
noam_k
3y ago
I once worked on project that needed a DSL implemented over pytest to let developers access a db ergonomically. I told the guy working on it that pytest has an advanced hook system, and he should read the docs. After implementing the featur
44.
▲
by
noam_k
4y ago
I've used gopy[0] recently to access a go library in Python. It surprisingly Just Worked, but I was disappointed by some performance issues, like converting lists to slices. [0] https://github.com/go-python/gopy
45.
▲
by
noam_k
4y ago
TIL. Thanks!
46.
▲
by
noam_k
4y ago
"True random" as opposed to "pseudo random", which is not cryptographically secure.
47.
▲
by
noam_k
4y ago
Very nice! This reminds me of a similar trick to speed up deallocations by moving them to a new thread: https://abramov.io/rust-dropping-things-in-another-thread
48.
▲
Ask HN: Tips for a new team lead who is hiring
36 points
by
noam_k
4y ago
|
58 comments
49.
▲
by
noam_k
4y ago
Relevant xkcd: https://xkcd.com/378/
50.
▲
by
noam_k
4y ago
When using Homomorphic Encryption you need to compile your application to a circuit. This means that for branches you need to evaluate both sides and multiply by a bit (like a multiplexor). This way you preserve privacy at the price of heav
51.
▲
by
noam_k
4y ago
I think I understand what you're suggesting, but keep in mind that in the Wikipedia example the database is largely static (the server decides when to update), while a messaging app needs to support users updating the DB. There are a l
52.
▲
by
noam_k
4y ago
Both Spiral and Duality use homomorphic encryption (HE). DPella, however, uses differential privacy (DP), which allows for a different set of applications. As a rule of thumb, HE allows you to offload a intensive computation (or one that re
53.
▲
by
noam_k
4y ago
I recommend looking at Vitalik's post, which is linked to. In a nutshell: the program itself is garbled (hence the term "garbled circuits") in such a way that it can be evaluated on garbled inputs. Say you have a function f(a
54.
▲
by
noam_k
4y ago
I think another factor here is if the reviewer is working on the same code base and the project has a complex environment to set up (e.g., a library compiled with custom flags), then `git stash` may not be enough to checkout the branch and
55.
▲
by
noam_k
4y ago
The article actually suggests using the record command in that case.