hot reloading code gist

Hipreme msnmancini at hotmail.com
Fri May 30 18:18:31 UTC 2025


On Friday, 30 May 2025 at 18:04:14 UTC, monkyyy wrote:
> On Friday, 30 May 2025 at 17:52:19 UTC, Hipreme wrote:
>> On Friday, 16 May 2025 at 08:37:34 UTC, Ogion wrote:
>>> On Friday, 16 May 2025 at 03:18:38 UTC, H. S. Teoh wrote:
>>>>
>>>> dlopen is a POSIX call.  It sux because it's an OS C API, 
>>>> and there's nothing we can do about it.
>>>>
>>>
>>> We do have `core.runtime.Runtime.loadLibrary` that uses 
>>> `dlopen`/`LoadLibrary` depending on platform. But for some 
>>> reason there’s no wrapper for `dlsym`/`GetProcAddress`.
>>
>> We have the libraray "bindbc-loader", which solves this 
>> exactly problem
>
> Hotloading local d code vs dymanic loading some big c lib 
> probably are different problems.

They are exactly the same thing. The only other use-case I know, 
is that it is possible to hotload class code, which I don't use 
and never saw any project using. I've been hot reloading my code 
for more than 3 years now.


More information about the Digitalmars-d mailing list