HNHacker News
TopNewBestAskShowJobs

pnx

-1 karma · joined August 18, 2019

submissionscomments
pnx··on On Mathematical Beauty in Physics
I find it odd that people think that equation is beautiful. Rewriting it in polish notation/lisp you end up with:

    (= (+ (exp (* i pi)) 1) 0)
Which is neither beautiful nor very enlightening.
pnx··on U.S. Weighs Selling 50- and 100-Year Bonds After Yields Plummet
>I'm saying that things that don't fly at small scale, don't become good ideas at large scale.

They absolutely do.

Fourier transform multiplication methods are a terrible idea if you run them on numbers that aren't hundreds of digits long, but the only way to multiply truly large numbers.

pnx··on Parsing JSON Is a Minefield (2018)
Probably tens of thousands.

And it will still be a faster operation than fetching the next json file from disk by an order of magnitude, or two.

pnx··on U.S. Weighs Selling 50- and 100-Year Bonds After Yields Plummet
Bubble sort works amazingly well on the small scale.

It shits itself on the large scale.

Just like how trying to run an economy like you do a household results in the great depression.

pnx··on Parsing JSON Is a Minefield (2018)
>Consider something as simple as parsing an integer in a text-based format; there may be whitespace to skip, an optional sign character, and then a loop to accumulate digits and convert them (itself a subtraction, multiply, and add), and there's still the questions of all the invalid cases and what they should do.

    ^[ *][-?][0-9][0-9]*[ *]$
You're welcome. Anything that passes that regex is a valid number. Now using that as a basis of a lexer means that you can store any int in whatever precision you feel like.

It's unfortunate that the majority of programmers these days are so computer illiterate that they can't write a parser for matching parens and call you an elitist for pointing out this is something anyone with a year of programming should be able to do in their sleep.

pnx··on U.S. Weighs Selling 50- and 100-Year Bonds After Yields Plummet
And of course bubble sort is the perfect solution for distributed sorting.
pnx··on U.S. Weighs Selling 50- and 100-Year Bonds After Yields Plummet
See that's the problem, a sorting algorithm just moves values around, whether it's 100 values or 10 Billion.

At the end of the day if bubble sort is good enough for a micro controller it's good enough for a data center.