YoVDO

Writing a Crate for Kahan Summation in Rust - Meetup Talk

Offered By: Rust via YouTube

Tags

Rust Courses Generic Programming Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

The Rust Programming Language
Udemy
Rust for Beginners: Learn Rust in 4 Hours
Udemy
Rust For Undergrads
Udemy
Take your first steps with Rust
Microsoft via Microsoft Learn
Rust Fundamentals
Pluralsight