You cannot dynamically load a library with Emacs Lisp code. To get around this, people usually turn to an external program (process) and control it by sending commands to it and reading its output.
For an example you can look at slime, a tramp, gnuserv, movemail and some other similar hacks.
kmkaplan
source share