!!Con West 2020 - Jordan Hendricks: Tex-Mex and malloc(3C): Restaurant Hosts and Memory Allocators!

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=4J-1HcpKktU



Duration: 10:50
5 views
1


Presented at !!Con West 2020: http://bangbangcon.com/west

Before my life as a systems engineer, I worked for years as a hostess at an extremely popular Oklahoman Tex-Mex restaurant, whose wait list would routinely top 20-40 parties in length and 1-2 hour wait times. The host staff had a challenging task: seat waiting parties efficiently as other customers left, while keeping hangry customers happy and efficiency-obsessed managers off of our backs. Adding to our worries, the restaurant management would never turn a party away based on size, creating puzzles for the hosts: Where does one seat large parties – for instance, a group of 10 – when the largest table in the restaurant only holds 4 people? A clue: This problem looks a lot like the problems that memory allocators like malloc(3C) solve!

In this talk, I will explore some parallels between my job as a hostess, where I decided how to seat people given a set of restaurant tables and a wait list, and implementing a memory allocator, which chooses how to give out pieces of a larger region of memory to requesting programs. We will explore questions like: What does fragmentation look like in a restaurant? What are heuristics we can use to estimate when a table will be free? Do all relevant stakeholders – customers, managers, host staff, servers – equally benefit from the same allocation strategies?

#bangbangcon #bangbangconwest #bangbangconwest2020




Other Videos By Confreaks


2022-09-27Virtual EmberConf 2020: Opening Keynote by Yehuda Katz, Jen Weber, and Godfrey Chan
2022-09-24!!Con West 2020: Closing remarks
2022-09-24!!Con West 2020: Lee Butterman - Drag Makeovers, via AI!
2022-09-24!!Con West 2020: Naomi Saphra - Get Hooked On Neural Net Inspection! That was a pun!
2022-09-24!!Con West 2020: Maria Mishurenko - It's alive, but not for long!!
2022-09-24!!Con West 2020: Tom Verbeure - Cisco Purses Cubed!
2022-09-24!!Con West 2020: Jessica Garson - How I solved my NYC parking problem with Python!
2022-09-24!!Con West 2020: Tiffany Tseng - Packages, but in 3D!
2022-09-24!!Con West 2020: Sarah Nguyen - linkRot!! Dancing the patterns of digital decay
2022-09-24!!Con West 2020: Dr. Kate Compton - Of Muppets, Metaballs, and Ballroom Dance!
2022-09-24!!Con West 2020 - Jordan Hendricks: Tex-Mex and malloc(3C): Restaurant Hosts and Memory Allocators!
2022-09-24!!Con West 2020 - Matías Lang: Delete all code! 100% testing coverage, the lazy way!
2022-09-24!!Con West 2020 - Kathleen Tuite: The hacks behind my 3D reconstructed wedding cake topper!
2022-09-24!!Con West 2020 - Erin Rose Glass: def tech_liberation(): teaching agency in a programmed world!
2022-09-24!!Con West 2020 - Opening Remarks, day 2
2022-09-22!!Con West 2020 - Jeremy Apthorp: Curses!!
2022-09-22!!Con West 2020 - Phil Warren: Beyond the Black Rainbow: Using Booleans to Photograph IR Rainbows!
2022-09-22!!Con West 2020 - don-E Merson: Sonification: You Can See Your Complex Data with Sound!!
2022-09-22!!Con West 2020 - Lito Nicolai: ba-ding!
2022-09-22!!Con West 2020 - Spencer Alves: Reverse engineering game formats for fun and profit! (or just fun)
2022-09-22!!Con West 2020 - Wesley Aptekar-Cassels: Plotty Bird: Making Modern Games on Retro Pen Plotters!