|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Bug: GNU APL does not call start_input after a )LOAD |
Date: | Sat, 10 May 2014 16:14:54 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Elias,
I am not sure if the observed behavior is actually wrong. If you load two libraries with different paths then you get two different libraries and each is initialized. Right now NativeFunction checks if a shared library with the same path (i.e. directories and filename) exists and does not load it twice if so. Your expectation seems to be that a library with the same name but stored in different places should also not be loaded twice. A consequence of this would be that you cannot replace a library with a different version and the same name. In your case it would mean that if you start in emacs mode then you cannot load or replace the emacs mode library in the same interpreter session. This may suit you in relation to the current problem but could fire back in other cases. What might be somewhat cleaner is to have a function get_library_id() that returns some identification string, and to stop the loading if a duplicate id is detected (or let the library decide how it would like to proceed). BTW. I would still be interested in the result files of your 80-core benchmark. /// Jürgen On 05/10/2014 03:09 PM, Elias Mårtenson wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |