HN user

justincredible

15 karma

Enterprising

Posts0
Comments24
View on HN
No posts found.

While partitioning these cultural attitudes and artifacts by decades is a useful heuristic, I often feel like the actual cutoff point is around mid-decade. The late '80s feels closer the the early '90s than it does the early '80s.

Huh? He's saying that caloric restriction does work, but many people only achieve that by temporarily restricting their food options.

The idea that dieting is a temporary change to your food habits is why most "diets" eventually fail.

I've usually heard this phrased as the signature implies only one possibly function, but that is in a very abstract sense. This phrasing is more intuitive as it's saying the signature constrains what the function could possibly do.

For example, if you have a function of type ℕ x ℕ -> ℕ you know it could be doing addition, multiplication or exponentiation, but it can't do division because then it could only be a partial function. A more abstract signature ℕ x ℕ x Op -> ℕ, where Op is the set of binary operations on the natural numbers, can really only do one thing (apply the operands to the operation).

Another example, [A] -> A could be any fixed indexing function, but it can't be a function that produces a value of A not found in the list as the true signature of that function is just A per se.

As a sibling comment points out, in the context of programming the signature isn't as constraining as it would be in maths as the distinction between total and partial functions is often ignored and you can have side effects. But the more you model your functions to be pure and total the more you can reason about them abstractly.

I agree that they shouldn't have re-edited the movie based on Carrie Fisher's death IRL, but that scene is a masterclass in bad writing.

Rian's intention was to demonstrate some semblance of humanity remained within Kylo. But the optics are that he is truly weak and in the end isn't even bothered much by the (for all he knows at the moment) imminent death of his mother. Had Kylo fired the shot he at least would have surpassed Vader in evilness, whether or not Leia saved herself.

I agree with the "fans" that she should have died in that scene, but since Rian was too scared to snuff Leia before Luke the scene shouldn't have been written in the first place.

Rust 1.71.0 3 years ago

Rust compilation is strict but not cruel. The suggested fixes associated with compilation errors are very friendly to beginners (one notable exception is errors around lifetimes).

Your concerns regarding "feature creep" are reasonable and would be expected for a language trying to displace C++.

Edit: grammar

Wobbly clock 4 years ago

It solves the problem of the child getting the wrong answer until they have to read a real mechanical clock.

The Parity of Zero 6 years ago

The orbit is closer and farther at different times of the year, but that is not the reason for the change of seasons.

The Parity of Zero 6 years ago

Even numbers end with even digit

True (in even bases).

Since 30 is even so must be 0

This is essentially the converse of the previously statement. Fortunately, the statement is based off an equivalence so it is also True.

Idempotent means feeding the output back in as the input will result in the same output. It might require purity, but is conceptually distinct.

For example, boolean negation is a pure function as it depends only its input and has no side-effects, but it's not idempotent since: not(not(var)) != not(var)