Programming Throwdown
Patrick Wheeler and Jason Gauci
184: Asynchronous Programming
Intro topic: AI Scams
News/Links:
- Coding Adventure: Ray-Tracing Glass and Caustics (Sebastian Lague)
- Boson AI announces Higgs Audio V2
- The Misconception that Almost Stopped AI [How Models Learn Part 1] (Welch Labs)
- A mind-bending conversation with Peter Thiel
Book of the Show
- Patrick
- The Hobbit (JRR Tolkien)
- Jason
- NYT Word Games
- NYT Word Games
Patreon Plug https://www.patreon.com/programmingthrowdown?ty=h
Tool of the Show
- Patrick
- Escape Academy
- Jason
- Multi-modal LLMs to make calendar meetings
Topic: Asynchronous Computing
- What/Why
- Multi-threading in between the lines
- Many of the benefits of multiprocessing without the overhead/complexity
- How
- Coroutines
- Thread-Local Memory
- Blocking vs Non-Blocking operations
- Blocking: arithmetic
- Non-Blocking: Reading from the network card into thread-local memory
- Interpreter locking
- Typescript: Single threaded
- Python: GIL
- Implementations
- Polling (not-Asynchronous)
- Callbacks (interrupts)
- Multithreading (with queues/message passing)
- Promise/Futures
- Async/Await