hackertube.io

Handmade Hero Day 021 - Loading Game Code Dynamically

Molly Rocket · tutorial · Watch on YouTube

What it is

Day 21 of Casey Muratori's Handmade Hero, which covers loading game code dynamically from a DLL on Windows. He builds hot reloading of C game code from scratch in about an hour and a half.

Why Hacker News recommends it

Recommended as a clear, from-scratch demonstration of how simple code hot-reloading is with plain OS facilities.

  • 2 people recommended it
  • 2 different months
  • 0 strong recommendations
  • first 2021, last 2024

What HN commenters said

  1. “For those who want to learn how to do this in Win32, here's the episode I mentioned above”

    Shows how to dynamically load game code from a Win32 platform layer

    coley, 2022-10 · Recommendation · in “Anatomy of Linux Dynamic Libraries”

  2. “Casey Muratori writes a hot-reloading functionality for C from scratch in about an hour”

    Builds C hot-reloading from scratch in about an hour with detailed explanations

    kleiba, 2024-01 · Recommendation · in “C and C++ Hot-Reload/Live Coding”

Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.

Topics: handmade hero, dll, hot reload, win32, c programming

Also recommended by the same people