[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Request for feature: Back-channel interaction

From: Juergen Sauermann
Subject: [Bug-apl] Request for feature: Back-channel interaction
Date: Mon, 30 Dec 2013 15:12:43 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hello Elias,

I believe that the new native functions in GNU APL are the way go.

Instead of messing around with commands and their responses, you can
write C++ functions that have direct access to all the internals of GNU APL.

Put these functions into a shared library, say emacs.so. You can then
'emacs.so' ⎕FX 'EMACS' to get a user defined APL function EMACS that you
can "call" via stdin of GNU APL with their output on stdout. That makes
you filters simple and you still have access to everything you need.

See src/native for examples. I am currently working on a native FILE_IO that
shall provide all file related functions (fopen(), fclose(), ...) to GNU APL. You
may take that as a blueprint of how to use native functions.

/// Jürgen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]