fb80c3a6c5aa0b282611459bba9b0af8a53a1797
Implement complete hot-reload logic in stk_poll() supporting reload, load, and unload operations. Module arrays dynamically grow/shrink with automatic defragmentation to maintain tight memory layout. - Grow arrays when loads exceed unloads - Fill holes left by unloads with new modules - Defragment and trim arrays when unloads exceed loads - Unload before realloc to minimize peak memory usage - Replace sprintf with safe C89 build_path() helper
stk (Stalwart Toolkit)
stk is a lightweight, modular toolkit for building games and game engines. It provides a portable foundation for dynamically loading modules, native or WASM, without enforcing any architecture or design choices.
It is designed to run on modern systems running POSIX and Windows.
Key Features
- Dynamic module loading (native
.so/.dll) - Hot-swapping of modules at runtime
- Optional WASM support for multi-language modules
- Developer tools: lightweight metadata, logging/tracing, and dependency management
- Minimal, portable API
stk is non-opinionated: developers control architecture, engine design, and game logic while relying on a predictable, lean foundation.
Languages
C
88.3%
Makefile
10.8%
Shell
0.9%