I've wrote a simple hot reload dynamic library demo (video attached)
the problem with reloading the whole library is that all data written in that library gets reset each reload (the data is not retained).
of course, we can initialize that data in static main program, and then share that data via header file, but then we loose the ability to add more data in runtime.
my best guess is that we need 2 dynamic libraries and - 1st is for reloading main loop code, 2nd is for reloading initialization code,
and share initialized data between those libraries using some sort of dynamic data structure which can hold,add,remove any type of value or function.
but i wasn't able to find any examples of this type of system online ):
thoughts?
