‹ BackHN Continuity

Thread

Reversing Factorio's RNG

255 points · 48 comments · jheitmann

  1. cmovq · · focus · HN ↗
    One of the reasons I dislike boost is in the first code sample. What’s the point of implementing what boils down to a 10 line function (as shown in the decompiled output) like this

        typedef xor_combine_engine<
      xor_combine_engine<
        linear_feedback_shift_engine<uint32_t, 32, 31, 13, 12>, 0,
        linear_feedback_shift_engine<uint32_t, 32, 29, 2, 4>, 0>, 0,
      linear_feedback_shift_engine<uint32_t, 32, 28, 3, 17>, 0> taus88;
    1. deterministic · · focus · HN ↗
      I completely agree. Every time I remove boost from projects the build times drop dramatically and it usually doesn't take much work to swap the boost code for something else that isn't template fetish art.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.