HackerX
HomeRank #168
@ID_AA_Carmack

Programming

@ID_AA_Carmack

View on X
Shared by 1 HN usertechnical
View on X

Why Hacker News recommends it

5 comments from 1 distinct recommending reader, between 2020 and 2020.

  1. @justin66Recommends2020
    John Carmack, who did some small amount of work on the code, had a short rebuttal of the "Lockdown Skeptics" attack on the Imperial College code that probably mirrors the feelings of some of us here: mobile.twitter.com/id_aa_carmack/status…...
    Challenge to scientists: does your ten-year-old code still run?Read the thread
  2. @spamizbadCites it2020
    John Carmack's response: twitter.com/ID_AA_Carmack/status/125819…
    Code review of the Imperial College London Covid-19 modellingRead the thread
  3. @Gibbon1Cites it2020
    John Carmack who cleaned up the codes take. > it turned out that it fared a lot better going through the gauntlet of code analysis tools I hit it with than a lot of more modern code. There is something to be said for straightforward C code. Bugs were found and fixed, but generally in paths that weren't enabled or hit. twitter.com/ID_AA_Carmack/status/125487… Also his opinion on the deniers efforts. > It is disappointing, but not really unexpected, to see this take on the epidemic simulation code release: lockdownsceptics.org/code-review-of-fer… If we accept it at face value, we have a retired software engineer making the case that non-determinism in a simulation shows incompetence. twitter.com/ID_AA_Carmack/status/125819…
    Coding that led to lockdown was 'unreliable' and a 'buggy mess'Read the thread
  4. @eesmithCites it2020
    I don't see anything in that issue which indicates a failure of being deterministic from seed for single-threaded code. Based on the GitHub thread you linked to earlier, there are two issues: 1) multithreading causes problems. Quoting Carmack at twitter.com/ID_AA_Carmack/status/125819… , "issues with random seeds and parallel floating point reductions are extremely widespread, and a great deal of science gets done with non-deterministic simulations." Think of it this way. IEEE 754 arithmetic is not commutative. Not even addition. (A+B)+C might not be equal to A+(B+C). Now what happens if you split A+B+C+D+E+F+G+H+I across three threads. The first compute A+B+C, the second D+E+F, the third G+H+I. The threads finish in the order 1, 3, 2, causing the reduce step to be (A+B+C)+(G+H+I)+(D+E+F). That can very well be different from the single-threaded, left-right addition of those numbers. Hence the reply "We are aware of some small non-determinisms when using multiple threads to set up the network of people and places. (Look for the omp critical pragmas in the code). This has historically been considered acceptable because of the general stochastic nature of the model. We do expect the code to be deterministic when using a single-thread." "omp" here is "OpenMP", a low-level set of compiler directives for multi-threaded programming. 2) The followup reports an reproducibility issue with single-threaded code, which wouldn't be subject to the above problem. Thing is, the reproducible uses the same RNG seed, first when generating a save file, and the second time when loading a save file; both continue from that point. The reporter showed a small difference in the output between the two. This means the RNG in the first case may have been used many times during the creation of the initial data, which didn't happen in the second time. The two generators have different internal states at this point, so should not be expected to produce identical results. Which is why the reply "if the RNG is used in the generation of the network, but not when a cached network is loaded, this might explain the discrepancy. The random sequence in the former case would be advanced relative to the latter."
    Neil Ferguson's Imperial model could be the most devastating software mistakeRead the thread
  5. @LucCites it2020
    John Carmack has reviewed the code and didn't seem to find it all that bad, so there's that. twitter.com/ID_AA_Carmack/status/125819… twitter.com/ID_AA_Carmack/status/124430…
    To software engineers criticizing Neil Ferguson’s epidemics simulation codeRead the thread

More

RSS feed

Keyboard shortcuts