Writing a Crate for Kahan Summation in Rust - Meetup Talk
Offered By: Rust via YouTube
Course Description
Overview
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.
Syllabus
Intro
Floating point numbers are like scientific notation
The precision depends on the type of float
Kahan summation example
Starting Simple
Feature Checklist
Missing Features
Customizing operators
Low-hanging fruit
Implementing Methods for a Trait
Replacing std::iter::Sum
Generic over floats
Abstracting over Borrowing
Finishing Touches
Taught by
Rust
Related Courses
Advanced Java ProgrammingUdemy Scala Type Classes and Parameterization
Pluralsight Random Variables as Types - Lecture 11
The Julia Programming Language via YouTube Hands-on With Dynamic Dispatch Traits in Rust - Rust Tutorial for Developers
Trevor Sullivan via YouTube IEnumerable and IEnumerator Interfaces in C#
tutorialsEU via YouTube