O.k. item FOUR ... check everything and bail on bad. What do I mean by this? I mean every time you call a function, a library routine, or whatever ... check for errors! don't mask exceptions. Anticipate "that shouldn't happen" errors.
-
-
Message me a gist, or a link, or send me an e-mail, whatever works ... and we can talk readability and testing about it too!
Show this thread -
For further reference: here's my rejection sampling RNG implementation with more comments than code. https://github.com/awslabs/s2n/blob/master/utils/s2n_random.c#L182 … End of thread!
Show this thread
End of conversation
New conversation -
-
-
Damn you! You just sent me down a deep rabbit hole in rust. Casting from u128 to u64 doesn't work as I expected it to. Hours of my life I'll never have back - probably useful knowledge in the long run though
-
damn you some more: https://github.com/sapessi/nearly_divisionless_rand … - this does not count as an official submission. Just had a lot of fun and learn lots on rust behaviour and performance through the exercise
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.