|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] SVN 839 doesn't compile |
Date: | Thu, 12 Jan 2017 14:02:21 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi, in principle you can load shared libraries already via the native function interface (which is a wrapper around dlopen() and friends). A somewhat cleaner way would be to have some new ⎕SQL function numbers for loading shared libraries. A ⎕SQL function number for listing the existing SQL providers would also be useful. A possible disadvantage is that your workspaces become less portable. We already had problems with )SAVEd workspaces (but not with )DUMPed workspaces) that contained native functions. One of the reasons why I made ⎕SQL a system function was that I wanted to reduce the number of native functions in order to reduce the number of possible problems related to )SAVEd workspaces. There are also other problems (like versioning, providing the shared libraries for different platforms, Microsoft Windows, etc.) related to dynamically loaded code. In summary, I would say that dynamically loading SQL providers is feasible (and I would not generally object to including it into GNU APL if somebody implements it), but the advantage for the user is relatively small (it saves a one-time recompile of GNU APL after a new SQL provider was added to a machine) and will almost certainly create quite a few problems. /// Jürgen On 01/12/2017 01:11 PM, Elias Mårtenson
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |