Updating D-based apps without recompiling it

Jesse Phillips via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 23 10:15:35 PDT 2016


On Wednesday, 23 March 2016 at 12:21:33 UTC, Ozan wrote:
> Hi
>
>
> Enterprise applications in productive environments requires 
> smooth updating mechanisms without recompiling or reinstalling. 
> It's not possible to stop an enterprise application, then run 
> "dub --reforce" and wait until finish. Mostly only few 
> functions need to be replaced.
>
> Has someone experience with handling upgrading/updating D-Apps 
> on the fly?
>
> Working with dynamic libraries or distributed components is not 
> secure enough,
> but maybe there are solutions, maybe around base calls and 
> functions or completely different.
>
>
> Regards, Ozan

Do you have an example of this being done in any other language? 
Essentially whatever code is being replaced, you're going to need 
to recompile it. If you're not using dynamic/shared libraries 
Adam is pointing you in the right direction.

If it is a desktop application then it is probably easiest if it 
communicates to a local service that provides the "replaceable" 
functions, when you stand up the new service the app can transfer 
the communication to it.

I can't speak to your security concerns.


More information about the Digitalmars-d-learn mailing list