RubyConf 2022: 1.5 is the Midpoint Between 0 and Infinity by Peter Zhu

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=RQsH54GK85M



Duration: 24:19
251 views
8


What’s the midpoint between 0 and infinity? Well, the answer differs depending on whether you are asking a mathematician, philosopher, or a Ruby developer. I’m not a mathematician or a philosopher, but I am a Ruby developer, so I can tell you that 1.5 is the midpoint between 0 and infinity. In this talk, we'll discuss the binary search algorithm, IEEE 754 floating-point numbers, and a clever trick Ruby uses to perform binary search on floating-point ranges.




Other Videos By Confreaks


2023-03-07RubyConf 2022: Ruby Lambdas by Keith Bennett
2023-03-07RubyConf 2022: Everything a Microservice: The Worst Possible Intro to dRuby by Kevin Kuchta
2023-03-07RubyConf 2022: Never again without a contract: dry-validation by Espartaco Palma
2023-03-07RubyConf 2022: Don't @ me! Faster Instance Variables with Object Shapes by Aaron Patterson
2023-03-07RubyConf 2022: scip-ruby - A Ruby indexer built with Sorbet by Varun Gandhi
2023-03-07RubyConf 2022: Keynote by Suzan Bond
2023-03-07RubyConf 2022: I'm in love with Mermaid by Carolyn Cole
2023-03-07RubyConf 2022: Data indexing with RGB (Ruby, Graphs and Bitmaps) by Benjamin Lewis
2023-03-07RubyConf 2022: How music works, using Ruby Thijs Cadier
2023-03-07RubyConf 2022: Staff Engineer: “Here be dragons” by Alexandre Terrasa
2023-03-07RubyConf 2022: 1.5 is the Midpoint Between 0 and Infinity by Peter Zhu
2023-03-07RubyConf 2022: Simulated Annealing: The Most Metal Algorithm Ever 🤘 by Chris Bloom
2023-03-07ubyConf 2022: The Magnitude 9.1 Meltdown at Fukushima by Nickolas Means
2023-03-07RubyConf 2022: Keynote: The Case Of The Vanished Variable - A Ruby Mystery Story by Nadia Odunayo
2023-03-07RubyConf 2022: Eclectics Unite: Leverage Your Diverse Background by Sijia Wu
2023-03-07RubyConf 2022: Boot the backlog: Optimizing your workflow for dev happiness by Stacey McKnight
2023-03-07RubyConf 2022: Change the Climate Before Changing the Weather by Ben Greenberg
2023-03-07RubyConf 2022: Performance does (not) Matter by Yukihiro Matsumoto (Matz)
2023-03-07RubyConf 2022: Crocheting & Coding: they're more similar than you think! by Tori Machen
2023-03-07RubyConf 2022: Discover Machine Learning in Ruby by Justin Bowen
2023-03-07RubyConf 2022: Business in the Front, Party in the Back (Office) by Kevin Whinnery



Tags:
Ruby
RubyConf
Ruby Language
Ruby on Rails
Ruby Friends
Ruby Gems