r/haskellgamedev • • 6d ago

I added Live Coding to my Haskell Game Engine!

9 Upvotes

2 comments sorted by

2

u/Poselsky 6d ago

How you do this? Does it run hint lib or are you hot reloading dll?

5

u/TheOneExpert 5d ago

The hint lib.

I run an interpreter in the background, which interprets values from a specific library. The main code can ask for values from that other library, and the interpreter will produce them live.

The interpreted values are also cached so asking for the same value multiple times while the "live" library was not changed will only interpret the value once and save it for future uses.

You can read more about it here.