Hot Code Reloading in C

Channel:Tsoding Daily · Length:2:16:18 · Published:2023-07-25 · Views:94733

Watch on YouTube

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