Talk: Numeric Programming with Spire


Numeric programming is a notoriously difficult topic. For number crunching, e.g. solving systems of linear equations, we need raw performance. However, using floating-point numbers may lead to inaccurate results. On top of that, as functional programmers, we’d really like to abstract over concrete number types, which is where abstract algebra comes into play. This interplay between abstract and concrete, and the fact that everything needs to run on finite hardware, is what makes good library support necessary for writing fast & correct programs. Spire is such a library in the Typelevel Scala ecosystem. This talk is an introduction to Spire, showcasing the ‘number tower’, real-ish numbers and how to obey the law.




  • J On The Beach, Marbella, Spain, May 16th, 2019 Recording Slides Link
  • Scala Hamburg, Hamburg, Germany, May 2nd, 2019 Slides Link
  • Kraków Scala User Group, Kraków, Poland, February 21st, 2019 Slides Link
  • Scala Romandie, Lausanne, Switzerland, December 18th, 2018 Slides Link
  • Scala Italy, Florence, Italy, September 14th, 2018 Recording Slides Link
  • Munich Scala User Group, Munich, Germany, June 13th, 2018 Slides Link
  • LX Scala, Lisbon, Portugal, June 8th, 2018 Slides Link
  • Scala Portugal, Lisbon, Portugal, June 25th, 2016 Slides Link

Interview at J On The Beach


Demo code

View on GitHub Gist