Floating point numbers are like scientific notation
3
The precision depends on the type of float
4
Kahan summation example
5
Starting Simple
6
Feature Checklist
7
Missing Features
8
Customizing operators
9
Low-hanging fruit
10
Implementing Methods for a Trait
11
Replacing std::iter::Sum
12
Generic over floats
13
Abstracting over Borrowing
14
Finishing Touches
Description:
Explore the implementation of a generic Kahan summer in Rust and its extension to all iterators over floats in this talk from the first Rust KW Meetup. Dive into the intricacies of floating-point numbers, precision, and the Kahan summation technique. Follow the speaker's journey from a simple implementation to a feature-rich crate, covering topics such as customizing operators, implementing methods for traits, and abstracting over borrowing. Learn how to replace the standard iterator sum with a more precise Kahan sum method, applicable to various float types. Gain insights into the challenges and solutions encountered during the development process, and discover how to create a robust and efficient crate for numerical computations in Rust.
Writing a Crate for Kahan Summation in Rust - Meetup Talk