O.k. item THREE ... learn functional programming. So you are simultaneously very unlikely to use functional programming "for reals" in a paying job, and yet knowing it can expand and change your whole approach.pic.twitter.com/Yptxsx2iTP
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Which brings me to the $1000 programming contest! 3 prizes: $500, $300, $200 for the most readable, easy to follow, tested, Apache Software License 2.0'd, implementation of @lemire's nearly division-less RNG.https://lemire.me/blog/2019/06/06/nearly-divisionless-random-integer-generation-on-various-systems/ …
I hope he doesn't mind because I didn't ask! I've chosen @lemire's algorithm because it is awesome and ground breaking, very short, and intrinsically hard to follow if you're not into the math.
His blog post contains a 14 line implementation in C, and there's also a paper getting into it: https://arxiv.org/abs/1805.10941 , so there's great material to start from. But how can we make it more readable and easy to follow for a beginner or non-math-expert? how can we test it?
Have at it and give it a go! Any programming language you like. Apache Software License so that it can be included in other things. Closing date: September 1st 2019.
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!
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!
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.