279 points · by fortran77 · 6y ago · 46 comments
For anyone interested it sums all integers from 1 to 1000. Written as a benchmark for different languages.
Maybe the terminator was running a benchmark in those scenes :P
Not as far fetched. RDRAM does something similar when it comes online: it has to "train" the physical link every time the system is booted by generating bogus traffic and timing it (and can also retrain on certain errors). Complicated stuff, RDRAM. Also, anything with a differential pair may employ training like this.
As I type this, I am -literally- in the process of writing a self-timing loop using a binary increase of iterations to find average execution time plateau.
https://www.youtube.com/watch?v=-fN82upbGPo
https://www.indiewire.com/2018/11/youtube-full-movies-free-a...
According to `git blame` Alexey Dobriyan wrote most of that file so congrats Alexey on your unexpected career as a TV prop guy!
man s might also mean women etc whatever all the new forms of people and identities goes on. We salute everyone.
Thanks for sharing. Cool to hear from someone who was actually working on that.
Think what it could do with some real code behind it!
Or indeed, per the magazine benchmark test results, BASIC. (-:
https://www.youtube.com/watch?v=YRnnjoiSV-U
Here's the code: https://gist.github.com/jgrahamc/9a90399f39926857b19e8635b30...
https://archive.org/details/73-magazine-1984-05/page/n97/mod...
The online version is pretty much unreadable for me on Firefox/mobile, but the Pdf is ok:
https://archive.org/download/73-magazine-1984-05/05_May_1984...
Ed: corrected link. The article itself would be a great hn submission - a comparison of time (writing+execution) of a simple program in basic, Pascal and cobol..
Turns out COBOL was a failsafe against the robot apocalypse