Get the latest tech news

Interactive Programming in C (2014)


ullprogram.com/blog/2014/12/23/ I’m a huge fan of interactive programming (see: JavaScript, Java, Lisp, Clojure). That is, modifying and extending a program while it’s running.

Last week in Handmade Hero(days 21-25), Casey Muratori added interactive programming to the game engine. As of this writing, Handmade Hero is being written on Windows, so Casey is using a DLL and the Win32 API, but the same technique can be applied on Linux, or any other Unix-like system, using libdl. To avoid maintaining a whole bunch of function pointer assignments in several places, the API to the “game” is enclosed in a struct.

Get the Android app

Or read this on Hacker News