Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mehrdadn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
331.
▲
by
mehrdadn
6y ago
I still don't understand what you're claiming is wrong with XOR. As I understand it, the XOR of two secure hashes should be at least as strong as each one. Of course you can find ways to deliberately come up with a broken scheme i
332.
▲
by
mehrdadn
6y ago
It's not "strange"... earlier hash algorithms tend to enjoy better performance and compatibility, and there are still use cases for which SHA1 (and even MD5) aren't broken.
333.
▲
by
mehrdadn
6y ago
> This argument always comes up when discussing direct democracy or similar ideas, but it completely collapses under even the most basic scrutiny! > Direct voting s strictly better than delegated voting, because you can always ... wai
334.
▲
by
mehrdadn
6y ago
Thanks!
335.
▲
by
mehrdadn
6y ago
No... it's not this simple. The mechanism for overriding a government existing is one thing, but making it so easy to trigger for the most random things left and right is quite another. I'm not sure if you've seen the CA ba
336.
▲
by
mehrdadn
6y ago
Someone also pointed this out in another thread, but generally speeding isn't a misdemeanor; it's an infraction.
337.
▲
by
mehrdadn
6y ago
Did you actually get a chance to see their questions? I wouldn't have posted my comment if they were less invasive or if people could skip more of them. But they seemed too invasive to me. They didn't even try to (to give just one
338.
▲
by
mehrdadn
6y ago
Pro tip: Say "yes" when asked if you've taken the test before, and you won't have to answer questions about your background.
339.
▲
by
mehrdadn
6y ago
Oh I see, thanks!
340.
▲
by
mehrdadn
6y ago
I'm talking about the program, not their website. It makes you enter an email before you can do anything. Says "Log in or create new account to access your vault", with a "Create account" button that asks for an ema
341.
▲
by
mehrdadn
6y ago
I'm confused how the self hosting works. Doesn't it force you to give them an email address? Why is that necessary when self-hosting?
342.
▲
by
mehrdadn
6y ago
https://www.youtube.com/watch?v=s7tWHJfhiyo https://en.wikipedia.org/wiki/Two-party_system https://en.wikipedia.org/wiki/Duverger%27s_law
343.
▲
by
mehrdadn
6y ago
In addition to the other comments (which are the primary reasons), beware that you can actually get different behavior due to something called "argument-dependent lookup". The most well-known example being std::swap(a, b) . In ge
344.
▲
by
mehrdadn
6y ago
That sounds like a great idea. Not sure if it might present a bit of a hurdle if the caller prefers it to be random-access, but I'm kind of tempted to try this out and see if it might present issues in practice. It might be worth sugge
345.
▲
New Blood Test Accurately Predicts COVID-19 Infection Severity
(scitechdaily.com)
4 points
by
mehrdadn
6y ago
|
0 comments
346.
▲
by
mehrdadn
6y ago
I'm not sure whom/what this is being fair to, given both of these are specified by the C++ standard, but sure.
347.
▲
by
mehrdadn
6y ago
Do you know if they're revisited this ever since string_view was implemented? I feel like a vector<string_view> should be quite uncontroversial, and you could even propagate the allocator from the string to the vector.
348.
▲
by
mehrdadn
6y ago
The trouble is often it doesn't matter and literally any of those would be useful, and yet none of them exists for you to use, so you have to waste time reinventing the wheel.
349.
▲
by
mehrdadn
6y ago
A lot of this comes down to expectations. I would treat C++ like, say, kind of like a cabinet full of chemicals, rather than like (say) a typical home toolbox. You (hopefully) don't just grab containers and mix their chemicals and expe
350.
▲
by
mehrdadn
6y ago
C# and Python... "a, b".Split(", ") // C# "a, b".split(", ") # Python
351.
▲
by
mehrdadn
6y ago
Because it doesn't even exist as provided functionality; you have to code basic stuff like this yourself. See for example https://stackoverflow.com/a/14267455
352.
▲
by
mehrdadn
6y ago
I say this with a lot of love for C++, and I think it has gotten much better, but just try splitting a string via another string as the delimiter...
353.
▲
by
mehrdadn
6y ago
I think you meant switch(y) instead of case(y)?
354.
▲
COVID-19 susceptibility linked to blood type
(scitechdaily.com)
4 points
by
mehrdadn
6y ago
|
0 comments
355.
▲
by
mehrdadn
6y ago
Did you read the first sentence in that paragraph? That entire paragraph is talking about when _POSIX_SYNCHRONIZED_IO is not defined: > If _POSIX_SYNCHRONIZED_IO is not defined , the wording relies heavily on the conformance document
356.
▲
by
mehrdadn
6y ago
I'm still lost what kind of a response you were hoping for that you didn't already receive, but you're welcome.
357.
▲
by
mehrdadn
6y ago
Right, but that's only because drives are lying at that point (or implemented so incompetently they have no idea they're lying...). Linux is trying to force liars to do what it wants anyway, and hence as a practical matter, progra
358.
▲
by
mehrdadn
6y ago
No, a null implementation is permitted because write() could potentially already provide these guarantees internally, at which point fsync() would be able to satisfy all requirements without needing to do anything. That sentence does not
359.
▲
by
mehrdadn
6y ago
Well I can't guess what else you imagined it to mean besides those, but I hope it's clarified now.
360.
▲
by
mehrdadn
6y ago
It means: "In case we didn't get the point across in the technical language above, this is what we're trying to say in plain English." It does not mean "we're just writing this superfluous text to clock in
More ›