When cross-compiling for Android, the configure script seems to detect that
the shm_functions are available, when they are actually not.
If I manually undefine HAVE_shm_open, then the build works.
Regards,
Elias
In Svar_signals.hh, there is a reference to the error code EBADRQC. This
symbol does not exist on OSX. There should be a configure test to see if
this is defined, and if not, perhaps use EINVAL instead?
Regards,
Elias
Hello Jürgen,
What is the recommended way to configure the paths now? I need to be able
to specify the prefix path as well as the path to the workspace when
running GNU APL as a library (in Android).
Note that I don't know the path until the program actually starts, but I
have access to it before
L_lib_root().
>
> You can view the resulting setting with command )LIBS in APL. I believe in
> your case *APL_LIB_ROOT* is
> the way to go.
>
> /// Jürgen
>
>
> On 06/22/2014 01:26 PM, Elias Mårtenson wrote:
>
> Hello Jürgen,
>
> What is the recommended way to co
Any suggestions where I should put the ⍶ and ⍹ symbols on the Emacs keymap?
The ]KEYB command doesn't display a mapping for them.
Regards,
Elias
Nice! I'll try it out on Android shortly.
On Android (and other platforms as well) there is the issue of security.
One does not want other applications to be able to randomly connect to the
server. May I suggest that you add the ability to use Unix domain sockets
instead? The code to do this is al
updated the ]KEYBOARD command to show
>>> the new layout (as for dyalog keyboards). ⍙ is Alt-shift-. (two keys
>>> right from M). SVN 345.
>>>
>>> /// Jürgen
>>>
>>>
>>>
>>> On 06/27/2014 05:15 PM, Frederick H. Pitts wrote:
>>
I am excited about all of this.
>
> In terms of your million row table, now that we've gotten as far as we
> have, I strongly encourage you to create a simple example of the speed
> issue you encountered for Juergen's evaluation.
>
> Thanks.
>
> Blake
>
>
>
Should I add an extra feature to allow you to configure extra options for a
given session?
Regards,
Elias
On 29 June 2014 01:14, David B. Lamkins wrote:
> On Sat, 2014-06-28 at 14:13 +0200, Juergen Sauermann wrote:
> I also doubt that anybody is using shared variables at all because I
> haven'
d? A variant of the gnu-apl function that
> prompts for options?
>
> On Sun, 2014-06-29 at 01:18 +0800, Elias Mårtenson wrote:
> > Should I add an extra feature to allow you to configure extra options
> > for a given session?
> >
> >
> > Regards,
> >
It could be argued that it makes some sense on mobile, since native
libraries on Android is messy at best.
That said, I intend to provide a built-in API to support various
Android-specific features. Some of those will probably be more useful than
shared variables, maybe.
Regards,
Elias
On 29 Jun
I upgraded to the latest version at home last night and everything ran
fine. My home machine is running Ubuntu.
When I did the same on my work machine which is using Arch Linux, I'm
getting the following error:
::connect() to existing APserver failed: Connection refused
*** using local Svar_DB ca
I'm doing a simple test with alpha-underbar in a lambda function and
getting an error message. To reproduce:
*F ← { ⍺ ⍶ ⍵ }*
*10 + F 20*
VALUE ERROR
F[1] λ←⍺ ⍶ ⍵
^
Regards,
Elias
I was looking at the Dyalog reference manual and realised that they support
monadic ⊢ (right) as the identity function. Adding support for this in GNU
APL is trivial.
The attached patch implements this.
Regards,
Elias
Index: src/PrimitiveFunction.hh
===
Now that we have ≢ (not-identical-to) in the keymap, would it make sense to
implement support for it as well? As far as I know, it only has a dyadic
form which is the inverse of ≡.
Regards,
Elias
This is an interesting approach, to have the interpreter automatically
apply the typical memory allocation optimisations rather than you having to
do it yourself.
That said, I think it needs to be a bit more clever. There are many
occurrences where one appends a single element to a large array. If
Thank you. I tried to use the -l flag for apl, but it says the argument is
not accepted.
$ dist/bin/apl -l37
unknown option '-l37'
Regards,
Elias
On 30 June 2014 22:26, Juergen Sauermann
wrote:
> Hi,
>
> I added some printouts showing port numbers involved in the start-up of
> *apl* and *APs
rds,
Elias
On 1 July 2014 17:57, Juergen Sauermann
wrote:
> Hi ELias,
>
> sorry, my fault. Should have been -l 37
>
>
>
> On 07/01/2014 08:41 AM, Elias Mårtenson wrote:
>
> Thank you. I tried to use the -l flag for apl, but it says the argument is
> not accepted.
&g
ming shared
variable offers. Expect surprises.
Regards,
Elias
On 1 July 2014 18:31, Elias Mårtenson wrote:
> This is weird. I only get the error when starting GNU APL from within
> Emacs. When I start it manually, using exactly the same arguments
> (including the --emacs part) it d
some type size confusion on 32-bit machines. The code
> runs on my
> 64-bit linux but not on my 32-bit linux. I'll look into this.
>
> /// Jürgen
>
>
>
> On 07/01/2014 12:31 PM, Elias Mårtenson wrote:
>
> This is weird. I only get the error when starting GNU APL fro
oblem?
>
> Thanks.
>
> Blake
>
>
>
> On Tue, Jul 1, 2014 at 1:22 AM, Elias Mårtenson wrote:
>
>> This is an interesting approach, to have the interpreter automatically
>> apply the typical memory allocation optimisations rather than you having to
>> do it
I agree with the general point, but is it really executed that often?
(good) APL code tends to do a lot with few operations. It would perhaps
make sense to benchmark how many comma functions are called in a typical
program?
Regards,
Elias
On 1 Jul 2014 21:25, "Juergen Sauermann"
wrote:
> Hi Davi
> And what would be the use of it?
>
> /// Jürgen
>
>
>
> On 06/30/2014 06:24 AM, Elias Mårtenson wrote:
>
>> I was looking at the Dyalog reference manual and realised that they
>> support monadic ⊢ (right) as the identity function. Adding support for this
>> in GNU APL is trivial.
>>
>> The attached patch implements this.
>>
>> Regards,
>> Elias
>>
>>
>
ly, even though they call left tack "same"
>> and right tack "identity".) If the argument of conjugate is imaginary,
>> conjugate returns the number with the imaginary part negated. If the
>> argument of conjugate is real or non-numeric, conjugate returns the
&
The standard says the following:
*"The initial value of random-link in a clear-workspace is that member of
the internal-*
*value-set for random-link given by the implementation-parameter
initial-random-link."*
So, setting it to 1 seems to be reasonable enough.
Regards,
Elias
On 2 July 2014 10:
The standard spec is not entirely clear on this, but the way I read it
suggests that everything it supposed to be copied.
Regards,
Elias
On 2 July 2014 09:58, Blake McBride wrote:
> According to the IBM APL2 Programming Language Reference (page 423), the
> )COPY command should not copy ⎕PW. T
art enough to understand that spec.
> IBM's language manual is readable, and the value it is clear about is what
> I expected. Also, I just tested IBM APL 2. Initial ⎕RL is 16807. If any
> value is valid, why not match IBM APL 2 and their Language Manual?
>
>
> On Tue, Jul
sions, we were attempting to match the IBM APL standard - for better
> or worse. Additionally, in any area where it is arbitrary or pointless,
> why not just match the standard and avoid controversy whether you think it
> is meaningless or not?
>
>
> On Tue, Jul 1, 2014 at 10
Makes sense. The standard specification is so weird that it must be
considered broken.
Frankly, I'd love to hear the discussions that preceeded its inclusion in
the standard. :-)
Regards,
Elias
On 2 July 2014 23:19, Juergen Sauermann
wrote:
> Hi,
>
> I have changed the rank operator with axi
I have to agree with Blake here. Ideally there should be a call to
getenv("HOME") and if that returns non-NULL, then use the .apl_history in
$HOME/.apl/apl_history or something like that.
If it returns NULL, well, then fall back to current directory I suppose.
I could make the Emacs mode use the
getpwuid(getuid());
> const char *homedir = pw->pw_dir;
>
>
>
>
> On Wed, Jul 2, 2014 at 10:44 AM, Elias Mårtenson
> wrote:
>
>> I have to agree with Blake here. Ideally there should be a call to
>> getenv("HOME") and if that returns non-NULL, the
I gave.
>
>
> On Wed, Jul 2, 2014 at 11:00 AM, Elias Mårtenson
> wrote:
>
>> Neat, although I believe directly looking at the PATH variable is more
>> portable. It works on all Unices as well as Windows.
>>
>> Regards,
>> Elias
>>
>>
>>
>
> On Wed, Jul 2, 2014 at 11:27 AM, Elias Mårtenson
> wrote:
>
>> Arguably, I can't think of a single situation where PATH isn't set while
>> getpwuid would work. I could be wrong though.
>>
>> Regards,
>> Elias
>>
>>
>> On 3 J
t; set.
>
>
> On Wed, Jul 2, 2014 at 11:34 AM, Elias Mårtenson
> wrote:
>
>> Are you sure of that? I'm 99% sure that PATH is always set on OSX.
>>
>> Regards,
>> Elias
>>
>>
>> On 3 July 2014 00:31, Blake McBride wrote:
>>
>>
latest SVN? I fixed another issue in SVN 354 or so which caused execve()
> so fail.
> The *apl -l 37* and *APserver -v* outputs would help.
>
> /// Jürgen
>
>
>
> On 07/02/2014 06:03 AM, Elias Mårtenson wrote:
>
> It still doesn't work for me. Same error.
>
I was playing around with solving the Dyalog challenge, and I found them
pretty easy with the exception of one.
The goal was to write a lambda function that given a single integer,
returns a list of the Fibonacci series up to that number.
The only way I can think of solving it is by using a full
> You need a generator that can produce the next number in the sequence, and
> a test to check whether you're done.You can run the generator and test in a
> tail-recursive loop while accumulating the results.
>
> I don't know that you'd need to use local functions, bu
for F 0, 1 for F 1 and
> 1 1 2 3 5 8 13 21 34 55
> for F 10.
>
> Regards,
>
> Fred
> Retired Chemical Engineer
>
> On Thu, 2014-07-03 at 22:12 +0800, Elias Mårtenson wrote:
> > I was playing around with solving the Dyalog challenge, and I found
> > them p
in SVN 358. It also has a monadic form returning ⍬⍴(⍴B),1.
> (according to NARS)
>
> /// Jürgen
>
>
>
> On 06/30/2014 04:35 PM, Elias Mårtenson wrote:
>
> Now that we have ≢ (not-identical-to) in the keymap, would it make sense
> to implement support for it as well? As fa
Oh wait... Forget it. I see it now. It's a clever way of seeing how many
first-axis elements there are, with 1 being returned for scalars, yes?
Regards,
Elias
On 4 July 2014 10:34, Elias Mårtenson wrote:
> I have now been looking at the monadic form for a while, and I just can't
Cool. I suppose I need to add proper documentation for it as well. :-)
Regards,
Elias
On 5 Jul 2014 22:04, "Juergen Sauermann"
wrote:
> Hi,
>
> I have added Elias' SQL code (native functions and APL workspace) so that
> it is now built and installed automatically with GNU APL.
>
> Elias, thanks
I also noticed that the community web page says that the library supports
mysql and postgres, when in fact it supports SQLite and PostgreSQL.
Regards,
Elias
On 6 July 2014 17:29, Juergen Sauermann
wrote:
> Hi,
>
> I will look into it. ./configure should properly detect if sqlite or
> postgres
When I build and install GNU APL, I specify
--prefix=/home/elias/src/apl/dist. I then expect the PSYS to be
/home/elias/src/apl/dist/lib/apl/wslib*[0-9]*.
Now, typing )LIBS at the prompt gives me: /usr/local/lib/apl/wslib*[0-9]*.
This is not correct, is it?
Regards,
Elias
>
> Your output below was most likely created by a stale apl binary in
> /usr/local/bin.
>
> /// Jürgen
>
>
> On 07/06/2014 03:59 PM, Elias Mårtenson wrote:
>
> When I build and install GNU APL, I specify
> --prefix=/home/elias/src/apl/dist. I then expect the PSYS to
Ordering by size first makes very little sense to me. It makes it very hard
to sort any list of strings.
I was hoping that the following would have done so, but it also suffers
from the "length first" issue:
*z[⍋ ⎕UCS¨ z←'aa' 'xx' 'aaa' 'xxx']*
aa xx aaa xxx
What is the proper way to sort
How about adding support for a dyadic form where the left-side argument is
a glob pattern to be used when matching the file names?
http://linux.die.net/man/3/glob
Regards,
Elias
On 8 July 2014 00:52, David Lamkins wrote:
> Thanks, Jüergen. I'll change my code tonight to use the new calls.
>
>
nadic grade treating strings as if they
> encode numbers in a sufficiently large base.
>
> If you want to sort strings, use dyadic grade. The left argument
> specifies a collating sequence.
>
> On Tue, 2014-07-08 at 11:43 +0800, Elias Mårtenson wrote:
> > Ordering by siz
use this to specify a
> default collating order (based upon ordinal value of the code points
> themselves) for the 8-bit ASCII subset:
>
> ⎕ucs ⎕io-⍨⍳256
>
>
>
> On Tue, 2014-07-08 at 12:09 +0800, Elias Mårtenson wrote:
> > Dyadic grade doesn't make much sense in th
rder for Unicode; any code points not explicitly specified in
>> the collating order will sort to the end.
>>
>> For example (and this is an easy case) you can use this to specify a
>> default collating order (based upon ordinal value of the code points
>> themselves) for t
if that expression did what we'd like it to
> do. I guess it'd fall under the category of "conforming extension".
>
> Neither IBM nor ISO APL define a behavior for dyadic grade with other
> than a character matrix as the right argument.
>
> On Tue, 2014-07-08 at 12:4
──┐
│┌→─┐ ┌→──┐ ┌→──┐ ┌→───┐│
││aa│ │bar│ │foo│ │test││
│└──┘ └───┘ └───┘ └┘│
└∊──┘
Regards,
Elias
On 8 July 2014 14:49, Elias Mårtenson wrote:
> Right. My opinion is that grade with an array of lists should do lexical
> ordering. Given the
low) then it comes from the system's
> preference file. The question is then: which one? This is what apl -l 37
> will tell us.
>
> /// Jürgen
>
>
>
> On 07/06/2014 05:21 PM, Elias Mårtenson wrote:
>
> Actually I don't have any APL binary installed anywhere
A new error when building on OSX:
g++ -DHAVE_CONFIG_H -I. -I../..-I .. -g -O2 -DAP_NUM=210 -g -MT
AP210-UdpSocket.o -MD -MP -MF .deps/AP210-UdpSocket.Tpo -c -o
AP210-UdpSocket.o `test -f '../UdpSocket.cc' || echo './'`../UdpSocket.cc
*../Svar_DB.cc:94:25: **error: **use of undeclared identifi
The value should be SOL_SOCKET (also true for Linux).
Regards,
Elias
On 8 July 2014 21:42, Juergen Sauermann
wrote:
> Hi Elias,
>
> how is it called then? And what is its value? 6 for PROTO_TCP?
>
> /// Jürgen
>
>
>
> On 07/08/2014 03:05 PM, Elias Mårtenson
There is already the SIGINT signal which is processed by GNU APL to
interrupt a function execution. However, this interruptability is not
extended to the layout function.
On 9 July 2014 09:09, Peter Teeson wrote:
> In Sharp APL (IPSA) we had a "panic int" which interrupted whatever was
> being
Wow. This is the first I heard of χ. Shouldn't it be mapped to the keyboard
somewhere?
Regards,
Elias
On 9 July 2014 00:44, David Lamkins wrote:
> Thanks, Jüergen. Confirmed fixed.
>
>
>
> On Sun, Jul 6, 2014 at 7:45 AM, Juergen Sauermann <
> juergen.sauerm...@t-online.de> wrote:
>
>> Hi Davi
; ⍋⊃Z
>> DOMAIN ERROR
>> ⍋⊃Z
>> ∧
>>
>>
>> I have no real preference regarding this. I am just providing this for
>> informational purposes. Please feel free with other tests you would like
>> me to perform.
>>
>> Thank
L 2.
>
>
>
> On Tue, Jul 8, 2014 at 9:42 PM, Elias Mårtenson wrote:
>
>> So NARS is giving the same results as GNU APL then?
>>
>>
>> On 8 July 2014 22:50, Blake McBride wrote:
>>
>>> Interestingly, in NARS200 I get all of the same results as in IBM AP
ias
On 9 July 2014 10:58, Blake McBride wrote:
> I think the layout function need two modifications:
>
> 1. enable ^C
>
> 2. at least for large data, output as you go rather than format the whole
> thing and then output the whole thing
>
> --blake
>
>
>
> O
Yeah, and neither would Jürgen. Seems like I was in the minority on that
one. :-)
Regards,
Elias
On 9 July 2014 11:10, Blake McBride wrote:
> I wouldn't do that!
>
>
>
> On Tue, Jul 8, 2014 at 10:01 PM, Elias Mårtenson
> wrote:
>
>> I suggested some ti
ndered what χ is used for right after the layout
> change. ;)
>
> On Wed, 2014-07-09 at 10:57 +0800, Elias Mårtenson wrote:
> > Yes, you're right. :-) You know my code better than myself.
> >
> >
> > Regards,
> > Elias
> >
> >
> > On 9
On 9 July 2014 11:17, David B. Lamkins wrote:
> On Wed, 2014-07-09 at 11:14 +0800, Elias Mårtenson wrote:
> > I'm still wondering what ⌺ (quad-diamond), ¢ (cent-sign) and £
> > (pound-sign) are used for.
> >
>
> Well, the currency symbols are pretty obvi
It would be nice to be able to access the values of ⍵ and ⍺ (and I suppose
χ) from the outer lambda from a nested lambda.
I.e, I'd like to following to return the value 1100:
* { ⍵ + {⍵×⍵⍵} 10 } 100*
In other words, the ⍵⍵ in the inner lambda would refer to the value 100
(i.e. the value of
I can't say it makes much sense in non-opensource programs either. My guess
is that these things are more of a relic of a time when people were
experimenting with such things. There is a reason no other languages do
this.
However, I do see a different use for "non-suspendible functions". I see it
How about having the )FNS, )OPS and )VARS commands filter out names that
contain a ⍙ symbol by default? Since the idea is that those are internal
names it would make sense to hide them (unless some other flag is given).
Opinions?
Regards,
Elias
fnmatch() with readdir().
>
> http://linux.die.net/man/3/fnmatch
>
> On Tue, 2014-07-08 at 11:44 +0800, Elias Mårtenson wrote:
> > How about adding support for a dyadic form where the left-side
> > argument is a glob pattern to be used when matching the file name
I was looking at your code, and I noticed that it's SQLite-specific.
WOuldn't it make sense to make it SQL-implementation-agnostic?
Based on what I can see, the only SQLite-specific SQL you have in there is
"replace into" which I had never heard about before.
Regards,
Elias
On 9 July 2014 01:22
Yes, you're right. :-) You know my code better than myself.
Regards,
Elias
On 9 July 2014 10:50, David B. Lamkins wrote:
> Hmm? It's in *gnu-apl-keymap* on my systems...
>
> On Wed, 2014-07-09 at 10:30 +0800, Elias Mårtenson wrote:
> > Wow. This is the first I he
pport the notion of multiple users.
> Again: point in favor of SQLite...
>
>
> On Thu, 2014-07-10 at 10:25 +0800, Elias Mårtenson wrote:
> > I was looking at your code, and I noticed that it's SQLite-specific.
> > WOuldn't it make sense to make it SQL-implementati
ng to a
>> PostgreSQL server?
>>
>> As you've no doubt noticed, there's nothing in the code (or in the
>> standard API) to acknowledge or support the notion of multiple users.
>> Again: point in favor of SQLite...
>>
>>
>> On Thu, 2014-07-10 at
does.
> Maybe you like
>
>
>
> * { ⍵ + {⍵×WW} 10 ⊣ WW←⍵ } 100 1100 *
> imore?
>
>
>
> On 07/09/2014 04:08 PM, Elias Mårtenson wrote:
>
> I know, but it's much more ugly than my proposal, don't you think?
>
> Regards,
> Elias
>
>
>
gt; "conforming extension". I imagine that this could be a relatively easy
> way to implement multiuser access, as well. (I'm assuming that
> PostgreSQL handles multiple clients and can do The Right Thing w.r.t.
> locking.)
>
> Let's see where this goes. I'm l
; table, where one column holds the object
type (or table name) and the other column holds the next id.
Regards,
Elias
On 10 July 2014 13:38, Elias Mårtenson wrote:
> Thank you for looking into this.
>
> Since the SQL API is database-agnostic, it would make sense to make your
> librar
you want to list all names not containing ⍙, do this:
>>
>> ne '⍙'
>>
>> To get just the variables:
>>
>>2 ne '⍙'
>>
>> Or just the functions:
>>
>>3 ne '⍙'
>>
>> Or just the ope
iven the vagaries of SQL implementations, I can imagine the forced
>> update of the component file code being a near-certainty.
>>
>> I do like the notion of allowing multiple component files in a single
>> database.
>> On Jul 9, 2014 10:38 PM, "Elias Mårtenson"
On 9 July 2014 18:08, Jay Foad wrote:
Note that this would conflict with the use of ⍺⍺ and ⍵⍵ in NARS2000
> and Dyalog, where they refer to the operands of a defined operator.
>
Yes, but those are called ⍹ and ⍶ on GNU APL, which makes more sense.
> With three levels of nested lambdas would yo
; /// Jürgen
>
>
>
> On 07/09/2014 10:53 AM, Elias Mårtenson wrote:
>
> It would be nice to be able to access the values of ⍵ and ⍺ (and I suppose
> χ) from the outer lambda from a nested lambda.
>
> I.e, I'd like to following to return the value 1100:
>
> *
On 11 July 2014 07:52, Blake McBride wrote:
> On Thu, Jul 10, 2014 at 6:28 PM, David Lamkins wrote:
>
> That's a matter of opinion. I happen to believe that satisfying the spec
>> is an excellent starting position.
>>
>
> I live in Tenessee. One could make an equal argument that heading east
On 11 July 2014 10:23, Elias Mårtenson wrote:
I think what David really wants is an interface to Berkeley DB
> <http://en.wikipedia.org/wiki/Berkeley_DB>. I can build that if you want.
>
And, to reply to myself, an even better choice (and more appropriate for
this project) is p
ting!
>
>
> On Thu, Jul 10, 2014 at 10:16 PM, Elias Mårtenson
> wrote:
>
>> On 11 July 2014 10:23, Elias Mårtenson wrote:
>>
>> I think what David really wants is an interface to Berkeley DB
>>> <http://en.wikipedia.org/wiki/Berkeley_DB>. I can bui
Would you be willing to move the CF stuff on top of GDBM? It's a much
better fit for it, and will give you everything you do with SQLite today,
without the extra overhead (SQLite is also not very efficient if you open
multiple databases).
Regards,
Elias
On 11 July 2014 12:21, David B. Lamkins w
h and let you know. :)
>
> On Fri, 2014-07-11 at 11:16 +0800, Elias Mårtenson wrote:
> > On 11 July 2014 10:23, Elias Mårtenson wrote:
> >
> > I think what David really wants is an interface to Berkeley
> > DB. I can build that if you want.
> >
>
iple databases? Any idea why? A global
> lock, perhaps...?
>
> On Fri, 2014-07-11 at 12:24 +0800, Elias Mårtenson wrote:
> > Would you be willing to move the CF stuff on top of GDBM? It's a much
> > better fit for it, and will give you everything you do with SQLite
> &g
On 10 July 2014 08:03, Kacper Gutowski wrote:
I think the main problem isn't the length of variable's name but the
> fact that regular variable is neither lexically scoped nor localized.
>
This is exactly my concern.
> Using ⍵⍵ might be confusing for Dyalog users where ⍺⍺ and ⍵⍵ are used
> as
7;d like to be able to keep that
> functionality without having to write it myself (at least in the initial
> implementation).
>
> SQL is optional to BDB on Linux builds. I can live without the SQL
> support...
>
>
> On Fri, 2014-07-11 at 12:24 +0800, Elias Mårtenson wrote:
> > Wo
tion
> of DBM as compared to GDBM. Either way, thanks. I'll start with BDB and
> compare it to SQLite.
>
> On Fri, 2014-07-11 at 13:07 +0800, Elias Mårtenson wrote:
> > BDB is much heavier than DBM (of which GDBM is an implementation). DBM
> > only allows a singl
On 11 July 2014 22:15, Blake McBride wrote:
1. It seems that GDBM is really a file manager and not a database. What I
> mean by that is that there is a one-to-one relationship between a Unix file
> and a GDBM file. You can't store multiple "files" in one Unix file like
> SQLite. If this is tr
Most modern (and some not-so-modern) languages have a standard way of
attaching documentation to functions and other symbols. For example, in
Java documentation looks like this:
*/***
* * Example method that adds 1 to its argument. The documentation*
* * is a normal comment that comes
f the last example:
add1 ← { "Add one to the right-hand argument." ⊢ ⍵+1 }
Regards,
Elias
On 14 July 2014 00:01, Elias Mårtenson wrote:
> Most modern (and some not-so-modern) languages have a standard way of
> attaching documentation to functions and other symbols. For exampl
(s) following the function header is (are)
> the docstring.
>
> As regards the extended ⎕CR functions: all of this can be easily
> implemented using defined functions; no need to extend the built-in
> functions. Take advantage of the position of the header comment to
> either re
Interesting. Given the following definition of pp:
∇Z←X pp Y
⎕←'comparing'
⎕←' X=' (8⎕CR X)
⎕←' Y=' (8⎕CR Y)
Z←X≡Y
∇
I get the following output:
*(⊂'foo') pp¨ (,⊂'foo')*
comparing
X= ┌─┐
│┌→──┐│
││foo││
│└───┘│
└∊┘
Y= ┌→
Jürgen,
Do you think it would be possible to implement some way of retrieving not
only the error code, but also the )MORE text from an exception inside
an ⎕EA?
The reason for this is that in my SQL∆WithTransaction call, I need to call
the rollback function if there is an error, but then I want to
This information is already stored. The Emacs mode uses this when
navigating to definition of a function.
Regards,
Elias
On 15 Jul 2014 02:19, "David Lamkins" wrote:
> I apologize for the confusion, but this proposal is about capturing the
> file location of a function's definition; not about th
Did you mean ? Then that is actually correct. ResultValue is
specific to the SQLite provider. If SQLite support is not enabled, that
file shouldn't be compiled.
Perhaps it would be best if that file is renamed SqliteResultValue...
Regards,
Elias
On 15 July 2014 01:36, Juergen Sauermann
wrote:
15 July 2014 10:09, Blake McBride wrote:
> The thing that started this is that GNU APL was not able to compile
> without the SQLite .h files. In other words, GNU APL requires SQLite. I
> think he wants it to only use SQLite when ./configure finds it.
>
>
> On Mon, Jul 14,
Jürgen,
I have updated the SQL module in the git repository. First and foremost I
have renamed ResultValue to SqliteResultValue to better illustrate that
it's only required by the SQLite provider. Secondly, I've added
documentation to the sql.apl library.
This integrates neatly with the new docum
was defined on line 10 of the file foo.c
.
The Emacs mode reads this information using C++ code.
Regards,
Elias
On 15 July 2014 07:45, David Lamkins wrote:
> That's good to know. Thanks!
>
>
> On Mon, Jul 14, 2014 at 4:34 PM, Elias Mårtenson
> wrote:
>
>> This i
On 15 July 2014 10:39, Elias Mårtenson wrote:
> Just some extra information: There is not currently (at least as far as I
> know) any way you can read this information from within APL. You can,
> however, set it using the dyadic form of ⎕FX:
>
> *0 'foo.c:10'
he "if SQLITE3" part
> of the makefile.
>
> Jay.
>
> On 15 July 2014 03:12, Elias Mårtenson wrote:
> > It's not supposed to. I think the error is that it still tries to compile
> > ResultValue.cc even though SQLite wasn't found during the ./configure
&
And it's completed. C-c C-h on a function should now display its
documentation (if there is one).
Regards,
Elias
On 14 July 2014 09:17, Elias Mårtenson wrote:
> I like this idea a lot. Having the comment inside the function allows you
> to edit the text when using the Emacs func
401 - 500 of 1005 matches
Mail list logo