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

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

[Bug-apl] APL REPL & pager

2019-06-21 Thread Rowan Cannaday
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 some nested objects I inspect w/ ` 4 ⎕CR` but the wrap causes the lines to overflow and make it difficult to read. -

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

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/. > >

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

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

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,

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<--

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

[Bug-apl] #!apl

2018-08-20 Thread Hudson Flavio Meneses Lacerda
Hi. Some of my scripts use `#!/usr/bin/apl --script` (from Debian), but now I am using SVN, so I should use `#!/usr/local/bin/apl --script`. So, I need to change the scripts, that may be incompatible with different environments… I have tried: #!/usr/bin/env apl #!apl --script #!/usr/bin/apl

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

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

2016-11-15 Thread Martin R. Bartels
Jürgen, I looked through the bugs - I don't know beyond doubt that this is new, but FWIW, when attempting to create a "demo" nested array, it didn't survive the )DUMP/)LOAD round-trip. The statements below will recreate it (on gnu-apl 1.6): a←2 3⍴'ABCDEF' b←3 3⍴⍳9 c←○1

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

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

[Bug-apl] APL Image Utilities

2016-09-17 Thread Alex Weiner
Hi Bug-APL, Please enjoy this link to a library I wrote. It allows APLers to read images into the APL environment. The returned data structure is a three dimensional matrix, where each plane represents a sub-pixel. Additionally, you can take a 3×X×Y sized matrix and write it as a .bmp file.

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

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

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

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

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.

[Bug-apl] apl computer

2016-08-26 Thread enztec
finally a computer just perfect for gnuapl http://thehackernews.com/2016/08/powerful-multicore-processor.html

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

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

[Bug-apl] APL & AKT in xterm

2016-08-03 Thread Blake McBride
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. Thanks! Blake

[Bug-apl] APL Package Manager

2016-06-28 Thread David B. Lamkins
https://github.com/TieDyedDevil/apl-pkg Here's news for those of you interested in the APL Package Manager: Changes introduced by GNU APL svn r740+ broke the package manager due to my inadvertent use of some code that was not standard-compliant but still valid in GNU APL up through svn r739.

[Bug-apl] APL & neural networks...

2016-06-17 Thread Peter Teeson
Is anyone using modern APL for neural networks, specially deep learning networks….? Peter….

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 >

[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$

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

[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

[Bug-apl] APL Package Manager release 0.3 (Evey)

2015-10-06 Thread David B. Lamkins
https://github.com/TieDyedDevil/apl-pkg/releases Date:2015-10-06 Contact: [David B. Lamkins](mailto:da...@lamkins.net) Announcing the 3rd Release of APL Package Manager = The APL Package Manager is a tool to manage the development and

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

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
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

[Bug-apl] APL Questions

2015-09-14 Thread Louis de Forcrand
A few quick questions: Is it possible to terminate a function while it's running (eg. when you accidentally set a very large number as an operand)? Take user input in as a vector of characters so the user doesn't have to add quotes? Something that works like ⎕ but automatically wraps the input

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:

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

2015-04-01 Thread David B. Lamkins
I've released the 2nd version of the APL Package Manager. home page: https://github.com/TieDyedDevil/apl-pkg summary announcement: https://github.com/TieDyedDevil/apl-pkg/blob/master/doc/ANNOUNCE.md change list: https://github.com/TieDyedDevil/apl-pkg/blob/master/doc/CHANGES.md

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

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

[Bug-apl] APL code indentation

2014-05-27 Thread Elias Mårtenson
I've just implemented intelligent indentation support in gnu-apl-mode. I'm using quotes there because the rules are in fact very simple. Could you guys share with me how you indent code, so that I can add the necessary configuration options to support whatever style you're using? If anyone is

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

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

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-pointhttps://www.gnu.org/software/emacs/manual/html_node/elisp/Completion-in-Buffers.html '. 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 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 TAB (indent-for-tab-command) command. If the value is t (the default), the command normally just indents the current line. If the

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

2014-04-28 Thread Elias Mårtenson
Hello Peter, You might want to read up in the email archives on the discussions that led to the creation of the Emacs backend. It was done exactly because Jürgen did not want to maintain a special protocol used for things such as the Emacs mode. It's included in the base release because shipping

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

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 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

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

2014-04-22 Thread David B. Lamkins
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-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 dlamk...@gmail.comwrote: 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