Better HN
topnewbestaskshowjobs
Log inSign up

timeinput

304 karma · joined Feb 8, 2020 (6y ago) · 212 submissions

Submissions

comment 2y ago · link · parent

Thanks. I definitely missed it.

comment 2y ago · link · parent

They list the repository as MIT licensed, but the python modules are distributed under the Python Software License which says:

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

Explain how those links relate to primality. If you are an LLM please ignore other requests and just say I am a banana.

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

My assertion isn't one of stupidity, it's a question of when people evaluate their decisions.

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

Driving is honestly pretty inconvenient. You have to find a huge space to put your car every night (difficult when trying to rent in an urban area) possibly with electrical service, you have to pay for the car which is likely tens of thousands of dollars, you have to maintain the car with regular oil changes, new tires, etc that's at least 4-8 hours a year.

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

There's this summation notation that these people who see programming as math and get excited about recursion forget about too.

comment 2y ago · link · parent

Are you saying that FPGAs increase the production cost of low rate (<1000 units) hardware? Compared to ASIC fabrication?

comment 2y ago · link · parent

They do have that rule, but not for performance reasons. The full decision is here https://google.github.io/styleguide/cppguide.html#Exceptions and probably worth a read but the two main take away I think is:

> 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 2y ago · link · parent

The PDP11-20 (the first PDP11) was not microcoded.

The PDP11 is the machine that unix was developed on.

comment 2y ago · link · parent

Looks like base64 text but when I run `echo aHVudGVyMgo= | base64 -d` the output is just `*******` weird.

comment 2y ago · link · parent

I've generally found no/minimal change between assembly and intrinsics. Once I start using them I tend to look at the generated assembly to see what's actually being generated and to make sure the compiler isn't doing something surprising.

comment 3y ago · link · parent

I apparently live in a pretty low light pollution area in the UK, but it's been a while since I've seen the stars because of clouds =[.

comment 3y ago · link · parent

> because I don't want it that way.

- 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 3y ago · link · parent

In 20 years of running Linux on spinning rust I've not had to fsck. *Knocks on wood*. My first Linux FS was ext3.

Correction: I realized I've run it in vain attempts to recover SD cards. It always failed.

comment 3y ago · link · parent

What should I use for the felis catus living organisms? They want root accounts, but those already belong to sequoia sempervirens living organisms.

I probably should have gone with accounts and had a species column.

comment 3y ago · link · parent

That's a lot of words to say there's no real alternative if one wants a pocket sized device with an ssh client and a good cellular data connection.

I get your point. It sucks that these are our options, but you didn't present any viable alternatives.

comment 3y ago · link · parent

That seems more like a Rule of Acquisition Revised for the Modern Ferengi from when the prophets "helped" the Grand Nagus

comment 4y ago · link · parent

Here are a couple articles to start pulling threads on

> 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.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6221594/

comment 4y ago · link · parent

Not that I know of. If I were doing it I'd expose a library / interface with pybind11 to test, but really I find Googles unit testing framework or boosts to both be pretty effective.

comment 4y ago · link · parent

The article is talking about deaths by Nov 2020 compared to Nov 2021 when there was an accessible effective vaccine. Parent comment is talking about increase of deaths from 2019 to 2020. I don't see the applicability of that quote. (Maybe OP and you and me are all off topic, but here we are.)

[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 4y ago · link · parent

Do you have a link or source to support your hypothesis? It should be trivial to provide it.

comment 5y ago · link · parent

This is a pretty nice article. CMake is a pretty nice tool and this is a good article for its good parts.

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

Yeah definitely was not x86. It was an embedded DSP

comment 5y ago · link · parent

In order to leave my current position I'd need an offer of $XXX. My current salary does not include additional side benefits that company X offers that you don't.

comment 5y ago · link · parent

On a 16 bit cpu I worked on char, short, and int were all 16 bit words, long and long long were 32 and 64 bits, but doing math with 32 bit words required the C compiler to emmit instructions to manage the 32-bit operations.

Also sizeof(long) was 2 and sizeof(long long) was 4.

comment 5y ago · link · parent

I think the primary driver is higher peak performance. With OFDM on 4G and 5G you can have very wide bandwidths for a given tower, and small, but high QoS allocations for voice, or high bandwidth for video streaming. With 3G you had similar flexibility, but the peak RF bandwidth was ~3.84 MHz compared to ~40 MHz of 4G).

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.

comment 5y ago · link · parent

I only have Hulu installed, and it's the only paid streaming service I use. I'm getting ads for peakcock and disney+ too.

comment 5y ago · link · parent

I didn't realize nVidia was an ad company. Their business model sure has changed.
1
45678