thinkharderdev
Joined 7 years ago
Joined 7 years ago
struct Q<T> { value: Option<T> }
with a named field or you can define it like
struct<T> Q(Some<T>)
which is the same struct layout but without an explicit name for the value. In that case, the field is implicitly names `0`
So q.0 = Some(foo) is equivalent to q.value = Some(foo).
The Some(..) is just one variant of the Option enum:
enum Option<T> { None, Some(T) }
Option represents a value that may or may not be initialized. For uninitialized values you use the None variant and then you can initialize it to Some(value).
The C rough equivalent would be
struct Q { void* value; }
struct Q q = q { NULL }; q->value = ...
> the history of artificial intelligence research is littered with examples of humans confidently declaring that task X requires general intelligence, then getting humiliated by a neural network doing task X better than humans a few years later
True, but the history of AI research is also littered with AI researchers confidently predicting X job will be replaced by AI and being completely wrong because they don't actually understand what those jobs actually are. See Geoff Hinton predicting that Radiologists would be obsolete by ~2020, or predictions that truck drivers would all be replaced by self-driving tech.
I think "modeling the trajectory" is not necessarily what we are doing either. It's more likely we are using much simpler heuristics. If you are trying to catch a ball flying through the air, you can just look at the ball and modulate your running speed to keep your eyes at a fixed angle until you catch the ball. It's much more analogous to a PID controller than a model of the trajectory.
This is the thing that drives my nuts about LLM-generated code. I will see PRs that fix a bug and the entire bug fix is re-explained in 10 different places in a code comment.
The answer is that it depends? If I have $1B then yeah I would roll the dice and keep rolling as long as they let me. If I have $100? Maybe not because you can go very easily go broke even if each bet is positive EV.
This is not really true and the whole fore foot vs heal striker thing is a bit of a red herring. There are elite distance runners that are forefoot, mid-foot (probably the majority) and heal strikers. The main thing is that wherever on their foot hits first, the foot itself is under their center of gravity and not out in front of them.
The review of the Grand Canyon annoyed me the most:
``` Can you hike in the Grand Canyon? Yes, technically. You can walk along the rim, but the view won’t change; same damn canyon on one side, same damn parking lot on the other. There are trails that go down into the canyon, but they’re a trap ```
So you can't even hike there, except of course for the hike that you can do.
"They are featureless steep inclines formed into endless switchbacks, and when they finally end, there’s nothing to do except go back up"
That is what hiking is! Granted, usually you hike up and then back down. And I wouldn't call the hike down into the canyon "featureless". Honestly, it sounds like this person just doesn't really like hiking, which if fine it's not for everyone, but that is just what there is to do in most national parks.
[ my public key: https://keybase.io/thinkharder; my proof: https://keybase.io/thinkharder/sigs/Ibpz0COsvz2qYl2K8YfzrhucHf2rcZIxityh5WvYC_k ]