Better HN
topnewbestaskshowjobs
Log inSign up

CaptainNegative

604 karma · joined May 2, 2021 (5y ago) · 230 submissions

https://yonatan.us
Submissions

comment 1y ago · link · parent

What counts as a standard formatter? Python one-liners are Turing complete even without semicolons, evals, execs, and with finite stack depth. E.g. some formatters keep this at one line, while others introduce line breaks https://yonatan.us/misc/bf.html .

comment 1y ago · link · parent

> Since P is a subset of NP, everything in P can be also be turned into an instance of SAT.

This statement is kind of trivial. The same is true for any language (other than the empty language and the language containing all strings). The reduction is (1) hardcode the values of one string, y, that is in the language and another string, z, that is not in the language (2) solve the problem on the given input x in polynomial time poly(x) (3) return y if x is to be accepted and z otherwise.

The total running time is at most poly(x)+O(|y|+|z|) which is still poly(x) since |y| and |z| are hardcoded constant values.

comment 2y ago · link · parent

This isn't an area I know much about, but wouldn't there be a security risk involved with storing the TOTP seeds alongside the passwords? Or is that not a real concern?

comment 2y ago · link · parent

no need to be colorist

comment 2y ago · link · parent

I often find myself mixing Nones into lists containing built-in types when the former would indicate some kind of error. I could wrap them all into a nullable-style type, but why shouldn't the interpreter implicitly handle that for me?

comment 2y ago · link · parent

Why would you assume this targeted three people? I assume the most likely scenario is that the attackers targeted as many Hezbollah members as they could, and were extremely successful at it.

comment 2y ago · link · parent

This proof has almost nothing to do with Euclid. The Pythagoreans knew about it more than a century before his birth (Hippasus was apocryphally killed for divulging this proof), and the proof is widely believed to have only been inserted into Elements by others after Euclid's death.

comment 2y ago · link · parent

I don't think that follows at all. Any series of rational numbers that converges to a rational (such as any appropriate geometric series) will still converge to a rational if you remove any finite or co-finite subset of terms.

comment 2y ago · link · parent

In principle, someone seeing heido15wkj6@yourraredomain.com, yua16ooaaj2@yourraredomain.com, and kqoq91inhi4@yourraredomain.com in a dump might be able to infer that all of these belong to the same user with a catchall address (especially if they can verify that the domain is unpopular via dns caching or other tricks). Using a common service adds another partial layer of anonymity between the email addresses, making one harder to track.

comment 2y ago · link · parent

Assuming the usual consistency caveats, the paradox is no longer a theorem of ZF+DC, but its complement isn't either. So in that case the analogue to the fifth postulate is even stronger, as there are both models in which you get the counterintuitive results of unmeasurable sets and those in which you don't, and the axioms are not strong enough to distinguish the two.

comment 2y ago · link · parent

A simple way to view the first statement is that by both doubling the request rate and halving the processing time, you're effectively speeding up time by a factor of 2. If you were to record a video of the entire system, someone switching the parameters as you describe and someone putting the recorded video on a 2x fast forward would be fundamentally indistinguishable. So, naturally, the response time gets cut down on half as well.

comment 2y ago · link · parent

There's not really any evidence for this. On a source-by-source basis, plant-based protein quality tends to be a few percentage points lower than from animal sources due to the differing amino acid distribution, but mixing sources like rice+pea gets you all you need. Soy is already pretty good by itself if you're okay with just consuming a tad bit more. Personally I just add a protein shake to my diet and that more than makes up for the difference relative to my carnist days.

The micronutrients that vegans need to watch out for are EPA/DHA (types of omega 3s) and Vitamin B12. Both are trivial to supplement, and not particulary expensive (especially now that Costco sells the former). The B12 you get via factory farmed meat is all supplemented to them anyway, so there's no difference in some hypothetical molecule quality.

The last remaining micronutrient that might be tricky is Vitamin D3, if you don't get the necessary sun exposure. The D3 in standard supplements is usually made from sheep wool. But you can also replace that with relative ease, and many vegan options are really mixed D3+K2 supplements which is even better. Also available at Costco, for what it's worth.

comment 2y ago · link · parent

From the article

> The backdoor’s careful design could be the work of US hackers, Raiu notes, but he suggests that’s unlikely, since the US wouldn’t typically sabotage open source projects—and if it did, the National Security Agency would probably use a quantum-resistant cryptographic function, which ED448 is not.

I'm not personally knowledgeable enough to assess this claim.

comment 2y ago · link · parent

The article is using short scale billion, thank the lord. (note: parent comment was edited)

comment 2y ago · link · parent

That's only $180k per meter.

comment 2y ago · link · parent

The only symptoms needed are a pulse, the ability to type out a credit card number, and availability for a sham phone call. It's virtually impossible to not get prescribed one from a mill.

comment 2y ago · link · parent

I had a similar impression when I took a course on the matter ages ago. I don't have a better cognitive model, but the methods we were shoehorned into with ACT-R were so different from the actual cognitive processes I undertake in completing the same tasks that it all felt so pointless. Short of results derived from massive hyperparameter tuning to overfit existing data, has ACT-R shown any real-world explanatory power?

comment 3y ago · link · parent

Gaim

comment 3y ago · link · parent

Here's a simpler example that works.

Q: Prove that if cos(x) is an integer then so is sin(x).

A: The statement "if cos(x) is an integer, then so is sin(x)" is not true in general. To understand why, let’s consider the properties of sine and cosine. [...]

It had trouble when the problem domain is different from the usual one the same keywords typically fall into.

comment 3y ago · link · parent

If you can check any given bitstring for whether it encodes a valid ZFC proof of the (in)consistency of ZFC in finite time, then you can write a program to enumerate over all possible bit strings in shortlex order and halt the first time you see a valid proof.

comment 3y ago · link · parent

How do you read that other than as "if you have humanity, you support Palestine", which is semantically equivalent to "if you don't support Palestine, you have no humanity"?

comment 3y ago · link · parent

> ... and you don't have to be a Muslim to support Palestine, you just have to be a human being

One can support innocent Palestinians without supporting Palestine, the same way one can support innocent Israelis without supporting Israel. Not sure why they decided to sneak in some dehumanization into what masquerades as a positive sentiment.

comment 3y ago · link · parent

If it were just up to randomness with an unmodified ROM, then (barring a glitch) they would have soft locked at the Safari Zone which costs some currency to enter and needs to be traversed to the Surf HM in a relatively tight number of moves. There's only a finite amount of money in the game, so they can only fail at most a few hundred times before the game becomes impossible to beat.

comment 3y ago · link · parent

I speak Hebrew. The direct translation is "we will operate everywhere and with full force".

comment 3y ago · link · parent

And there's a lot of money poured into keeping it that way. Sonoma County, CA lets organized theft gangs roam free, but conjure up the ridiculous charge of felony conspiracy to commit misdemeanor trespass for someone saving sick ducks from a duck farm after authorities refused to act on reports of California Prop 2 violations.

The reason the DA couldn't go with burglary is because that would require the object taken to have positive value, and those companies don't want to claim they also sell slaughtered animals who were diseased to the verge of death. If they discard their bodies as they corpses they do, they are of no value to the farmers and thus could not have been the subject of a burglary.

comment 3y ago · link · parent

"Prelim" also sometimes refers to an exam taken shortly after entering a PhD program to ensure you belong there.

One of the grad schools I attended had both a written "prelim" in year 1 and an oral "qual" in year 2/3. The other just had an oral "general" in year 2.

comment 3y ago · link · parent

The dependence on sample size is not exponential, it's sublinear. The heuristic rate of convergence to keep in mind is the square root of the sample size, i.e. getting 10x more samples shrinks the margin of error (in a multiplicative sense) by sqrt(10) ≈ 3ish.

The exponential bit applies to the probability densities as a function of the bounds themselves, i.e. how likely you are to fall x units away from the mean typically decreases exponentially with (some polynomial in) x.

Of course, this is all assuming a whole bunch of standard conditions on the data you're looking at (independence, identically distributed, bounded variance, etc.) and may not hold if these are violated.

comment 3y ago · link · parent

James, while John had had "had had" had had "had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had". "had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had" had had a worse effect on John's computer program because the string buffer wasn't large enough.

In the context of two users putting inputs into a C program that doesn't sanitize user input.

comment 3y ago · link · parent

Yes? Please don't make us pull out the model trolley set again.

comment 3y ago · link · parent

> More pedantically, it’s possible for a polynomial solution to P=NP to exist without it running in polynomial time in python.

That's not true. Any Turing machine can be compiled into a Python program with at most cubic slowdown. More precisely, the number of Python bytecode operations executed will be at most quadratic in the running time p(n) of the TM, with all operation acting on a bounded number of objects of size O(log p(n)) (which for polynomial p() is just O(log n)).

One can check Chapter 1 of Arora & Barak's Computational Complexity book for a description of the C/Java analogue of this claim, but it follows from a straightforward simulation argument: literally just hardcode the TM states and transition model, then execute it. The only bit to be careful about is addressing and address sizes growing unbounded, but the max size is only logarithmic in running time (simple proof, I believe this is an exercise in Sipser's book), and that's why we give ourself a cubic buffer.

12345
8