Hot Code Reloading in C
Channel:Tsoding Daily · Length:2:16:18 · Published:2023-07-25 · Views:94733
Summary
A long Tsoding Daily programming stream in which he implements hot code reloading in C by loading a dynamic library at runtime without stopping the main program. It also touches on migrating struct versions across reloads.
Why HN recommends it
HN commenters cite it as a hands-on example of hot reloading and live coding in C.
he hot reloads a dynamic library without interrupting the main program, to test different functionality. — HN, 2025
C, C++, Rust, Go & systems languages · Software practice, open source & careers · Operating systems & kernels
Subtitles (excerpt)
looks like we're live hello everyone and welcome to yet another Recreation programming session how about it uh so let's make a little bit of an announcement and officially start the stream as usual as usual hello hello welcome welcome welcome uh so what we're going to do we're going to do red circle live on Twitch and what are we doing today on Twitch at at television website today we're doing uh hot reloading in C how about that I think that's a very interesting topic at which. tv/ this is the place where we doing all that and I'm going to Pink everyone who's interested in being pinked and there we go the stream has officially started the stream has officially started hello hello welcome welcome welcome so in fact in fact today we're going to continue developing um the music visualizer that we started on the on the previous stream right so if you saw the previous stream you probably remember a thing like this so so essentially this is like um you know the basic equalizer music visualizer at least an attempt at implementing that it looks horrendous I know right and this is because we're not mapping the frequencies properly we're going to fix that uh probably today by the way we're going to
On Hacker News
For anyone interested in this: Tsoding (Twitch and YouTube streamer of "recreational programming") demonstrates this in one of his projects, where he hot reloads a dynamic library without interrupting the main program, to test different functionality. [VIDEO] — fainpul, 2025-06
Tsoding made a video about hot code reloading in C ( [VIDEO] ) and also used the same concept in "My Own 3b1b Animation Engine but in C" ( [LINK] ). — lkuty, 2025-07
There is a tsoding daily video with hot code reloading in C [0]. He dicusses techniques for this. one of which is a "migration" approach, similar to database migrations. Where, for example, you have a version number in your struct. and a function for migrating from an old version to a new version. I don't think he implements it in that video though. [0] [VIDEO] — el_oni, 2024-01
Related videos
- The Tragedy of systemd · linux.conf.au · 47:18
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- 🚀 TDD, Where Did It All Go Wrong (Ian Cooper) · DevTernity Conference · 1:03:55
- Bret Victor The Future of Programming · Joey Reid · 32:55
- "Uncle" Bob Martin - "The Future of Programming" · Paul Stringer's Mobile Tech · 1:18:21
- The Thirty Million Line Problem · Molly Rocket · 1:48:55
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- VCF East: Ken Thompson interviewed by Brian Kernighan · Vintage Computer Federation · 1:03:51
- RustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine West · Rust Programming Language · 42:29
- LISA11 - Fork Yeah! The Rise and Development of illumos · USENIX · 1:04:03
- Tim Ewald - Clojure: Programming with Hand Tools · ClojureTV · 58:39
- CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17” · CppCon · 1:19:52
- USENIX ATC '21/OSDI '21 Joint Keynote Address-It's Time for Operating Systems to Rediscover Hardware · USENIX · 1:06:19
- Using Python to Code by Voice · Next Day Video · 28:17
- Transforming Code into Beautiful, Idiomatic Python · Next Day Video · 48:51