4 ms·
Writing the Fastest Code, by Hand, for Fun (2005)
- rudiger 15y agoMr. Goto's name seems aptly suited to his work, writing the instructions given to microprocessor chips. http://en.wikipedia.org/wiki/Aptronym http://en.wikipedia.org/wiki/Aptronym
- evincarofautumn 15y agoIf only the pronunciations were the same.
- agosnell 15y agoYes, it seems unlikely one would consider Mr. Goto harmful.
- emehrkay 15y agoI've never used a goto statement before, but I felt that I needed a few weeks ago. I was able to refactor to a do/while loop
- danso 15y agoEr, so what this "John Henry" was capable of besting computers at, if I'm reading between the confusing lines correctly, was the most optimized subroutines? When I saw the phrase "John Henry" or the OP's headline, I immediately thought of someone writing more lines of code than...well, I guess I don't even know what kind of contest that would be.
- jameskilton 15y agoHe basically is able to see how data flows through code and can rewrite routines to ensure that as much is saved in the CPU's local caches (L1 / L2 / L3) as possible to optimize the calculations. In short, he's one of the best at writing code to minimize CPU cache misses and thus one of the best at writing blazingly fast code.
- acqq 15y agoThe software that the article mentions: http://www.tacc.utexas.edu/tacc-projects/gotoblas2 http://www.tacc.utexas.edu/tacc-projects/gotoblas2
- chubot 15y agoThe page says its portable across a few processors. I'm curious if there is much that is portable or if each one has to be optimized separately. I'm also curious how long code like this lasts. If the chip vendor changes their underlying architecture does the code have to be rewritten (for speed, ot correctness)?
- gcp 15y agoThe TLB optimizations that he started from are fairly generic. But the kernels themselves are hand-optimized assembly, so they obviously don't port. No need to rewrite for correctness, only for speed.
- brohee 15y agoFunny, at the time of the article GotoBLAS was about to be opensourced, it since not only happened but went unmaintained. http://www.tacc.utexas.edu/tacc-projects/gotoblas2 http://www.tacc.utexas.edu/tacc-projects/gotoblas2
- gcp 15y agoWhich is a bit sad because it's really the fastest freely available BLAS style library. Quite competitive with Intel MKL and much faster than ATLAS.
- fdej 15y agoThere is an actively maintained fork of GotoBLAS2, OpenBLAS: https://github.com/xianyi/OpenBLAS https://github.com/xianyi/OpenBLAS
- rms25 15y agoOld article but amazing stuff. I'm assuming everything of his is written in assembly
- chrisaycock 15y agoGotoBLAS2 was quite an achievement and featured performance metrics competitive with Intel's MKL [1]. When Prof Goto stopped working on it, the code was forked as OpenBLAS [2], which is used by the Julia programming language [3]. [1] http://eigen.tuxfamily.org/index.php?title=Benchmark http://eigen.tuxfamily.org/index.php?title=Benchmark [2] https://github.com/xianyi/OpenBLAS https://github.com/xianyi/OpenBLAS [3] http://julialang.org/ http://julialang.org/
- mmphosis 15y agoHe said his next big challenge was to expose chip designers to his ideas to help speed their processors. "Computer architects are stubborn," he observed. "They have their own ideas." His ideas on computing efficiency, he said, speak for themselves.