I think there's some misunderstanding here. The short answer to "is this 
possible?" is no, this is not possible. Since nim is a compiled language, all 
imported modules have to be compiled and embedded in the resulting binary. It 
is possible in dynamic languages that offer eval of some sort, but not in 
statically compiled languages.

Now in theory it is possible to make a lib that would allow eval and dynamic 
imports in some form, it would embed nim compiler in it, and maybe utilize hot 
code reloading, but i assure you, that's not something you want to consider at 
this point.

Reply via email to