[Bug-apl] hexcodes to unicode points

2016-10-27 Thread alexweiner
hi bugapl,I'm getting a bit confused, and would appreciate help.I'm trying to pass cards to a webserver, but GET and POST percent-encode values.I have this code that converts the text-hex to decimal values.cards←'🂨🂦🂻🂷🂴🂲🃝🃘🃒🃋🃊🃆🃄'  hexcodes←,¨,(16 1 ⍴'0123456789ABCDEF')∘., (⍪¨'0123456789ABCDEF')  

[Bug-apl] dynamic function not referencing global?

2016-10-25 Thread alexweiner
Hi bug-apl,Why does DISPLAYhand not use the new value of hand on the second call?  deck←''  deck←deck,"🂢" "🂲" "🃂" "🃒"  deck←deck,"🂣" "🂳" "🃃" "🃓"  deck←deck,"🂤" "🂴" "🃄" "🃔"  deck←deck,"🂥" "🂵" "🃅" "🃕"  deck←deck,"🂦" "🂶" "🃆" "🃖"  deck←deck,"🂧" "🂷" "🃇" "🃗"  deck←deck,"🂨"

[Bug-apl] What is the right way to layout data in a component filesystem

2016-07-26 Thread alexweiner
Hi bug-apl, If I have three items, should I 1. Have thee component files and use the library's append, delete, etc methods to update them. An append would make a new component in the component file. 2. One component file. Only use components 1, 2,  and 3. Then write methods to append, i

Re: [Bug-apl] alt-tab w/ aplkeys

2016-04-03 Thread alexweiner
In Xorg, alt+tab will switch between open windowsthe xmodmap script trunk/support-files/Dyalog-Keyboard/apl.xmodmap maps both Alt key as well as the meta ("Windows") keys to the APL modifier key. My xmodmap script reverts the Alt keys back to their pre- trunk/support-files/Dyalog-Keyboard/apl.xmodm

[Bug-apl] alt-tab w/ aplkeys

2016-04-02 Thread alexweiner
Hi Jürgen,I'm not sure if this is a significant enough change to add as a new file in GNU APL, but this change augments the Dyalog keyboard layout to have alt+tab "work". This behaviour is disabled on my computer (Debian) when I enable that layout: a@a:~/aplstuff$ diff apl.tab.xmodmap trunk/suppor

[Bug-apl] 30 ≢ 30 ?

2016-03-05 Thread alexweiner
hi bug-apl,why are these not exactly equal:  ⍴'Content-Disposition: form-data'╔══╗║30║╚══╝  30╔══╗║30║╚══╝  30≡⍴'Content-Disposition: form-data'╔═╗║0║╚═╝-Alex

Re: [Bug-apl] working with )HOST

2016-03-04 Thread alexweiner
Hi Xtian,I'm not sure I follow what you are saying. That may be because I don't know what fflush() does...I'll do some reading. Are you suggesting the code I presented does not function? it does, its just a kludge.-Alex

[Bug-apl] working with )HOST

2016-03-04 Thread alexweiner
Hi Bug-apl,Currently, at a point in my code I do something like this:⍝assume the variable 'yadda' exists and is correctly formed, as well as the read_file functionsuccess←yadda ⎕fio[7] tie← 'wr'⎕FIO[3] "yadda.file")host ./shellscript.sh yadda.file yadda.file.newyadda_new← read_file "yadda.file.new"

Re: [Bug-apl] noise in fomatting ver small numbers

2016-02-21 Thread alexweiner
fair enough. good thing I only wanted to format to the one that "works" Original Message Subject: Re: [Bug-apl] noise in fomatting ver small numbers From: Kacper Gutowski Date: Feb 21, 2016 5:46 PM To: alexwei...@alexweiner.com CC: "bug-apl@gnu.org" On Sun, Feb 21, 2016 at 10

[Bug-apl] noise in fomatting ver small numbers

2016-02-21 Thread alexweiner
Hi Bug apl,it seems that format adds fuzz after a certain point.  a←0.0001  '0. '⍕a0.0001   '0.

[Bug-apl] --script to normal on error

2016-02-20 Thread alexweiner
Hi Bug-apl,I'm running some apl code with  '--script' argument and without an ')off' at the end of the code, and there is an error. Is there anything I can do to sort of switch back to regular interpreter mode so that I can debug, fix, and continue execution? Currently I jut keep a second window op

[Bug-apl] script "Killed"

2016-02-16 Thread alexweiner
Hi Bug-APL,I was running APL as a script, working on a file that is several megabytes, and it printed the word "Killed" and then ends and kicks me back out to the command line. Does anyone have any idea what happened here? Is this possible to avoid?-Alex

[Bug-apl] apl symbols from a file

2016-02-14 Thread alexweiner
Hi Bug APL,the system's word count mechanism says length four. APL says length three, I thought this was going to be length 1 and the symbol '⍝'. Does anyone know what I am doing incorrectly:a@a:~/aplstuff$ echo "⍝" > txta@a:~/aplstuff$ cat txt⍝a@a:~/aplstuff$ wc txt1 1 4 txta@a:~/aplstuff$ ./wc.ap

[Bug-apl] assignment to many variables

2016-02-10 Thread alexweiner
Hi Bug-APL,In the context of passing many variables to a function,I am worried that I am going to forget the parenthesis, since its a really subtle thing:  (a b)←1 2  a1  b2  a b←1 2 1  1 2   a1  b1 2Also here, I find binding strength a bit misleading, since the correctly pa

Re: [Bug-apl] value error when using 'Cut'

2016-02-08 Thread alexweiner
While I agree that the right-operand binding should be as you have defined it (higher than vector notation), maybe I should take a queue from you and just always put parenthesis around the symbol and both operator inputs, which would free me of having to remember binding strengths, which may vary f

Re: [Bug-apl] value error when using 'Cut'

2016-02-07 Thread alexweiner
Jürgen,Thanks for clearing up the usage.I pulled my example from this paper:http://www.jsoftware.com/papers/RationalizedAPL.htm    (search the page for the term 'tessellation' to see where I am looking) which seems to be using < in place of ⊂ which still seems to cause an error for me in GNU AP

[Bug-apl] value error when using 'Cut'

2016-02-06 Thread alexweiner
Hi bug-apl,Why am I getting a value error here? It seems that the variable 'a' definitely exists:  a←2 2 ⍴2  m←4 4 ⍴⍳16  a2 22 2  m 1  2  3  4 5  6  7  8 9 10 11 1213 14 15 16  a ¯3⍤< mVALUE ERROR  a ¯3⍤  ^  a 2 22 2SVN 693-Alex

[Bug-apl] trunk/support-files/Dyalog-Keyboard/apl.xmodmap alt+tab

2016-01-14 Thread alexweiner
Hi Bug-APL,I was wondering if anyone is familiar enough with xmodmap to know why it would disable the existing Alt-Tab functionality in xorg (switching between windows) when the key combination has no apparent use in the interpreter. I am using this file:trunk/support-files/Dyalog-Keyboard/apl.xmod

Re: [Bug-apl] Whats a better way to do this?

2015-11-07 Thread alexweiner
That works! I guess I was overthinking . Thanks! Original Message Subject: Re: [Bug-apl] Whats a better way to do this? From: Kacper Gutowski Date: Sat, November 07, 2015 4:25 pm To: alexwei...@alexweiner.com Cc: "bug-apl@gnu.org" On Sun,

[Bug-apl] Whats a better way to do this?

2015-11-07 Thread alexweiner
Hi Bug apl,Does anyone have a recommendation on how to calculate `result` assuming you have `b` and `subsections` of any length?       subsections┌→─┐│┌→──┐ ┌→─┐│││┌→─

[Bug-apl] APL error also prints the c++ error?

2015-10-31 Thread alexweiner
Hi Bug-apl,Usually I only see C++ errors in the interpreter when there is a stack trace. I'm not sure why this one is printed on a simple domain error:      ←2⍴⊂5 5 ⍴'alexcweiner'      ⎕ucs,¨cell_B.get_cell_type(): '4' at QuadFunction.cc:1585DOMAIN ERROR      ⎕UCS,¨      ^   ^I was goin

[Bug-apl] Can you exit and ⎕inp without knowing the right argument

2015-10-27 Thread alexweiner
Hi Bug-apl,I seem to have accidentally opened a ⎕inp in the interpreter, and too many lines have scrolled, and I do not know my EOF keyword.It seems that ctrl+c and ctrl+d both do not work here. It seems that ')off' is (expected) ineffective here. I can't think of a reason to disallow the use of ct

[Bug-apl] multiple right parenthesis commands cause no error

2015-10-26 Thread alexweiner
Hi Bug-apl,Should this cause an error?      )copy)copy 5 HTMLDUMPED 2015-10-26 18:04:42 (GMT-4)If anything, (parsing from right to left) I would expect a successful copy and then  a "BAD COMMAND+"-Alex

[Bug-apl] →⍬ gives syntax error every other time.

2015-10-26 Thread alexweiner
Hi Bug-apl,To be honest, I'm not too sure what branching to zilde actually means, but it seems to cause an error every other time. I'm not sure if this is expected behavior.      →⍬SYNTAX ERROR+      →⍬      ^      →⍬      →⍬SYNTAX ERROR+      →⍬      ^      →⍬I also noticed that running →⍬ after a

[Bug-apl] Zilde Take Vector gives a stack trace

2015-10-25 Thread alexweiner
Hi Bug-APL,Not a segfault, but I don't think anyone wants a stack trace when their program is running. SVN 687:      ⍬↑11      ⍬↑1 1==Assertion failed: shape_Zi.get_rank() == B->get_rank()in Function:      fillin file:    

[Bug-apl] ⎕TRACE usage ?

2015-10-22 Thread alexweiner
Hi Bug-apl, Is there documentation on how to use ⎕TRACE ? I ran info apl | grep ⎕TRACE and found nothing. It does not look like it is listed in the IBM APL2 manual either. -Alex

[Bug-apl] Correct Syntax for HTML∆xbox ?

2015-10-13 Thread alexweiner
Hi Bug-APL,I'm a bit confused. The synopsis states "append text matrices A and B horizontally". The example near the function definition uses slightly different phrasing, and provides an example that does not use exactly "HTML∆xbox":⍝ append boxes A and B horizontally:⍝⍝ AABBB   AA      BBB⍝ AABBB

Re: [Bug-apl] How do you handle the contents of POST in a CGI script

2015-10-11 Thread alexweiner
Kacper,This is slightly tangential:Why do you choose to write it like this?:ContentsOfPOST←{⍵, FIO∆fread 0}⍣{⍺⊢FIO∆feof 0}''This method (in my limited knowledge) seems equivalent:ContentsOfPOST←(FIO∆feof 0) FIO∆fread 0Just wondering what made you take that approach.-Alex Original Message

Re: [Bug-apl] Performance problem with simple program

2015-10-11 Thread alexweiner
Jürgen,Just wondering: Does this optimization in SVN 682 also apply to a homogeneous list of numbers? For example, if the input string is '1 2 3 3 45 3 2'. Is this what you mean when using the term 'single value' ?-Alex

Re: [Bug-apl] How do you handle the contents of POST in a CGI script

2015-10-10 Thread alexweiner
Kacper,Thank you for elucidating this use case for me!-Alex Original Message Subject: Re: [Bug-apl] How do you handle the contents of POST in a CGI script From: Kacper Gutowski Date: Fri, October 09, 2015 10:50 pm To: alexwei...@alexweiner.com Cc: "bug-apl@g

[Bug-apl] How do you handle the contents of POST in a CGI script

2015-10-09 Thread alexweiner
Bug-APL & Juergen,I am struggling to follow our previous conversation. Pretty much, I am confused about the source of the POST contents. I believe you mentioned that it should come from stdin, and if I understood, it is not possible to use it jointly with CGI scripting:#!/usr/local/bin/apl)COPY /us

[Bug-apl] bug-apl archive not updating, or just me?

2015-10-06 Thread alexweiner
Hi Bug-apl,The top says "Archives are refreshed every 30 minutes"but the refresh time is "Last Modified: Sat Oct 03 2015 21:37:15 -0400"and today is Tue Oct 06 2015.Is this something specific to bug apl, or is this a gnu.org problem? -Alex

Re: [Bug-apl] related to ⎕QS

2015-09-30 Thread alexweiner
Elias,Thank you for the suggestion. I'll give this a shot.  Original Message Subject: Re: [Bug-apl] related to ⎕QS From: Elias_Mårtenson Date: Tue, September 29, 2015 5:51 pm To: Juergen Sauermann Cc: bug-apl@gnu.org, alexwei..

Re: [Bug-apl] related to ⎕QS

2015-09-28 Thread alexweiner
Jürgen, Given this behavior, how is it possible to read from stdin of the CGI script with FILE_IO for the input on the first line, because wouldn't you have to )COPY in FILE_IO on the ⎕LC-1 line? Original Message Subject: Re: [Bug-apl] related to ⎕QS From: Juergen Sauermann

Re: [Bug-apl] related to ⎕QS

2015-09-25 Thread alexweiner
Jürgen ,You mentioned: as far as I remember the POST'ed data can be read from stdin of the CGIscript. So probably FILE_IO (read() or fgets()) may do the job.I'm a bit confused. I was messing around with this and ran the following on the command line to see where stdin is going:echo "yadda" | aplThe

Re: [Bug-apl] CGI script prints instead of executing when FILE_IO is copied in

2015-09-24 Thread alexweiner
Thanks Jürgen, I will try that. I think I got the idea of 0 0 ⍎')COPY' from your example, and didn't really understand what it is really doing, besides not printing the result.-Alex  Original Message Subject: Re: [Bug-apl] CGI script prints instead of executing when FILE_IO is c

Re: [Bug-apl] System Functions

2015-09-23 Thread alexweiner
I was unable to find a definition for ⎕X in 'info apl' or the IBM manual.-Alex

Re: [Bug-apl] CGI script prints instead of executing when FILE_IO is co pied in

2015-09-23 Thread alexweiner
Sorry Please Disregard.  Original Message Subject: CGI script prints instead of executing when FILE_IO is co pied in From: Date: Wed, September 23, 2015 6:23 pm To: bug-apl@gnu.org Hi Bug-APL,It appears that this script works if FILE_IO is not copied

[Bug-apl] CGI script prints instead of executing when FILE_IO is copied in

2015-09-23 Thread alexweiner
Hi Bug-APL,It appears that this script works if FILE_IO is not copied in. When the FILE_IO is copied in, it appears that the cgi script runs but prints the HTML to the page. Is FILE_IO 's existence in the program make the script run under different conditions? (or is it possible there is something

[Bug-apl] ≡/⍎¨ '5' "5" ⍝returns 1

2015-09-20 Thread alexweiner
Hi Bug-APL,Should the execute primitive include the structure data? I thought that the phrase in the subject line would return zero. I thought the first element would return a scalar 5, and the second would return a single element five. Both evaluate to a scalar five. These lines, that include coer

Re: [Bug-apl] Actual typo in "info apl"

2015-09-20 Thread alexweiner
I found another typo. I'll submit an edited/corrected apl.info.gz once I get through it.-Alex Original Message Subject: Actual typo in "info apl" From: Date: Sun, September 20, 2015 10:22 am To: bug-apl@gnu.org   • ‘--show_all_dirs’     display all t

[Bug-apl] Actual typo in "info apl"

2015-09-20 Thread alexweiner
  • ‘--show_all_dirs’     display all the directories above.  Tben exit.Should be "Then".-Alex

[Bug-apl] Possible typo in "info apl"

2015-09-20 Thread alexweiner
Hi Bug-APL,On about the sixth line of "info apl" it says:*Note Chapter 6::Should this be:*Note Chapter 6*or do the trailing double colon have significance?-Alex

Re: [Bug-apl] related to ⎕QS

2015-09-20 Thread alexweiner
Jürgen,After a bit of googling, it seems like that is the right direction, as I found a C++ example of reading POST data using stdin in the context of CGI programming. I think I should be able to wing it from here. Thanks!-Alex Original Message Subject: Re: [Bug-apl] related to

Re: [Bug-apl] related to ⎕QS

2015-09-18 Thread alexweiner
ah, sorry. I meant the QUERY_STRING which is in quad ENV. sorry, I assigned it as QS in my code and confused myself and everyone. Original Message Subject: Re: [Bug-apl] related to ⎕QS From: Juergen Sauermann Date: Sep 18, 2015 7:56 AM To: alexwei...@alexweiner.com,bug-apl@gnu

[Bug-apl] related to ⎕QS

2015-09-16 Thread alexweiner
Hi Bug-APL, (sorry if this is too unrelated to GNU APL)GET variables sent from a form in a browser end up in ⎕QSWhere would a POST go to?What I mean is (for comparison): I know PHP lets you move the files over to the server and it names them with some weird ID as the file name, and then you can ren

Re: [Bug-apl] chunk length specified across bytes

2015-09-08 Thread alexweiner
The result of FIO∆fread FIO∆fopen_ro filenamewill return a vector of values, where each number is a byte. Many different file format specifications specify a size within the file that may be a head size, a chunk size, etc. Is the correct way to interpret a number that spans many bytes (in this case

[Bug-apl] chunk length specified across bytes

2015-09-08 Thread alexweiner
Hi Bug APL,The PNG spec says that the length of a "chunk" (their term, not mine) is specified in the first four bytes of the file. When I read it in, the first four values are :0 0 32 0and the length is almost certainly not 32. A smaller chunk that was 4 had its first four bytes as:0 0 0 4What is t

Re: [Bug-apl] ⎕UCS

2015-09-08 Thread alexweiner
Elias, thanks for the hex/decimal explanation. That is what was confusing me. I was seeing CHARACTER TABULATION WITH JUSTIFICATION not the PER MILLE SIGN, but I can see how you got that from my explanation. -Alex Original Message Subject: Re: [Bug-apl] ⎕UCS From: Elias_Mårtenson

[Bug-apl] ⎕UCS

2015-09-08 Thread alexweiner
Hi Bug APL,The spec for PNG says that the first byte for a PNG image has a value of 89.When I read in a PNG, and I check the first value it is 137. When I ⎕ucs that, I get ‰I tried copy and pasting, but it does not look like it displays in my mail clientAnyways it looks like a square box with "

Re: [Bug-apl] XML to APL

2015-08-30 Thread alexweiner
Elias, Apology accepted. In any case, a complex solution is better than none at all, and very much appreciated. If anything, doing one will make it easier for me to make a second. Challenge accepted.-Alex Original Message Subject: Re: [Bug-apl] XML to APL From: Elias_Mårtenson <

Re: [Bug-apl] XML to APL

2015-08-30 Thread alexweiner
forgot to cc the list.  Original Message Subject: RE: [Bug-apl] XML to APL From: Date: Sun, August 30, 2015 11:28 am To: "Elias_Mårtenson" In that case, I'll attempt to use xerces. I say "attempt" because I get to the multiplexer

Re: [Bug-apl] XML to APL

2015-08-28 Thread alexweiner
Elias, I was informed that xerces is not GNU compatible. I was pointed to a lib that is GNU friendly (its name escapes me at the moment). I will try to wrap that one. -Alex Original Message Subject: Re: [Bug-apl] XML to APL From: Elias Mårtenson Date: Aug 28, 2015 2:47 AM To:

Re: [Bug-apl] XML to APL

2015-08-27 Thread alexweiner
Can you suggest an XML parser library for me to take a peek at? Original Message Subject: Re: [Bug-apl] XML to APL From: Elias Mårtenson Date: Aug 28, 2015 12:15 AM To: alexwei...@alexweiner.com CC: "bug-apl@gnu.org" I have been considering writing an API that connects GNU APL

[Bug-apl] XML to APL

2015-08-27 Thread alexweiner
Hi Bug APL,I wrote a piece of code that will take a text vector of XML and return a nested data thing.It is still pretty fragile, and still under development (but I think that is a given). Can the link be added to the community page? If anyone wants to work with what I have, and write getters and s

[Bug-apl] A better way to insert characters into a character vector?

2015-08-27 Thread alexweiner
Hi Bug APL,I find that I frequently will do this:      a←'alex'      a[3]←⊂'www'Which results in this:      a┌→─┐│al ┌→──┐ x││   │www│  ││   └───┘  │└∊─┘And then I will do this, because I want a character vector:      a←⊃,/a      aalwwwxSo I guess more simply put. Is there a way to

Re: [Bug-apl] APL Under-bar Characters

2015-08-16 Thread alexweiner
Bug APL,After much discussion with The Unicode Consortium Mailing List,Can we use this to give the characters unique names? It seems that they will never be given a new code point:http://www.unicode.org/Public/UCD/latest/ucd/NamedSequences.txt  Then maybe we could work off that as a pseudo-standard

[Bug-apl] Dealing with under-bar characters, from the Unicode mailing list

2015-08-16 Thread alexweiner
ubject: Re: APL Under-bar Characters From: Khaled Hosny  Date: Sun, August 16, 2015 9:53 am To: alexweiner Cc: unic...@unicode.org On Sun, Aug 16, 2015 at 09:31:25AM -0700, alexweiner wrote: > Khaled, > Thank you for the link. The normalization methods were already discussed, > specifica

Re: [Bug-apl] Back to underline

2015-08-16 Thread alexweiner
I sent a note to the Unicode Mailing list to see if there is any feasible way to get atomic upper-case under-bar letters. I imagine if that is done, it might solve some problems that we are facing. It looks like that list is moderated, and I was sent this message:Your mail to 'Unicode' with the sub

[Bug-apl] inner product behaviour?

2015-08-15 Thread alexweiner
Hi Bug APL,Does the inner product coerce a vector to a matrix only when (⍴right arg vector)≤ left arg number of columns (when it is a matrix)?      rotatemat←{2 2 ⍴ (2○⍵)(-1○⍵)(1○⍵)(2○⍵)}      rm←rotatmat 3VALUE ERROR      rm←rotatmat 3         ^      rm←rotatemat 3      rm¯0.9899924966 ¯0.14112000

[Bug-apl] Assigning to Unicode characters?

2015-08-04 Thread alexweiner
Hi Bug APL,      ሴ←5+5 Unknown APL character: ሴ (U+1234)Non-APL characterAre only letters in ⎕AV supported? Is there a way to either allow assignment to Unicode characters, or define a different ⎕AV (or the equivalent of adding characters to ⎕AV)?-Alex

[Bug-apl] What do Quad-slash and Quad-Backslash do?

2015-07-19 Thread alexweiner
Hi Bug APL,I found a paper that computes eigenvalues using the following equationeig←{t[;⍒(t←⍂⍵)[0;]]} where ⍵ is a matrix of coefficients.It looks like the symbols are in the unicode standard, but I have never seen a definition before:⍁U+2341⌼APL Functional Symbol Quad Slash⍂U+2342⍂APL Functional

Re: [Bug-apl] ,[2]/Matrix returns a syntax error

2015-07-16 Thread alexweiner
Juergen, thank you for the workaround. it appears that Dyalog APL also supports ,[2]/A A Original Message Subject: Re: [Bug-apl] ,[2]/Matrix returns a syntax error From: Juergen Sauermann Date: Jul 16, 2015 6:38 AM To: alexwei...@alexweiner.com,bug-apl@gnu.org CC: Hi Alex,

[Bug-apl] Seg fault on dyadic domino for large floating point vectors

2015-07-15 Thread alexweiner
Hi Bug APL,I cut to the chase:      A←5000⍴1000.1234321      A⌹ASegmentation faultSVN647-Alex

[Bug-apl] ,[2]/Matrix returns a syntax error

2015-07-15 Thread alexweiner
Hi Bug APL,I am willing to admit that my syntax is actually incorrect,and would appreciate any help in that sense, but ,/Matrix works:      A1 2 1 2 12 1 2 1 21 2 1 2 12 1 2 1 21 2 1 2 1      A,A1 2 1 2 1 1 2 1 2 12 1 2 1 2 2 1 2 1 21 2 1 2 1 1 2 1 2 12 1 2 1 2 2 1 2 1 21 2 1 2 1 1 2 1 2 1      A,[

[Bug-apl] null as index does not extend to matrix

2015-07-13 Thread alexweiner
Hi Bug APL,The vector A can do index assignment when the index is a null:      A←⍳3      A1 2 3      A[0↑2 3]←0      A1 2 3The matrix B does the same thing, only when both (for 2-D) indices in the matrix are null:      B←3 3 ⍴⍳3            B1 2 31 2 31 2 3      B[0↑1 2;0↑2 3]←0      B1 2 31 2 31 2

[Bug-apl] line label branching style

2015-07-13 Thread alexweiner
Hi Bug APL,I found some very old code that uses two different styles to branch. Does anyone know why someone would use one over the other?→(I=M)/L270→L260×⍳M≥J←J+1On a slightly different note, the author seemed to be using an APL that would coerce a numeric matrix of size 1 × 1 to a vector/scalar s

Re: [Bug-apl] Submission for GNU APL Bits_and_Pieces directory

2015-06-29 Thread alexweiner
xxx.apl ⍝ ⍝ Author: Alex Weiner ⍝ Date:June 27, 2015 ⍝ Copyright: Copyright (C) 2015 by AlexWeiner ⍝ License: LGPL see http://www.gnu.org/licenses/gpl-3.0.en.html ⍝ email: alexwei...@alexweiner.com ⍝ Portability: L3 ⍝ ⍝ Purpose: ⍝ Read in a text file, with a give

[Bug-apl] Submission for GNU APL Bits_and_Pieces directory

2015-06-27 Thread alexweiner
AlexWeiner ⍝ License: LGPL see http://www.gnu.org/licenses/gpl-3.0.en.html ⍝ email: alexwei...@alexweiner.com ⍝ Portability: L3 ⍝ ⍝ Purpose: ⍝ Read in a text file that space seperated records and parse it into a n×m size matrix ⍝ only supports two columns right now ⍝ Description: ⍝ Matrix

[Bug-apl] wslib5 APLComponentFiles minor spelling error in CF_README.txt

2015-06-25 Thread alexweiner
Hi bug-apl,In wslib5/APLComponentFiles/CF_README.txt has a reference to a function called CF_DISCONNECT which does not exist. The function in the library that disconnects appears to be called CF_DBDISCONNECT .-Alex

Re: [Bug-apl] segmentation fault in svn 639

2015-06-20 Thread alexweiner
I think the problem is incorrect parsing. Note that there is no space between between the 'x' and the first '5'. you can also get a segfault if you use ⎕nc and a similar syntax. Its weird because ⎕nc5 and ⎕ex5 result in Domain errors as expected. It looks like the stack trace for both these functio

[Bug-apl] segmentation fault in svn 639

2015-06-19 Thread alexweiner
Type this line:      ⎕ex5 5 ⍴ '3 3   'and then this segmentation error happens:SEGMENTATION FAULT-- Stack trace at main.cc:630x7f78c4e6aead __libc_start_main0x454215  

[Bug-apl] CF_APPEND and CGI problem

2015-06-19 Thread alexweiner
Hi bug-apl,Is there something weird about how I'm using CF_APPEND? I'm having trouble tracking down the error because it only appears when run as a cgi script, as opposed to directly called at the command line. This script works, and sucessfully loads the page, but I recieve an 'Internal Server Err

Re: [Bug-apl] How do you use HTML∆TX_B_E

2015-06-10 Thread alexweiner
Hi Christian,Unfortunately, the code seems to not care about this fact as a single empty vector is still problematic. It has no troubles with two empty vectors though:            button←'BUTTON' HTML∆TX_B_E[⊃,/b∆attr1 b∆attr2 b∆attr3] ""  *** Assertio

[Bug-apl] How do you use HTML∆TX_B_E

2015-06-10 Thread alexweiner
Hi bug-apl,Im not even sure if I am using it right but it seems that HTML∆TX_B_E wants a nested vector as it's right argument. This works:b∆attr1←'name'HTML∆attr'submitButton'b∆attr2←'type'HTML∆attr'submit'b∆attr3←'value'HTML∆attr'SUBMIT!'     ⊃,/'BUTTON' HTML∆TX_B_E[⊃,/b∆attr1 b∆attr2 b∆attr3] ''

Re: [Bug-apl] component file creation?

2015-06-06 Thread alexweiner
Blake, Thank you. That works. Is there a particular reason that no period is allowed? In iso-apl-cf there is a note in it's README that says "A component file must be named with a `.cf` extension;" Original Message Subject: Re: [Bug-apl] component file creation? From: Blake McBr

[Bug-apl] component file creation?

2015-06-05 Thread alexweiner
Hi bug-apl,I'm not familiar enough with sqlite (or databases in general for that matter).Am I doing something wrong in creating a component file, following these steps? I am not sure what "CREATE TABLE ERROR" means in this context.)COPY /usr/local/lib/apl/wslib5/APLComponentFiles/ComponentFiles.apl

[Bug-apl] HTML∆Assert Value Error

2015-05-21 Thread alexweiner
Hi bug-apl, Is there any reason HTML∆attr does not like single characters? I would assume that 'left' HTML∆attr 'a ' would return left="a" Instead it prints: *** Assertion (sert 1 ≡ ≡xB) failed at HTML∆attr[2] ≡ xB: 0┏━┓ ⍴⍴ xB: 0┃a┃ ⍴ xB:

[Bug-apl] Some CGI example scripts

2015-05-21 Thread alexweiner
Hi Bug bug-apl, I wrote up some examples of CGI in gnuapl, in case anyone needs some help getting started. (When called as a CGI script) This one makes an html file that contains a form with some fields and a submit button https://github.com/alexcweiner/AWPL/blob/master/cgindex.apl (When ca

Re: [Bug-apl] something is wrong with 4⎕cr

2015-05-06 Thread alexweiner
Hi Jürgen, Thank you for that instruction. That seemed to 'fix' my problem (I now get a rank error like you). - Original Message - Subject: Re: [Bug-apl] something is wrong with 4⎕cr From: "Juergen Sauermann" Date: 5/5/15 3:21 am To: alexwei...@alexweiner.com, bug-apl@gnu.o

[Bug-apl] something is wrong with 4⎕cr

2015-05-04 Thread alexweiner
Hi bug-apl, Check out this example. Without 4 ⎕cr I recieve a syntax error, as expected, but when I try to display the output using 4⎕cr , I recive a stack trace (the previous comma is grammatical, not APL-al). I hae not tried with other values of ⎕cr : .⊃¨+/¨5 5 ⍴⍳5 SYNTAX ERROR .⊃¨+/¨5 5⍴⍳5

[Bug-apl] configuring gnuapl with sqlite3

2015-04-25 Thread alexweiner
Hi bug-apl, I don't know why sqlite3 is not being found. In the following lines, 'buildapl' is a script that does ./configure ; make ; make install. The file 'buildapl.runlog' is recording the both standard out and standard error. Im not sure if this would also be a reason, but I am using bas

[Bug-apl] Why is there a stack trace when I caused a length error?

2015-04-14 Thread alexweiner
Hi bug-apl, I'm not sure if this is a error, or if I somehow configured a setting to do this (which I doubt happened). I was not booted out from APL. (⊂(⍳⍴f)-1)+¨f *** Attempt to start a new joblist at ScalarFunction.cc:426 while joblist from ScalarFunction.cc:426 is not finished -

[Bug-apl] Hi. I encountered a segmentation fault

2015-04-11 Thread alexweiner
Hi. This causes a segmentation: First these are just to describe what 'in' is: ≡in 3 ⍴⍴in 2 ⍴in 243 243 The following line causes subsequent Segmentation fault. Let me know if I need to provide more detail. out←⊃⍪/,/in LENGTH ERROR out←⊃⍪/,/in ^ ^ ===