> Numpy has mean and variance functions built in for arrays.
Even outside of Numpy, the stdlib has the statistics packages which provides mean, variance, population/sample standard deviation, and other statistics functions for normal iterables. The attempt to make Python out-of-the-box code look bad was either deliberately constructed to exaggerate the problems complained of, or was the product of a very convenient ignorance of the applicable parts of Python and its stdlib.
The bare python/stdlib example used (as well as bare python and avoiding add-on data science oriented libraries not being the way most people would use python for data science) is just...bad? (And, by bad here I mean showing signs of deliberately avoiding stdlib features in order to increase the appearance of the things the author then complains about.)
A better stdlib-only version would be:
from palmerpenguins import load_penguins
import math
from itertools import groupby
from statistics import fmean, stdev
penguins = load_penguins()
# Convert DataFrame to list of dictionaries
penguins_list = penguins.to_dict('records')
# create key function for grouping/sorting by species/island
def key_func(x):
return x['species'], x['island']
# Filter out rows where body_mass_g is missing and sort by species and island
filtered = sorted((row for row in penguins_list if not math.isnan(row['body_mass_g'])), key=key_func)
# Group by species and island
groups = groupby(filtered, key=key_func)
# Calculate mean and standard deviation for each group
results = []
for (species, island), group in groups:
values = [row['body_mass_g'] for row in group]
mean_value = fmean(values)
sd_value = stdev(values, xbar=mean_value)
results.append({
'species': species,
'island': island,
'body_weight_mean': mean_value,
'body_weight_sd': sd_value
})
Note that if this is true (and it is!) all the other statements about intelligence and where it is and isn’t found in the post (and elsewhere) are meaningless.
I did notice that, the person you replied to made a categorical statement about intelligence followed immediately with negating that there is anything to make a concrete statement about.
> Notice the absurd number of young, frail people with canes and masks.
I don't notice an absurd number of young, frail people or young people with canes. There are a larger number of people of all ages masking than was the case pre-pandemic (especially outside of the ethnic groups where precautionary masking was common pre-pandemic) but...I don't think that's particularly a sign of changes in health status as it is of changes in perception of external environmental conditions and associated health risks.
Well, the solution usually isn't in syntax, but it often is solved by way of code formatters, which can normalize the syntax to a preferred form among several equivalent options.
I suspect rustfmt would consider this out of scope, but there should be a more... "adventurous" code formatter that does more opinionated changes. On the other hand, you could write a clippy lint today and rely on rustfix instead
> Women do not generally want men to stay at home and take care of kids. Women also demand that men make more money than themselves. For women, the period between the kids being born and going to school full-time is like a kind of sabbatical.
Domestic labor and being primary caregiver for children is not, in any way, like a sabbatical.
It actually is like a sabbatical, especially with all the modern conveniences of appliances and cars. When I hear women whine about domestic labor I have to mention that single men and women do practically the same labor, for themselves alone, and washing clothes or cooking is much easier to do for multiple people than for one person. It isn't 3x as much work to keep house for 3+ people as it is to keep house for 1. Women who stay home for kids invariably watch lots of TV and maybe do three hours of actual recognizable work per day max. I'm sure there are some who insist on maxing out everything they do, cooking fancy meals and doing elaborate activities that they truly hate for the sake of the kids, but this seems rare.
Kids can be annoying, but they can also be a lot of fun. Having the luxury of being able to spend months on end with them, without worrying about money, is a luxury that unfortunately is on the decline. But it is still more attainable that most realize.
> When I hear women whine about domestic labor I have to mention that single men and women do practically the same labor, for themselves alone, and washing clothes or cooking is much easier to do for multiple people than for one person.
That last part is very much not true, perhaps especially when children are involved.
> Women who stay home for kids invariably watch lots of TV and maybe do three hours of actual recognizable work per day max.
Maybe if you are very bad at recognizing work.
> without worrying about money
Not earning money in outside labor is not the same as not worrying about, and managing, money.
I don't have a citation but I have eyes and I see how real parents in my life have gotten by. Besides, even if it is somehow more work than 3 hours per day, it is probably close to that amount and far more enjoyable than most jobs. If you count sitting around watching your own kids play as "work" that demands "compensation", I feel bad for you.
Wait, do you have kids yourself? Childcare days with my 2yo are much more draining than most work days. It's never a case of just sitting and watching.
> joining NATO would have required relinquishing its claim on Crimea.
That’s...not at all clear (there is no such legal requirement, though there were some NATO members who publicly suggested that resolving the territorial disputes with Russia first was their then-current diplomatic position at various times in the discussion of the possibility. But diplomatic positions are sometimes prone to change in response to inducements from parties with different preferences.)
Using shell as an intermediary is the same kind of indirection as tool search and tool use from code, so I think you are largely agreeing with their substantive sentiment while disagreeing with their word choice.
If it was example code, it wouldn't let codegen be skipped, it would just provide guidance. If it was a dererministically-applied template, you could skip codegen, but that is different from an example, and probably doesn't help for what codegen is for (you are then just moving canned code from the MCP server to the client, offering the same thing you get from a tool call with a fixed interface.)
Intellectual property rights are already different than other intangible personal property rights which are different than tangible personal property rights which are different than real property rights.
Even outside of Numpy, the stdlib has the statistics packages which provides mean, variance, population/sample standard deviation, and other statistics functions for normal iterables. The attempt to make Python out-of-the-box code look bad was either deliberately constructed to exaggerate the problems complained of, or was the product of a very convenient ignorance of the applicable parts of Python and its stdlib.