Readit News logoReadit News
bluepnume commented on Is 1 Prime, and Does It Matter?   mathenchant.wordpress.com... · Posted by u/jamespropp
jordigh · a year ago
To be fair, 2 is also a very odd prime because it's even.

So many theorems have to say, "for every odd prime..."

https://math.stackexchange.com/questions/1177104/what-is-an-...

bluepnume · a year ago
It's hardly odd.

"Even" just means "divisible by 2"

"2 is the only prime that is divisible by 2" "3 is the only prime that is divisible by 3" "5 is the only prime that is divisible by 5"

...

"N is the only prime that is divisible by N"

bluepnume commented on JesseSort: A novel sorting algorithm that is faster than Python's default sort.   github.com/lewj85/jesseso... · Posted by u/amichail
behnamoh · a year ago
I have mixed feelings about the naming. Isn't it kinda off-putting that he named it after himself? usually it's other people who name your algorithm after you. At least that's how it's like in science and engineering (Fourier didn't call it "Fourier transform", Laplace didn't call it "Laplace transform", Kalman didn't name it "Kalman filters", etc.)
bluepnume · a year ago
He should have at least called it eejss-sort
bluepnume commented on Litdb – type safe SQL for JavaScript/TS   litdb.dev/... · Posted by u/crummy
plopz · a year ago
My feelings are similar and I cringe every time I see a "typesafe" db interface that doesn't run time validate the data.
bluepnume · a year ago
Runtime validate at the database boundary? Isn't it better to just do runtime validation at the api boundary instead? Then any of the types that make it into the database should be mostly guaranteed by TS (and of course, whatever types are enforced by the database schema itself).
bluepnume commented on Zod: TypeScript-first schema validation with static type inference   zod.dev/... · Posted by u/tosh
brap · a year ago
I always found it pretty awkward that you even need libraries like this. A limitation of TS I suppose.
bluepnume · a year ago
You find it weird that a type system doesn't do runtime validation? Is that common in many other languages?

u/bluepnume

KarmaCake day791February 4, 2012
About
daniel@onetext.com
View Original