Ho ho ho! It’s the day after Christmas, and hopefully everyone has some snazzy new toys to play with. But just in case Santa left you a lump of coal (“… little Billy used mutable state this year …”), don’t pout, don’t cry, I’ve got you covered. My gift for all the naughty F# developers out there: a mini-framework for imperative-style looping in F#, adding the functionality of “break,” “continue,” and “return,” along with the ability to nest loops down to programmatic depth.
How computationally expensive are various fundamental floating point mathematical operations? Here’s a quick and dirty benchmark, which, although surely quite naive, seems to capture the rough relative cost of a few operations.
I poked around the code and tested it a bit myself, and figured I would take up the author’s call for feedback. Comments on the original blog are locked down, so I’ve written up my results here, instead.