RubyConf 2024 Flattening Recursion with Fibers by Jamis Buck & Adviti Mishra

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



Duration: 0:00
7 views
0


We used Ruby's fibers at MongoDB to unwind a recursive algorithm and execute it horizontally, without the stack overhead of recursion.

"Hang on," you might be thinking. "I thought fibers were a concurrency primitive?"

You're not wrong!

In this presentation, we'll summarize the problem we encountered while working with recursive callbacks, and give an overview of fibers in Ruby. Then, we'll put the two together and show you exactly how we ended up using fibers to solve an issue that was completely unrelated to concurrency.




Other Videos By Confreaks


2025-01-15RubyConf 2024 Lightning Talks
2025-01-15RubyConf 2024 Chaos Engineering on the Death Star by Sara Jackson
2025-01-15RubyConf 2024 Building JRuby: How We Implement Ruby on the JVM by Charles Nutter & Thomas Enebo
2025-01-15RubyConf 2024 Detecting and classifying object images using ruby by Fabio Leandro Janiszevski
2025-01-15GS D3 01 Brandon Weaver 1
2025-01-15RubyConf 2024 Going Postel by Scott Werner
2025-01-15RubyConf 2024 Names from a hat by Murray Steele
2025-01-15RubyConf 2024 Keynote: Yukihiro "Matz" Matsumoto
2025-01-15RubyConf 2024 Keynote by Nadia Odunayo
2025-01-15RubyConf 2024 Who Wants to be a Ruby Engineer? by Drew Bragg
2025-01-14RubyConf 2024 Flattening Recursion with Fibers by Jamis Buck & Adviti Mishra
2024-11-10Modern Development Workflows in LabVIEW by Greg Richardson. GDevCon N.A. 2024
2024-11-10Modularity As It Applies to Everything by Brian Powell. GDevCon N.A. 2024
2024-11-10GDevCon N.A. - 4x7 G AI Assistant for LabVIEW (Project Code Name) by Jim Kring
2024-11-10Using LabVIEW To Do Totally Legal Things Online by Eric Stach. GDevCon N.A. 2024
2024-11-10Your LabVIEW Code Is a Work of Art... But I Can't Read It by Darren Nattinger. GDevCon N.A. 2024
2024-11-10Nx24x7: Challenges and Considerations When Designing a Life... by Katya Prince. GDevCon N.A. 2024
2024-11-10Using LabVIEW and LoRa for Long-Distance Status and Control by Matthew Harrison. GDevCon N.A. 2024
2024-11-10GDevCon N.A. 2024 - 1x7 Summer of LabVIEW 2024 by Derrick Bommarito
2024-11-10Innovate, Validate, Elevate: LabVIEW Quality Paradigm by Kevin Shirey. GDevCon N.A. 2024
2024-11-10Decoupling in Practice - How Good Software Engineering Can Save... by Allen Smith.GDevCon N.A. 2024