Re: [Bug-apl] APL REPL & pager

2019-06-21 Thread Rowan Cannaday
I think that'll work, thanks. On Fri, Jun 21, 2019 at 11:30 AM Dr. Jürgen Sauermann < mail@jürgen-sauermann.de> wrote: > Hi Rowan, > > ⎕PW ? > > Not exactly sure what you are after. > > Jürgen > > > On 6/21/19 5:27 PM, Rowan Cannaday wrote: > > Hello y'all, > > > > Is there a simple way to either

Re: [Bug-apl] APL REPL & pager

2019-06-21 Thread Dr . Jürgen Sauermann
Hi Rowan, ⎕PW ? Not exactly sure what you are after. Jürgen On 6/21/19 5:27 PM, Rowan Cannaday wrote: > Hello y'all, > > Is there a simple way to either increase or eliminate the wrap width > in the REPL? > > In vim this would be :set nowrap and using a pager would be `less -S`. > > I have som

Re: [Bug-apl] #!apl

2018-08-24 Thread Juergen Sauermann
Hi, your example looks like you are not waiting until ⎕SVO has succeeded. You assign to a shared variable before it was entered into the shared variable database. Have a look at testcases/AP100.tc for how to use it (hint: check the

Re: [Bug-apl] #!apl

2018-08-23 Thread Hudson Flavio Meneses Lacerda
Hi. Thank all you for the inputs. My remarks about #!apl go below, after reporting a problem. PS.: Jürgen: can you use AP100 from scripts? Example: #!/usr/local/bin/apl --SV -q -f 100⎕SVO'SO' SO ← 'date' )off On my machine, usually I get this: ««« Svar_record_P() failed at ../Svar_DB.cc:324

Re: [Bug-apl] #!apl

2018-08-22 Thread Juergen Sauermann
Hi Kacper, I have not documented the aplscript trick because I see it more as a hack that helps in a specific situation than a fully supported feature. A general problem of symbolic links to the apl binary (which was the use case for introducing the

Re: [Bug-apl] #!apl

2018-08-21 Thread Kacper Gutowski
On Tue, Aug 21, 2018 at 04:54:52PM -0300, Hudson Flavio Meneses Lacerda wrote: > I presume it works because apl binary is generated inside that directory > (apl-1.7/src/), and "." is in your $PATH. So, "#!apl" calls > "./apl" inside apl-1.7/src/. That is the case, #!apl will work only when called

Re: [Bug-apl] #!apl

2018-08-21 Thread Hudson Flavio Meneses Lacerda
On Tue, 21 Aug 2018 20:51:59 +0200 Juergen Sauermann wrote: > Hi, > > it works on my box: Hi, I presume it works because apl binary is generated inside that directory (apl-1.7/src/), and "." is in your $PATH. So, "#!apl" calls "./apl" inside apl-1.7/src/. > > eedjsa@server66:~/projects/juerg

Re: [Bug-apl] #!apl

2018-08-21 Thread Juergen Sauermann
Hi, it works on my box: eedjsa@server66:~/projects/juergen/apl-1.7/src$ cat test.apl #!apl --script "APL script started" )OFF eedjsa@server66:~/projects/juergen/apl-1.7/src$ chmod 755 test.ap

Re: [Bug-apl] #!apl

2018-08-21 Thread Hudson Flavio Meneses Lacerda
On Tue, 21 Aug 2018 18:36:27 +0200 Juergen Sauermann wrote: > Hi Hudson, > Hi, > aas far as I know you can use a relative path to apl as long as the > apl binary is in your $PATH. Thus '#!apl --script' probably works > regardless of whether apl is installed in /usr/loccal/bin or > in /user/bin

Re: [Bug-apl] #!apl

2018-08-21 Thread Juergen Sauermann
Hi Hudson, aas far as I know you can use a relative path to apl as long as the apl binary is in your $PATH. Thus '#!apl --script' probably works regardless of whether apl is installed in /usr/loccal/bin or in /user/bin. However, m

Re: [Bug-apl] #!apl

2018-08-21 Thread enztec
Hi He might want to have both the deb and the svn on the same system On Tue, 21 Aug 2018 11:14:30 +0200 Juergen Sauermann wrote: > Hi Hudson, > > you can ./configure GNU APL with prefix=/usr and then recompile and install. > > /// Jürgen > > > On 08/21/2018 03:34 AM, Hudson Flavio Meneses

Re: [Bug-apl] #!apl

2018-08-21 Thread Hudson Flavio Meneses Lacerda
Hi Jürgen, Indeed, for my own local computer, I could install apl in /usr. However, I also use third-part computers as restricted user ($), with apl installed in a different path (under ~/). Here is my new approach (trying to avoid side effects): ---8<-- #!/bin/

Re: [Bug-apl] #!apl

2018-08-21 Thread enztec
Hi I assume this Debian of which you speak is a linux distro of some sort? Use a link from the svn installed location /usr/local/bin/apl location to the location you have in your scripts /usr/bin/apl (from debian deb location) ln -sf /usr/local/bin/apl /usr/bin/apl then you don't have

Re: [Bug-apl] #!apl

2018-08-21 Thread Juergen Sauermann
Hi Hudson, you can ./configure GNU APL with prefix=/usr and then recompile and install. /// Jürgen On 08/21/2018 03:34 AM, Hudson Flavio Meneses Lacerda wrote: Hi. Some of my scripts use `#!/usr/bin/apl --script

Re: [Bug-apl] apl -v?

2017-08-20 Thread David B. Lamkins
Thank you. On Sun, Aug 20, 2017 at 11:30:40AM +0200, Juergen Sauermann wrote: > Hi David, > > yes, thanks. Should be fixed in SVN 1000. > > /// Jörgen > > > On 08/19/2017 06:50 PM, David B. Lamkins wrote: > > Just wondering... > > > > > When I do > > $ apl -v > > the >

Re: [Bug-apl] apl -v?

2017-08-20 Thread Juergen Sauermann
Hi David, yes, thanks. Should be fixed in SVN 1000. /// Jörgen On 08/19/2017 06:50 PM, David B. Lamkins wrote: Just wondering... When I do $ apl -v the config.status: line has always shown unknown configure options

Re: [Bug-apl] apl 1.7 Symbol.cc compile bug

2017-03-19 Thread Juergen Sauermann
Hi Carl, thanks. Fixed in SVN 908. /// Jürgen On 03/19/2017 03:36 AM, carl hansen wrote: g++ -DHAVE_CONFIG_H -I. -I..    -Werror -Wall -I sql -I/usr/include -I/usr/include/postgresql  -rdynamic -

Re: [Bug-apl] APL )DUMP/)LOAD bug - Nested Arrays...

2016-11-15 Thread Juergen Sauermann
Hi Martin, thanks, fixed in SVN 809. /// Jürgen On 11/15/2016 12:09 AM, Martin R. Bartels wrote: Jürgen, I looked through the bugs - I don't know beyond doubt that this is new, but F

Re: [Bug-apl] APL Image Utilities

2016-09-19 Thread Alex Weiner
Hi Jürgen, I would like it to be a community page entry with a link, since I think this will allow for easier additions to the project. (At least easier for me.) I also welcome all to comment, criticize, and question my coding style. :) Best, -Alex On 09/19/2016 06:30 AM, Juergen Sauerma

Re: [Bug-apl] APL Image Utilities

2016-09-19 Thread Juergen Sauermann
Hi Alex, yes, we can! You should think about whether you want a community page entry (which would then be a link to your git repository) or a HTML workspace file in the "Bits and Pieces" directory (which  can then be cut-and-pasted direct

Re: [Bug-apl] apl computer

2016-08-27 Thread Elias Mårtenson
This is a subject that has interested me a lot, and after coming to a similar conclusion as Jürgen, decided to see if it was possible to get around many of the problems by eliminating the main cause of bad parallelism: Side effects. I have been working an experimental APL interpreter (mostly doing

Re: [Bug-apl] apl computer

2016-08-27 Thread Juergen Sauermann
Hi Xtian, the problem with that example is that SolveSuduku and even the lambda {SolveSudoku ⍵} are defined functions and therefore allowed to have side effects. These side effects need to be taken care of and that causes either a considerable synchron

Re: [Bug-apl] apl computer

2016-08-26 Thread Christian Robert
Well I saw a couple times where parallelism could have been very useful. Something like: {SolveSudoku ⍵}⍤2 ⊣ Cube_of_9x9x1000_sudoku {SolveSudoku ⍵}¨ big_array_of_enclosed_9x9_sudoku but I don't want ⍤ (rank operator) or ¨ (foreach) operators doing parallelism per default, so I tho

Re: [Bug-apl] apl computer

2016-08-26 Thread Xiao-Yong Jin
Of course. Simple scalar functions would be the worst to parallelize. We always need a large amount of operations per thread to be worthwhile. Something like the following might be a good thing to start ⌹⍤2 X where (LargeNumber = ×/¯2↓⍴X) ∧ 2<⍴⍴X To support general function instead of builtins

Re: [Bug-apl] apl computer

2016-08-26 Thread Juergen Sauermann
Hi, maybe, maybe not. Our earlier measurements on an 80-core machine indicated that the way how the cores connect to the memories seems to determine the parallel performance that can be achieved in GNU APL. One can easily prove tha

Re: [Bug-apl] apl computer

2016-08-26 Thread Xiao-Yong Jin
> On Aug 26, 2016, at 1:12 PM, enz...@gmx.com wrote: > > finally a computer just perfect for gnuapl > > http://thehackernews.com/2016/08/powerful-multicore-processor.html Now is the perfect time to invest your time and effort in improving parallel efficiency in gnu-apl.

Re: [Bug-apl] APL & AKT in xterm

2016-08-03 Thread Blake McBride
Solved the problem. Thanks!! On Wed, Aug 3, 2016 at 7:38 PM, Kacper Gutowski wrote: > On Wed, Aug 03, 2016 at 07:09:38PM -0500, Blake McBride wrote: > > APL with AKT works great. But now I need to use it in an xterm. Doesn't > > seem to work there. Any suggestions would be greatly appreciate

Re: [Bug-apl] APL & AKT in xterm

2016-08-03 Thread Kacper Gutowski
On Wed, Aug 03, 2016 at 07:09:38PM -0500, Blake McBride wrote: > APL with AKT works great. But now I need to use it in an xterm. Doesn't > seem to work there. Any suggestions would be greatly appreciated. You need to set metaSendsEscape. It can be configured in X resource or switched in run ti

Re: [Bug-apl] apl symbols from a file

2016-02-14 Thread Elias Mårtenson
The wc command shows the number of bytes by default. If you want to count characters you need to use the flag -m. As documented in the manual page: -c, --bytes print the byte counts -m, --chars print the character counts Regards, Elias On 15 February

Re: [Bug-apl] apl symbols from a file

2016-02-14 Thread Kacper Gutowski
On Mon, Feb 15, 2016 at 12:08 AM, wrote: > 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 "⍝" > txt > a@a:~/aplstuff$ cat txt > ⍝ > a@

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

2015-11-02 Thread Juergen Sauermann
Hi Alex, thanks, fixed in SVN 689. /// Jürgen On 10/31/2015 05:44 PM, alexwei...@alexweiner.com wrote: Hi Bug-apl, Usually I only see C++ errors in the interpreter when there is a

Re: [Bug-apl] APL Questions

2015-09-16 Thread Blake McBride
On Mon, Sep 14, 2015 at 7:53 AM, Elias Mårtenson wrote: > > > On 14 September 2015 at 05:53, Louis de Forcrand wrote: > > >> Edit a specific line in a function? As of now I'm writing my >> long ∇-declared functions in in .txt files and loading them >> with -f, otherwise I would have to rewrite (

Re: [Bug-apl] APL Questions

2015-09-15 Thread Louis de Forcrand
Thanks for all your answers! Everything works perfectly. -Louis

Re: [Bug-apl] APL Questions

2015-09-14 Thread Kacper Gutowski
By the way, if you start your file with ⍝! or #!, then you will be able to )LOAD or )COPY changes into running session which might be fairly convenient if you prefer to use external editor (which you certainly are; line editors fell out of fashion many years ago) and prefer it not to be Emacs. Fol

Re: [Bug-apl] APL Questions

2015-09-14 Thread Kacper Gutowski
On Sun, Sep 13, 2015 at 11:53 PM, Louis de Forcrand wrote: > Is it possible to terminate a function while it's running > (eg. when you accidentally set a very large number > as an operand)? Pressing Control-C should signal ATTENTION which should suspend execution of current function. > I read a

Re: [Bug-apl] APL Questions

2015-09-14 Thread Elias Mårtenson
On 14 September 2015 at 05:53, Louis de Forcrand wrote: > Edit a specific line in a function? As of now I'm writing my > long ∇-declared functions in in .txt files and loading them > with -f, otherwise I would have to rewrite (or copy-paste) > them back in line by line in the terminal. I'd rec

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

Re: [Bug-apl] APL give a "SEGMENTATION FAULT"

2015-04-28 Thread Juergen Sauermann
Hi Christian, thanks, fixed in SVN 617. The problem was caused by a -∞ result from ⍟. There could still be some functions around that return ∞. Such functions should raise a DOMAIN ERROR instead. Please report such functions if you see them.

Re: [Bug-apl] APL Package Manager -- 2nd Release

2015-04-02 Thread Juergen Sauermann
Hi David, thanks a lot! /// Jürgen On 04/01/2015 10:15 PM, David B. Lamkins wrote: I've released the 2nd version of the APL Package Manager. home page: https://github.com/TieDyedDevil/apl-pkg summary announcement:

Re: [Bug-apl] APL Keybord support files

2015-02-16 Thread Juergen Sauermann
Hi Dirk, thanks a lot. I have added directory support-files/Dirk containing your files, and a reference in README-3-keyboard. /// Jürgen On 02/16/2015 10:09 AM, Dirk Laurie wrote: Hi Jürgen: I append five

Re: [Bug-apl] APL fill elements

2014-08-10 Thread Peter Teeson
Yes thanks I understand. My Foo function used out of bounds fill elements internally to be able to manipulate rectangular arrays of generated indices which are of course ⎕IO dependant. The return result of Foo had removed them. I will not do so and my problem will disappear. thanks again and r

Re: [Bug-apl] APL fill elements

2014-08-10 Thread Juergen Sauermann
Hi Peter, no there isn't. Fill items and Fill functions occur all over the place in APL2. And they are function specific so that ↑ has other fill items (' ' and 0) than + (0) and × (1). On the other hand fill items are not at all related ⎕IO. You can easily achieve what you are after like thi

Re: [Bug-apl] APL code indentation

2014-05-27 Thread Elias Mårtenson
I'd like to follow up a little on my previous email. The documentation for 'tab-always-indent' says this: *This variable can be used to customize the behavior of the (indent-for-tab-command) command. If the value is t (the default), the command normally just indents the current line. If the value

Re: [Bug-apl] APL code indentation

2014-05-27 Thread Elias Mårtenson
You can use both. Just map TAM to normal tab insertion, and map a different key to 'completion-at-point '. What probably messes things up for you is that my implementation of the indentation function only works

Re: [Bug-apl] APL code indentation

2014-05-27 Thread Blake McBride
When you edit an existing function, it would be nice if the initial display of the function had the indentation applied. The enter key working for me - sort of. It indents EVERY line by one character. When I hit Enter at the end of the line, shouldn't it fix the line? When editing a new functio

Re: [Bug-apl] APL code indentation

2014-05-27 Thread Elias Mårtenson
You are supposed to press TAB to indent. There is also electric indentation, which I normally have disabled, but it will automatically indent when you press RET. Regards, Elias On 27 May 2014 18:03, Blake McBride wrote: > Greetings, > > I looked at the comments in your function. Not only are

Re: [Bug-apl] APL code indentation

2014-05-27 Thread Blake McBride
Greetings, I looked at the comments in your function. Not only are labels typically moved one character to the left, but lines beginning with a comment are too. I did a git pull. When I edit a function, there is no indenting added at all. Am I doing something wrong, or is there some other plac

Re: [Bug-apl] APL Package Manager - tutorial available

2014-05-16 Thread David B. Lamkins
I've also added a roadmap to show the order in which new features will be available. Again: comments are invited. On Fri, 2014-05-16 at 14:47 -0700, David B. Lamkins wrote: > In preparation for a beta release of the package manager, I've created a > tutorial. I hope you find it useful. Comments an

Re: [Bug-apl] APL and text editors- some initial thoughts

2014-04-29 Thread Juergen Sauermann
Hi Peter, good question, I'm really happy to explain it. GNU APL is almost completely Doxygen documented. Almost conmpletely means that new functions take a while before I update the Doxygen documentation (it makes little sense to do that while functions come and go). Doxygen is a terrific t

Re: [Bug-apl] APL and text editors- some initial thoughts

2014-04-28 Thread Juergen Sauermann
Hi Peter, the current line editor of GNU APL is in Nabla.cc. It is pretty simple. The editor gets its line input from Input::get_user_line_nabla(). My concern with [a?b] is this: currently we print a prompt and then get a user line from either readline or from the operating system (in cooked m

Re: [Bug-apl] APL and text editors- some initial thoughts

2014-04-28 Thread Elias Mårtenson
Peter, The Emacs mode is much more than a simple way of editing functions in an editor. The intention is to transform the standalone GNU APL interpreter into some kind of IDE in a similar way as SLIME does for Common Lisp. The Emacs mode backend provides similar functionality as the Swank backend

Re: [Bug-apl] APL and text editors- some initial thoughts

2014-04-28 Thread Peter Teeson
Hi Elias: Firstly I am totally agnostic as to which text editor should be used. I don't even understand why there should be an Emacs mode. But since you said it's actually generic maybe we can change it's name to more clearly reflect its generic nature? External Editor Mode? Just a fleeting th

Re: [Bug-apl] apl-cf (Component Files for GNU APL) on Github

2014-04-22 Thread Blake McBride
Thanks! Really appreciate it! --blake On Tue, Apr 22, 2014 at 6:53 PM, David B. Lamkins wrote: > I've pushed apl-cf to Github. > > The only change (since the last tarball posted to bug-apl) is the > addition of a README.md file. > > https://github.com/TieDyedDevil/apl-cf > > > > >

Re: [Bug-apl] APL SQLite not compilable (missing file)

2014-04-18 Thread David B. Lamkins
Ah. Thank you. On Fri, 2014-04-18 at 05:36 -0500, Blake McBride wrote: > Inside apl-sqlite/Makefile you must set APL_DIST to point to where > gnu-apl is. If you set that to the root directory og the gnu-apl > souce code it'll build just fine. The missing file you see is part of > gnu-apl. > >

Re: [Bug-apl] APL SQLite not compilable (missing file)

2014-04-18 Thread Blake McBride
Inside apl-sqlite/Makefile you must set APL_DIST to point to where gnu-apl is. If you set that to the root directory og the gnu-apl souce code it'll build just fine. The missing file you see is part of gnu-apl. Blake On Thu, Apr 17, 2014 at 1:25 PM, David B. Lamkins wrote: > $ git clone https

Re: [Bug-apl] APL IDE's and error reporting

2014-04-17 Thread David B. Lamkins
On Thu, 2014-04-17 at 12:45 +0800, Elias Mårtenson wrote: > Since the SQL more uses )MORE error reporting for all the details, I'm > finding myself writing )MORE quite a lot. This led me to think about > better ways to display this information in Emacs. > > > How does other APL development enviro

Re: [Bug-apl] APL line editor: working version

2014-02-25 Thread baruchel
Juergen Sauermann wrote: > could be a cool thing. One thing that I am missing is a bit > more information of what it exactly does and how it should > integrate with GNU APL (for example). I finally made it work very smoothly with GNU APL by using the LD_PRELOAD mechanism. A comilable and usable v

Re: [Bug-apl] APL line editor: proof of concept (c code)

2014-02-25 Thread Juergen Sauermann
Hi Thomas, could be a cool thing. One thing that I am missing is a bit more information of what it exactly does and how it should integrate with GNU APL (for example). Currently I am trying to keep keyboard input and fonts out of GNU APL as much as possible. The reason is that different platform

Re: [Bug-apl] APL line editor: proof of concept (c code)

2014-02-23 Thread baruchel
Hi, I created a repository on Github. I also created an animation. Please, have a look at https://github.com/baruchel/APLedit (then click on apledit.gif and then probably on "raw" in order to have it in a larger size). Please, have a look at this animation and tell me what you think of the idea.