Hot Code Reloading in C

Tsoding Daily1 HN recommenders · 2024–2025
94K views · tutorial · evergreen · Uploaded 2023-07-25

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.

HN commenters cite it as a hands-on example of hot reloading and live coding in C.

Watch on YouTube

3 comments from Hacker News

@el_oni2024 · in “C and C++ Hot-Reload/Live Coding”

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]

@fainpul2025 · in “Malleable software: Restoring user agency in a world of locked-down apps”

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]

RecommendsView on HN
@lkuty2025 · in “Interactive Programming in C (2014)”

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] ).