Better HN
topnewbestaskshowjobs
Log inSign up

hakmem

175 karma · joined Sep 30, 2017 (9y ago) · 19 submissions

Submissions

comment 2y ago · link · parent

You can see both triples are contained in one binary tree using the big diagram in section 3. The triple [3 4 5] has the "path" RR. The triple [4 3 5] the path R.

comment 2y ago · link · parent

Yes, this is normal. I am sorry, I am working on a more efficient implementation.

The JavaScript of this page does a lot of number crunching.

It is actually doing arithmetic on the Stern-Brocot tree. It is all written in ClojureScript and not really optimized yet. I mention in the paper that I do not even use TCO.

Anyway, thank you - and all the people here - for the kind words! I am so happy that my article was so well received today.

3.

A binary tree of all Pythagorean triples(richardt.io ↗)

181 points · by hakmem · 2y ago · 19 comments

4.

Emacs won.(suno.com ↗)

2 points · by hakmem · 2y ago · discuss

comment 3y ago · link · parent

Until July 17 we only knew the first five numbers of the sequence https://oeis.org/A006052. Now we know 6.

"Using hundreds of GPUs at cloud resource rental services, it took about six months to complete the counting"

Great work by Prof emeritus Hidetoshi Mino. He's inviting interested people to check for errors.

6.

The number of magic squares of order 6(magicsquare6.net ↗)

3 points · by hakmem · 3y ago · 1 comment

comment 3y ago · link · parent

Thank you for both vouching and the hinting on my flagging.

comment 3y ago · link · parent

+ - * ÷ two numbers in 3.14 decimal notation, 1RLLRRLLRRLLRR stern–brocot notation, or [1;1,2,1] something close to continued fraction notation

Milad Niqui: Exact arithmetic on the Stern-Brocot tree. https://core.ac.uk/download/pdf/82481132.pdf

HAKMEM p. 40 - ITEM 101B (Gosper): Continued Fraction Arithmetics https://w3.pppl.gov/~hammett/work/2009/AIM-239-ocr.pdf

9.

Gosper–Niqui Calculator(snafu.cc ↗)

9 points · by hakmem · 3y ago · 4 comments

comment 6y ago · link · parent

A couple of days ago, there also has been a disussion on reddit on this topic.

https://www.reddit.com/r/Physics/comments/gf1kbd/if_you_over...

comment 6y ago · link · parent

The authors have a look at the spectral line database of the NIST and make the surprising finding, that all atomic spectral lines together approximate very well a black body spectrum at a temperature of 9000K.

The authors not yet have an explanation for this conundrum, but also note, that this temperature plays a role in the formation theory of the universe.

12.

If you overlay all atomic spectra, you get a Planck distribution(onlinelibrary.wiley.com ↗)

129 points · by hakmem · 6y ago · 55 comments

comment 9y ago · link · parent

Yeah, this is Hacker News.

comment 9y ago · link · parent

Great, I will definitely have a look at it. Did you implement exp(x) for any continued fraction x?

comment 9y ago · link · parent

Guessed it but you wrote "continuous" instead of "continued" :) I was excited about something new ;)

And yes, this text is gold. Bill Gosper is the Hunter S. Thompson of science.

comment 9y ago · link · parent

Could you point me to a reference?

comment 9y ago · link · parent

There are a lot of pearls in this - I would call it lab book.

A while ago, I made a slow Clojure implementation of a generalized version of Bill Gospers continued fraction arithmetics from the HAKMEM

http://github.com/timrichardt/stern-brocot-tree