[Bug-apl] Proposal for initial multicore support

2014-03-09 Thread David B. Lamkins
This weekend I spent a few hours poking around in the GNU APL source code while thinking about what it might take to exploit a multicore CPU. I've collected my thoughts on what it might take to do an initial implementation (see attached). Juergen (and anyone else who has worked in the code base),

Re: [Bug-apl] svn update conflicts on *.gmo files

2014-03-09 Thread David B. Lamkins
Thanks, Juergen. I wasn't aware of that option. On Sun, 2014-03-09 at 11:58 +0100, Juergen Sauermann wrote: > Hi David, > > you could try: > > svn update --accept theirs-full > > Unfortunately the gmo files are put into the repository even though they > are generated. > The Makefile doing

[Bug-apl] Ideas for an online demo-version of GNU APl

2014-03-09 Thread baruchel
Hi, it is well known that Dyalog APL and NGN APL both have an online demo version which is a very nice feature: * for trying some quick idea when not at home; * for letting other people discover GNU APL; * for providing some kind of "permanent link" in forums, etc. (for instance on "golf

Re: [Bug-apl] Rank operator and function assignment

2014-03-09 Thread Kacper Gutowski
On 2014-03-09 13:36:11, Juergen Sauermann wrote: > Not sure though how this is related to how the rank operator is computed. Related to how it is parsed, because in NARS2000 there is no difference for operator's syntax whether its operands are functions or some other values. Functions might not b

Re: [Bug-apl] Common IO operations

2014-03-09 Thread Juergen Sauermann
Hi Elias, sounds like a case for FILE_IO and partition: 1. get a line with fgets() in FILE_IO 2. call partition (dyadic ⊂) For example (FILE_IO part omitted): TEXT←"Hello,World,xyz" (TEXT≠",")⊂TEXT Hello World xyz ⍴(TEXT≠",")⊂TEXT 3 ⊃((TEXT≠",")⊂TEXT)[1] Hello ⊃((TEXT≠",")⊂TEXT)[2] World ⊃((

[Bug-apl] Assertion error when typing ()

2014-03-09 Thread Elias Mårtenson
After some playing around, I just decided to type an opening and closing paren: *()* I then got the following error (trying again after restarting will not reproduce the error): Assertion failed: 0 in Function: init in file: Cell.cc:47 Call stack: ---

[Bug-apl] Common IO operations

2014-03-09 Thread Elias Mårtenson
A common need that I have is to be able to easily read and write data from/to files. For me, this data is usually in CSV form. Up until now, I've loaded them into Emacs and used my tools to push the tabular data into variables. However, it would be nicer to have something native in GNU APL itself.

Re: [Bug-apl] Rank operator and function assignment

2014-03-09 Thread Juergen Sauermann
Hi, actually the example below works if you set the parentheses differently: {'foo', ⍵}⍤1 (4 5⍴⍳10) foo 1 2 3 4 5 foo 6 7 8 9 10 foo 1 2 3 4 5 foo 6 7 8 9 10 The reason why your example below does not work is that your parentheses force {'foo',⍵}⍤1 to be computed first (throwing the r

Re: [Bug-apl] Rank operator and function assignment

2014-03-09 Thread Juergen Sauermann
Hi Kacper, see some comments inline below. On 03/04/2014 10:52 PM, Kacper Gutowski wrote: On 2014-03-04 18:53:29, Juergen Sauermann wrote: They say that f ⍤y is a function which is then called with arguments B and possibly A. Thus Z is a value and not a function; the function is created inter

Re: [Bug-apl] svn update conflicts on *.gmo files

2014-03-09 Thread Juergen Sauermann
Hi David, you could try: svn update --accept theirs-full Unfortunately the gmo files are put into the repository even though they are generated. The Makefile doing this was installed by the NLS package and I don't know how to change it. Simply removing the .gmo files from the repo could