Readit News logoReadit News
patrickthebold commented on When 1+1+1 Equals 1   mathenchant.wordpress.com... · Posted by u/surprisetalk
HWR_14 · a month ago
[My post below is wrong]

> In fact, in any group with binary operation +, identity element 0, and a non-identity element a, we have a + a + a = a if and only if a + a = 0 (i.e. a has order 2).

The "if" is correct. The "only if" is not. (I assume that '+' and '0' are used as shorthand for "any binary operation" and "the identity of that binary operation", as I don't recall cases where "+" and "*" are used for specific types of binary operations).

patrickthebold · a month ago
I'd be good to give an example of where the 'only if' doesn't apply. If only to clear up the confusion.
patrickthebold commented on The last-ever penny will be minted today in Philadelphia   cnn.com/2025/11/12/busine... · Posted by u/andrewl
ryandrake · a month ago
Allowing gas stations to denominate their prices by the 10th of a cent has always struck me as a just an underhanded and extreme way to practice the "9.99" retail psychological trick. Why not allow retailers to price things 9.99999? Ridiculous.
patrickthebold · a month ago
of course 9.99...(repeating) is mathematically 10, so I have a hard time being against allowing that.
patrickthebold commented on The last-ever penny will be minted today in Philadelphia   cnn.com/2025/11/12/busine... · Posted by u/andrewl
barbazoo · a month ago
What is a bit, a penny?
patrickthebold · a month ago
Half a quarter.
patrickthebold commented on The last-ever penny will be minted today in Philadelphia   cnn.com/2025/11/12/busine... · Posted by u/andrewl
dyslexit · a month ago
The article also points out that some states and a lot cities require retailers to provide exact change. Congress would need to pass legislation to allow rounding nationally. I'm guessing in the meantime they'll continue holding pennies from previous years?
patrickthebold · a month ago
Is gas sold as a whole penny amounts in those locations? Where I am it's always something and 9/10ths of a cent.
patrickthebold commented on How the cochlea computes (2024)   dissonances.blog/p/the-ea... · Posted by u/izhak
edbaskerville · 2 months ago
To summarize: the ear does not do a Fourier transform, but it does do a time-localized frequency-domain transform akin to wavelets (specifically, intermediate between wavelet and Gabor transforms). It does this because the sounds processed by the ear are often localized in time.

The article also describes a theory that human speech evolved to occupy an unoccupied space in frequency vs. envelope duration space. It makes no explicit connection between that fact and the type of transform the ear does—but one would suspect that the specific characteristics of the human cochlea might be tuned to human speech while still being able to process environmental and animal sounds sufficiently well.

A more complicated hypothesis off the top of my head: the location of human speech in frequency/envelope is a tradeoff between (1) occupying an unfilled niche in sound space; (2) optimal information density taking brain processing speed into account; and (3) evolutionary constraints on physiology of sound production and hearing.

patrickthebold · 2 months ago
I think I might be missing something basic, but if you actually wanted to do a Fourier transform on the sound hitting your ear, wouldn't you need to wait your entire lifetime to compute it? It seems pretty clear that's not what is happening, since you can actually hear things as they happen.
patrickthebold commented on New Mexico is first state in US to offer universal child care   governor.state.nm.us/2025... · Posted by u/toomuchtodo
mothballed · 3 months ago
Would make sense IMO to provide an equal value waiver to those who take care of their kid rather than send them to childcare. Stay at home moms do not provide a less valuable service than childcare providers. This policy appears to disincentives children staying with their mother even when it is preferred.
patrickthebold · 3 months ago
I agree.

Ideally we could just increase the tax credits so it's large enough to cover the childcare expenses (and other necessities), and let the families decide what is best. And yes, some people are going to do a bad job taking care of their kids and spend the money on something else. But my understanding is that it generally works well to just give people money, rather than pay for specific things.

patrickthebold commented on Amazon has mostly sat out the AI talent war   businessinsider.com/amazo... · Posted by u/ripe
prmph · 4 months ago
This. It's weird how most of the top tech companies are all morphing into amorphous blobs that want to get into everything and are indistinguishable from each other.
patrickthebold · 4 months ago
One thought I had recently: Their shareholders are probably mostly the same people. So why even compete?
patrickthebold commented on Show HN: I was curious about spherical helix, ended up making this visualization   visualrambling.space/movi... · Posted by u/damarberlari
pimlottc · 4 months ago
I was wondering about the “correctness” of the z-axis movement for the spherical helix. You could pick lots of different functions, including simple linear motion (z = c * t). This would obviously affect the thickness and consistency of the “peels”.

The equation used creates a visually appealing result but I’m wondering what a good goal would be in terms of consistency in the distance between the spirals, or evenness in area divided, or something like that.

How was this particular function selected? Was it derived in some way or simply hand-selected to look pleasing?

patrickthebold · 4 months ago
Just a thought: Make the velocity of the path constant. There should be some way to take a derivative an set it to a constant and solve for z. ( or really reparameterize the curve t' = f(t)) so the velocity is constant.

Actually, now that I think about it, choosing z = c * t is kind of both influencing how the path is parameterized as well as the path carved out on the sphere.

patrickthebold commented on The Useless UseCallback   tkdodo.eu/blog/the-useles... · Posted by u/0xedb
agos · 5 months ago
you can do something like this with most global state libraries, Jotai to name one. But very soon you'll see that you need effects there, so you'll need that global state solution to be rock solid in that aspect
patrickthebold · 5 months ago
I happen to also have thought about this. Effects would listen to the global state and if needed do their side effect and update the state. As a type it's just State -> State, with an implicit side effect.

As an example: Say the user clicks a button to submit a form, clicking the button updates the local state to include something like `status: 'SUBMIT_REQUESTED'` then you make the request conditionally, and update the state to `status: 'IN_PROGRESS'`.

It might become a mess, but the point is to do no side effects based on any events, all effects happen conditionally based on the state. My hope is the forces you to actually track everything you should be tracking in your state object.

patrickthebold commented on The Useless UseCallback   tkdodo.eu/blog/the-useles... · Posted by u/0xedb
patrickthebold · 5 months ago
I've been toying with an idea of a pattern. I'm curious as to if it has a name. I'll write a blog post once I have an app using it. In the meantime, it's (roughly):

  - No Hooks.
  - Don't try to sync any state. E.g. keep a dom element as the source of truth but provide access to it globally, let's call this external state.
  - Keep all other state in one (root) immutable global object.
  - Make a tree of derived state coming from the root state and other globally available state. (These are like selectors and those computations should memoized similar to re-select)
  - Now imagine at any point in time you have another tree; the dom tree. If you try to make the state tree match to dom tree you get prop drilling. 
  - Instead, flip the dom tree upside down and the leaves get their data out of the memoized global state. 
  - Parent components never pass props to children, the rendered children are passed as props to the parent. 
You end up with a diamond with all state on the top and the root of the dom tree on the bottom.

One note, is that the tree is lazy as well as memoized, there's potentially many computations that don't actually need to be computed at all at any given time.

You need something like Rx to make an observable of the root state, some other tools to know when the external state changes. Some memoization library, and the react is left with just the dom diffing, but at that point you should swap out to a simpler alternative.

u/patrickthebold

KarmaCake day1145December 2, 2015View Original