HNHacker News
TopNewBestAskShowJobs

GrantMoyer

2,239 karma · joined April 3, 2024

submissionscomments
GrantMoyer··on 'Dear Mr. Kubrick': 1960s Audience Responses to 2001 — A Space Odyssey (2009) [pdf]
Note though that the movie is not an adaption of the novel. They were written in tandem, and the movie was published slightly before the book.
GrantMoyer··on The two factions of C++
While programming in Rust, I've never thought to myself, "man, this would be so much easier to express in C++". I've plenty of times thought the reverse while programming in C++ though.

Edit: except when interfacing with C APIs.

GrantMoyer··on Charset="WTF-8"
Valid names are those which terminate when run as Python programs.
GrantMoyer··on Everyone is capable of, and can benefit from, mathematical thinking
Does the quip have to do with someone asking what the quip is?
GrantMoyer··on Bird flu infections undetected
Any chance we could just stop raising so many cows and chickens?
GrantMoyer··on EU opens antitrust investigation into anticompetitive practices by Corning
Yeah, we'll get right on it. Increasing tarrifs should do it, right?
GrantMoyer··on EU opens antitrust investigation into anticompetitive practices by Corning
As a US citizen, thanks Europe for regulating our businesses.
GrantMoyer··on Perhaps Rust Needs "Defer"
This only addresses a small point in the article, but you can shrink capacity to size before passing a Vec to C, then assume capacity = size when you need to free the Vec.
GrantMoyer··on Stop saying "just" (2019)
For some reason, I found myself unreasonably upset at the suggestion that I should avoid a word solely because people will assume it indicates malintent. But after taking a step back to reflect, I realize it's not a big deal to avoid one word. I'm perfectly capable of condescension without having to rely on any specific word.
GrantMoyer··on Cooking with black plastic is particularly crucial to avoid
Many medical implants are made of PTFE because of how inert it is.
GrantMoyer··on Mistakes from building a model to scalp concert tickets
> But I work hard in a good job and I have disposable income. So I can, effectively, pay a scalper to do this for me. Am I less deserving of a ticket?

No, but you're not more deserving either.

GrantMoyer··on Lessons learned from a successful Rust rewrite
Smaller follow up, it's multiple read-only references NAND one mutable reference, since it's also safe to have no references.
GrantMoyer··on HTML Form Validation is underused
In plain HTML, you can't do:

  custom-validity={value.length ? "Fill out this field" : ""}
you can only use a static string for an attribute. So you'd need an event handler to set custom-validity from javascript when the input value changes, then a handler to setCustomValidity when custom-validity changes.

In other words, it's the same exact imperitive interface as setCustomValidity, except with an extra layer and the extra event handling has to be implmented along with it.

If I had a say, I'd go for an interface where custom-validation would take a javascript function name, and that function would take the value as input and optionally return a string with a validity message. Or it takes a javascript snippet like onclick, except one which returns an optional string value. Then again, there wouldn't be much difference from onchange.

Edit: to counterbalance some of the criticism, I think the article is very nicely written and formatted, and the interactive components are a good touch.

GrantMoyer··on HTML Form Validation is underused
It's exacerbated by the fact that the API they propose to make custom validation more ergonomic works for React, but would be much worse for plain Javascript and HTML.
GrantMoyer··on HTML Form Validation is underused
The (?=…) are "lookaheads". They match the enclosed pattern without advancing the cursor.
GrantMoyer··on Improving Xwayland window resizing
I think issue is the screen capture tool or a framerate mismatch in transcoding. The video is 59fps, but the mouse cursor only updates every few frames. Usually it's every other frame, but sometimes it takes three frames or more to update, and sometimes it updates in two or more consecutive frames. On most of the frames where the cursor moves, the window size also changes.
GrantMoyer··on Saturated fat: the making and unmaking of a scientific consensus (2022)
The reasons one diet is typically accepted and the other isn't is because the two diets are materially different. It's possible to have a nutritionally complete diet of only plants where the vast majority of the nutrients are naturally occurring in the food. The same is not true of a diet without plants; it's not possible to have a nutritionally complete diet without plants without a significant portion of nutrients coming only from supplementation.
GrantMoyer··on Saturated fat: the making and unmaking of a scientific consensus (2022)
This is insane.

To be clear, it's quite possible for a temporary elimination diet to aleviate unexplained symptoms, for instance from an unknown food allergy or intolerance. But then you need to slowly reintroduce foods to find which specific food causes the problem, otherwise your diet is bound to be nutritionally deficient. Eliminating all plants from your diet permanently is insane.

GrantMoyer··on Did too many games release in Q3 of 2024?
Some of my favorite stories are from videogames, but I don't know if the medium as a whole is outpacing films. AAA games have a lot of the same problems as Hollywood; they're usually very formulaic and safe. And while indie games are more thematically varied, they're hit or miss on execution, a lot like indie films.

That said, horror movies specifically are often very underwhelming in the themes they explore, so horror videogames don't have a high bar to beat.

GrantMoyer··on Law Enforcement Undermines Tor
Agreed. An added benefit is then ISPs could monitor traffic and sell the data to AD or insurance companies, who could use it to drive more sales or cancel risky insurance policies, increasing the efficiency of the economy.
GrantMoyer··on Please do not write below the line
I've never felt so much like I'm reading a passage from The Trial aside from while reading the novel itself.
GrantMoyer··on Wild animals are spiraling to extinction. Can a bunch of bureaucrats save them?
Some particularly harrowing quotes from the linked Wikipedia article which make clear the scale of the current situation:

> The contemporary rate of extinction of species is estimated at 100 to 1,000 times higher than the background extinction rate, the historically typical rate of extinction (in terms of the natural evolution of the planet); also, the current rate of extinction is 10 to 100 times higher than in any of the previous mass extinctions in the history of Earth.

> A 2018 study published in PNAS found that since the dawn of human civilization, the biomass of wild mammals has decreased by 83%.

> The World Wide Fund for Nature's 2020 Living Planet Report says that wildlife populations have declined by 68% since 1970

> A 2023 study published in Biological Reviews found that, of 70,000 monitored species, some 48% are experiencing population declines from anthropogenic pressures, whereas only 3% have increasing populations.

And finally, with regards to rats:

> Bramble Cay melomys were declared extinct in June 2016.

GrantMoyer··on Wild animals are spiraling to extinction. Can a bunch of bureaucrats save them?
Note that the human caused Holocene Extinction[1], among the 7 largest mass extinctions in the entire history of multi-celular life on Earth, is ongoing.

[1]: https://en.wikipedia.org/wiki/Holocene_extinction

GrantMoyer··on Magnet-free induction motor aims to nearly halve carbon emissions
The article is kind of word soup, but I think the idea is that instead of using electromagnets interacting with permanent magnets to generate force, the motor uses electromagnets on both the rotor and stator. And it isn't nessesarily more efficient than a conventional electric motor, but the claim is that it costs less emissions overall, since rare earth magnets don't need to be mined to produce it. Also, it's brushless, or in other words power is transmitted to the rotor by induction instead of by electrical contacts, possibly using the electromagnets in the stator, but that's unclear.

It's a neat idea.

GrantMoyer··on Does veganism have an ultra-processing problem?
Bees aren't plants.

More seriously, if they follow a nearly vegan diet for ethical reasons, except they don't give a shit about bees, it makes sense to describe their choice as approximately vegan, rather than plant based, because it is approximately vegan.

GrantMoyer··on Does veganism have an ultra-processing problem?
Sure, and the study even finds vegetarian and vegan diets have a higher proportion of "healthy" foods overall. But as far as I've found, neither that study nor the other linked articles investigate which of these specific groups of foods are linked to increased risk of disease and death (regardless of how obvious it may seem for some of the groups), only ultra-processed foods in general, which is a very broad category.
GrantMoyer··on Does veganism have an ultra-processing problem?
Note that the Nova definition of "ultra-processed foods" includes foods such as tofu and many unsweetened soymilks, along with foods like potato chips and Oreos.

So the article discusses multiple studies which find increased consumption plant origin ultra-processed foods is associated with an increased risk of disease and mortality. Seperately, another study found vegetarians and vegans eat a higher proportion of ultra-processed foods than the general population.

Does the subset of ultra-processed foods of which vegetarians and vegans eat more significantly overlap with the subset which increases risk of disease and death? We don't know; that's not in the data and the article doesn't discuss any articles linking vegetarian and vegan diets to higher risk of disease and death. What if vegetarians and vegans eat a ton more tofu and soymilk but less potato chips and Oreos?

The article sort of adresses this, but not very directly. Also, vegetarian and vegan diets are more of a footnote in the article; it's more about ultra-proccessed foods in typical diets. And the actual article title better reflects the focus, so I wonder why the post changed it so significantly.

GrantMoyer··on Being generous, thoughtful, and kind is a sign of high intelligence
What do you suppose compels social animals to cooperate socially? I can imagine a few possibilities:

1. Maximizing self interest using an understanding of social contract theory

2. A complex system of instincts that depends on others behavior, but doesn't manifest as intuition about the reasons for those behaviors

3. Like 2, but it manifests as an intuitive undestanding of how others may feel

I admit, 1 seems unlikely, even for humans. 2 and 3 sound more plausible, but 3 seems like the simpler explanation to me. We have an example case of it in humans (of course humans may additionally reason about others intent), and I'd expect similar tendencies to have similar mechanisms. Plus, grouping behaviors into intents reduces the number of rules needed for the observed behavior -> response mapping at the cost of some pattern recognition ability.

It's possible there's another explanation, including why similar tendencies aren't explained by similar mechanisms, despite the availability of similar "hardware". If there is, I'm not clever enough to have thought of it.

GrantMoyer··on Being generous, thoughtful, and kind is a sign of high intelligence
Probably most social species have this capability.
GrantMoyer··on Seeing Faces in Things: A model and dataset for pareidolia
Human intelligence arose slowly, over multiple species adaptions, and much longer ago than 20,000 years. For example, cooking predates modern humans[1] by at least hundreds of thousands of years.

[1]: https://en.wikipedia.org/wiki/Cooking#History

← PreviousPage 6 of 12Next →