|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] Request for feature: Back-channel interaction |
Date: | Fri, 3 Jan 2014 00:47:25 +0800 |
Hello Elias,
1. Lets say your function is EE and you call it with a function number as axis argument like you did. (I believe
this is a good convention). Then
A EE[x] B in APL calls eval_AXB() in the shared library,
EE[x] B in APL calls eval_XB() in the shared library,
and so on.
Not good. What I would propose instead is a simple variable set by the interpreter that tells if the interpreter expects
input (and is then guaranteed to not change its data structures until new input is received. Since you control the input
in emacs mode, when you see the variable set and send no data to the interpreter then you are safe.
3. Yes. I believe you need to sign a few papers (see chapter 6 of http://www.gnu.org/prep/maintain/maintain.html) then.
4. right now the .so files are installed in a subdirectory apl of /usr/local/lib or /usr/lib. This is under the control of
autoconf/automake and I believe the path to the parent directory of that subdirectory apl is known by the dynamic
linker by some magic that I do not fully understand. I have also tried to not install the .a and .la files, but have not
succeeded yet. Maybe a relative apl/ee,so works with ⎕FX - havent tried yet. If you have ideas - please let me know.
1 'lib/foo.so' ⎕FX 'EE'
Best Regards and a happy new year,
[Prev in Thread] | Current Thread | [Next in Thread] |