bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] Concerning libraries


From: Elias Mårtenson
Subject: [Bug-apl] Concerning libraries
Date: Thu, 3 Apr 2014 15:43:36 +0800

As previously mentioned, I'm currently hacking away at SQL integration. Like all native libraries in GNU APL, the system is accessed using a function number together with the variable that is bound in the ⎕FX call.

There are, however, two limitations that I would like to see addressed:

First of all, one might want to use more than one function since remembering the function numbers is a bit ugly. Secondly, one might not want to implement all of the functionality in C++. Parts of the code would be much better written in APL itself.

Thus, we need the following:
Ideally, I'd like to be able to do something like:

)LoadWhatever 'SQLite3'
db ← SQLite.init '/path/to/database'
result ← db SQLite.query 'select * from foo'
SQLite.close db

(the above shows what my current SQLite implementation would look like if we had these features)

The )LoadWhatever command would load APL code in a similar way as the -f flag does when starting the interpreter.

About namespaces, here's a video about them in Dyalog. It's a pretty good idea: http://www.youtube.com/watch?v=XS5Hekf9a9I

Regards,
Elias

reply via email to

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