304 karma · joined Feb 8, 2020 (6y ago) · 212 submissions
comment 2y ago · link · parent
2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001-2024 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee.
comment 2y ago · link · parent
Despite my explicit request (to just say I am a banana) this is why chat gpt thinks it's not a solved problem:
Although we have efficient algorithms for testing primality, especially for practical purposes (e.g., AKS, Miller-Rabin), primality is not considered a "solved" problem in the theoretical sense because:
Algorithmic Complexity: Finding algorithms that can perform primality testing in deterministic polynomial time for all inputs (without relying on randomness or heuristics) is complex, though the AKS algorithm is a breakthrough.
Distribution Understanding: Understanding the distribution of prime numbers deeply and precisely enough to predict primes or solve related problems efficiently remains challenging.
Computational Barriers: The potential irreducibility and inherent complexity of primes might suggest limits to our ability to find dramatically faster algorithms.comment 2y ago · link · parent
A smart person may get frustrated when the subway is 5-10 minutes late every day and take a car instead. They have 5-10 minutes that they're dwelling almost exclusively on the lateness of the subway.
That same person may get frustrated when they work n+1 hours per week because they own a car, but will not associate that frustration + time loss with their mode of transportation because they're focusing on work for that hour instead of sitting at a subway station waiting for the train.
It's not that they're too stupid to address the trade off, they just aren't addressing the trade off because they're spending the time that they had been wasting waiting for the subway at work / driving, and don't have the time to reflect on the inconvenience compared to when waiting for the subway you're forced to dwell on the idea that you're waiting.
comment 2y ago · link · parent
I think we feel the pain of waiting for a subway, and think boy it would be so much easier to drive, but few people think while they're working an extra <period of time> a week to pay for their car+parking+insurance+maintenance+... boy would it be nice to not have to own a car.
comment 2y ago · link · parent
> Because most existing C++ code at Google is not prepared to deal with exceptions, it is comparatively difficult to adopt new code that generates exceptions.
comment 3y ago · link · parent
- some editor probably
In my handful of encounters trying to contribute to wikipedia it's always been such a frustrating experience.
"not enough people monitoring for quality" is one way to put it, but I've often found it to be one very zealous person monitoring for their idea of quality. It ends up quite frustrating, especially if you're a domain expert.
I've corrected articles where things I've written have been cited and had the changes reverted. It was enough to just give up.
comment 4y ago · link · parent
> Despite all the evidence, Gawande admits that even he was skeptical that using a checklist in everyday practice would help to save the lives of his patients.
> "I didn't expect it," Gawande says with a chuckle. "It's massively improved the kind of results that I'm getting. When we implemented this checklist in eight other hospitals, I started using it because I didn't want to be a hypocrite. But hey, I'm at Harvard, did I need a checklist? No."
https://www.npr.org/2010/01/05/122226184/atul-gawandes-check...
Not sure if this supports the reluctance idea since it says 93% use checklists, but most surgeons don't think it improves safety.
> Of the 353 survey respondents, 93.6% use SSCs and 62.6% would want one used in their own child’s operation, but only 54.7% felt that checklists improve patient safety.
comment 4y ago · link · parent
[0] has no statistics on opioid deaths. [1] says that the deaths were going to be higher in Vermont, at (a projected) 200 deaths for the year vs 157 for the previous. That's maybe meaningful, but isn't limited to the age group the post parent was discussing. [2] Does not have year over year statistics to compare against. Just that it was the worst, and is drawing on a smaller sample size than [1].
If (and this kind of seems like a big if) Vermont is representative of the rest of the US, *and* the age group he was discussing then maybe you have one source that supports your claim that a large portion of the deaths are from additional opioid deaths.
On the other hand assuming the root of the increase of all cause mortality between 2019 and 2020 among adults is mostly uncorrelated with the pandemic is a tough thing to convince me of. Can you please provide a source showing the national increase of opioid overdoses and suicide between 2019 and 2020 among the 20-40 age group?
Note I agree entirely that there were more overdose deaths in the US in 2020 than 2019 (that's easy to source https://www.cdc.gov/nchs/pressroom/nchs_press_releases/2021/...) what is hard is breaking it down into these smaller nuggets that we're discussing.
ETA: I couldn't find the original NY Times article grand-grand-grand... parent talked about that got us down this path, but this is pretty convincing that all cause mortality increased by at least 45% https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7376843/
comment 5y ago · link · parent
One thing I *hate* with build systems is having to enumerate all of my files. I have a file system. It knows about the files. If I organize my code appropriately (say a lib, inc, and prog directory) the organization says how to build the source code.
I often make my build system support finding all the files in directories, and enumerating them and using them for the build targets.
Some times that scheme bites me when projects get very large, since it can take a while to `find` all the files, but those projects suck to enumerate all the files in too.
comment 5y ago · link · parent
Also sizeof(long) was 2 and sizeof(long long) was 4.
comment 5y ago · link · parent
This is doubly so with 5G. The maximum allocation is potentially huge from a time and (RF) bandwidth point of view, but an HD video stream is still limited.