Re: [Bug-apl] Potential performance optimisation tested

2014-02-15 Thread Elias Mårtenson
to optimizating Gnu APL sounds very reasonable to me. I hope it succeeds. May Conway's Game of Life go faster. :-) Fred On Sun, 2014-02-02 at 21:19 +0800, Elias Mårtenson wrote: I made a test implementation of a performance optimisation for GNU APL. The short story is that it seems to work

[Bug-apl] Unterminated strings does not result in error

2014-02-17 Thread Elias Mårtenson
If I type the following: *'foo* It is parsed as: *'foo'* Instead of giving an error. Is this expected behaviour? To me, it would make much more sense if this was flagged as a syntax error. Regards, Elias

[Bug-apl] Lambda functions are not loaded from a workspace

2014-02-18 Thread Elias Mårtenson
When loading a workspace that was previously saved using the )SAVE command, any functions defined using name←{...} are not loaded. The functions are there, as they can be seen in the XML file, but they are ignored when loading. Regards, Elias

[Bug-apl] Short pause of program

2014-02-19 Thread Elias Mårtenson
I've reached the point where I have been able to reproduce the famous Dyalog video where a guy builds a game of life and lets it animate by updating a watched variable, with one exception: I need a way to sleep for a short while (less than a second). Is there any facility in GNU APL that would

[Bug-apl] Getting list of quad-commands and system commands

2014-03-01 Thread Elias Mårtenson
I've recently added smart expansion of symbols in the Emacs mode (press TAB and get a list of suggested variable and function names). I'd like it to be able to expand system commands and quad commands as well. Of course, I could simply hard-code the list of available commands, but it would be

Re: [Bug-apl] [Feature request] ]boxing on analogue

2014-03-02 Thread Elias Mårtenson
Yay, an Emacs user. :-) I've been thinking of a feature that would display the result of the last interactive command in a separate buffer. Similar to the variable tracing that exists now, but for the return value of the last expression. One would have the ability to choose display format for

[Bug-apl] Nested function definitions not working

2014-03-03 Thread Elias Mårtenson
I tried to define a tohex function that accepts multiple values: {{'0123456789abcdef'[⎕IO+(4⍴16)⊤⍵]}¨⍵} This results in the following: *tohex ← {{'0123456789abcdef'[⎕IO+(4⍴16)⊤⍵]}¨⍵}* SYNTAX ERROR However, splitting it up in two functions works fine: *tohex1 ←

Re: [Bug-apl] Suggestions needed: Editing of named lambdas

2014-03-06 Thread Elias Mårtenson
I think treating the lambdas just like any function is perfectly normal, and is exactly what any function languages does. Now, functional languages also has lexical closures, but I'm not sure how easy it would be to take advantage of it, since APL programs usually doesn't take advantage of

[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

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

2014-03-10 Thread Elias Mårtenson
I can set it up for testing purposes. I already have some servers available. Would it be possible to add a flag that enables safe mode? This would restrict the availability of shared variables and native functions? Regards, Elias On 10 Mar 2014 19:19, Juergen Sauermann

Re: [Bug-apl] Proposal for initial multicore support

2014-03-10 Thread Elias Mårtenson
This is something that I have been thinking about as well. And the thing that mostly concerns me is how multiple operations can be optimised. Part of that thinking is actually part of my idea to keep track of temporary objects so that they can be modified in-place. The core of that was already

Re: [Bug-apl] Proposal for initial multicore support

2014-03-10 Thread Elias Mårtenson
. It might be useful to think in terms of doing a parallel each only in the case where the function is a composition of scalar functions. (That simplification would address your concern about side-effects, too.) On Mon, Mar 10, 2014 at 7:31 AM, Elias Mårtenson loke...@gmail.com wrote

Re: [Bug-apl] Experimental OpenMP patch

2014-03-11 Thread Elias Mårtenson
May I suggest that being able to choose the number of cores at runtime should actually be the default. Remember that most Linux distributions will not compile the source on the local machine and instead distributes binaries. Having some #ifdefs would be good, and having runtime user-selected (or

Re: [Bug-apl] Experimental OpenMP patch

2014-03-11 Thread Elias Mårtenson
to avoid too many changes later on. /// Jürgen On 03/11/2014 04:10 PM, Elias Mårtenson wrote: May I suggest that being able to choose the number of cores at runtime should actually be the default. Remember that most Linux distributions will not compile the source on the local machine

[Bug-apl] Largest integer isnt' really largest?

2014-03-11 Thread Elias Mårtenson
Running ⎕SYL shows the following: largest integer 9223372036854775807 Trying to subtract one from this value gives a weird result: *9223372036854775807-1* ¯9223372036854775808 Regards, Elias

Re: [Bug-apl] OpenMP performance: first result

2014-03-12 Thread Elias Mårtenson
I've done some experiments with Intel's Threading Building Blocks, and based on my initial tests, it seems incredibly light-weight, and also easy to use. I haven't tested with actual GNU APL code yet though (I've written separate test programs to experiment). My next tests will be on the real

Re: [Bug-apl] OpenMP performance: first result

2014-03-12 Thread Elias Mårtenson
regarding coalescing the jobs. Regards, Elias On 13 Mar 2014 00:03, Elias Mårtenson loke...@gmail.com wrote: I've done some experiments with Intel's Threading Building Blocks, and based on my initial tests, it seems incredibly light-weight, and also easy to use. I haven't tested with actual GNU

Re: [Bug-apl] Building on OS X 10.8.5 Mountain Lion - SOLVED and How to setup your keyboard.

2014-03-14 Thread Elias Mårtenson
Do you think we could mention that the Emacs mode is available on the MELPA repository as well? This is so that they understand that they don't have to download it themselves. Regards, Elias On 14 March 2014 21:52, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Hi Peter, my plan was

[Bug-apl] Performance optimisations: Results

2014-03-14 Thread Elias Mårtenson
Hello guys, I've spent some time experimenting with various performance optimisations and I would like to share my latest results with you: I've run a lot of tests using Callgrind, which is part of the Valgrindhttp://valgrind.org/tool (documentation here

[Bug-apl] Merging of Emacs module native code

2014-03-15 Thread Elias Mårtenson
Hello Jürgen, Prior to the release of 1.3, could you merge the code for the native module from the Emacs mode? The code is pretty stable right now and ready for 1.3. Like last time, it's in the *native* branch of the Git repository: https://github.com/lokedhs/gnu-apl-mode/tree/native Regards,

Re: [Bug-apl] segmentation fault with any use of quote-quad?

2014-03-18 Thread Elias Mårtenson
It works for me (and I'm sure I've used it in the past and never had a problem). Regards, Elias On 18 March 2014 22:40, baruc...@gmx.com wrote: Hi, it looks like quote-quad ⍞ makes a segfault (any use seems to do it, for instance: A←⍞ ). Regards, -- Thomas Baruchel

[Bug-apl] How to zero every other 1 in a sequence

2014-03-19 Thread Elias Mårtenson
I've been struggling with this one for days now, and I really need some advice. Assume I have a binary sequence. Say, something like this: 0 0 1 1 0 0 1 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 Here, we can see a few sequences of consecutive ones. I want to zero out every second in each sequence. I.e,

Re: [Bug-apl] Scan operator has strange behaviour

2014-03-19 Thread Elias Mårtenson
I see. So the way I see it, I should actually use 2 *OP*/X instead? I seems to actually do what I expected. Regards, Elias On 19 March 2014 22:25, Kacper Gutowski mwgam...@gmail.com wrote: On 2014-03-19 21:22:04, Elias Mårtenson wrote: This can't possibly be correct? But it is! Let me

[Bug-apl] Segfault in assign_cellrefs

2014-03-21 Thread Elias Mårtenson
I was testing Kacpers solution to my problem in another thread, and I got a crash. Easily reproduced by typing in the following two commands: * V←1 2 2 1 2 2 2 1 2 2 2 2 1 2 2 2 2 2 1 3* * (V/V)←∊≠\¨V⊂V* The result is:

Re: [Bug-apl] GNU APL 1.3

2014-03-24 Thread Elias Mårtenson
I just noticed that the GNU APL page on gnu.org still mentions 1.1. I think it might be a good idea to have this updated when 1.3 is released. http://www.gnu.org/software/apl/ Regards, Elias On 25 March 2014 00:00, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Hello everybody, I am

[Bug-apl] Cell grid in ⎕CR output?

2014-03-26 Thread Elias Mårtenson
Would it be possible to add a ⎕CR mode where matrices are displayed in a grid? In other words, instead of displaying 3 3⍴⍳9 like this: ┌→┐ ↓1 2 3│ │4 5 6│ │7 8 9│ └─┘ I'd like it to be displayed like this: ┌→┬─┬─┐ ↓1│2│3│ ├─┼─┼─┤ │4│5│6│ ├─┼─┼─┤ │7│8│9│ └─┴─┴─┘ I was looking at the

[Bug-apl] Typo of default in several files.

2014-03-28 Thread Elias Mårtenson
In the following files, the keyword default has been misspelled defaulkt. This causes it to be interpreted as a label instead of a case keyword: grep -nH -e defaulk *.cc ComplexCell.cc:218:defaulkt:Assert(0 Bad celltype); FloatCell.cc:89:defaulkt:Assert(0 Bad

Re: [Bug-apl] question on []host and few other things...

2014-03-30 Thread Elias Mårtenson
On 30 March 2014 18:06, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Sounds like wrong ESC sequences for colors. Check your preferences file. This always happens OSX with a default build. I don't care much since I always run it in Emacs. Anyway, this should not be a problem when the

[Bug-apl] Command to load content of external file

2014-03-30 Thread Elias Mårtenson
Would it make sense to add a command that loads APL code from a source file? I.e. something similar to what apl -f does, but as a command instead so that it can be run repeatedly? Regards, Elias

[Bug-apl] Crash when calling file_io with wrong arguments

2014-03-30 Thread Elias Mårtenson
To reproduce, type the following two commands: * 'file_io' ⎕FX 'IO'* * IO[0] 0* Then the following exception is displayed: SEGMENTATION FAULT -- Stack trace at main.cc:119

Re: [Bug-apl] Crash when calling file_io with wrong arguments

2014-03-30 Thread Elias Mårtenson
lib_file_io somewhere? (try a full absolute path like above). /// Jürgen On 03/30/2014 12:12 PM, Elias Mårtenson wrote: To reproduce, type the following two commands: * 'file_io' ⎕FX 'IO'* * IO[0] 0* Then the following exception is displayed

Re: [Bug-apl] question on []host and few other things...

2014-03-30 Thread Elias Mårtenson
Elias, ANSI (fixed ESC sequence) is still the default because terminfo/curses does not work too well for colors on my box (bright white missing). /// Jürgen On 03/30/2014 12:09 PM, Elias Mårtenson wrote: On 30 March 2014 18:06, Juergen Sauermann juergen.sauerm...@t-online.dewrote

[Bug-apl] EACH by axis

2014-03-30 Thread Elias Mårtenson
I keep wanting to be able to apply an axis argument to the ¨ (EACH) operator. I.e, to sort an array rows, I wanted to do: *{⍵[⍋⍵]}¨[2] foo* Instead, I had to do: *⊃ {⍵[⍋⍵]}¨ ⊂[2] foo* Would it make sense to be able to specify an axis number to the the EACH operator as an extension? Regards,

Re: [Bug-apl] Finally turned javascript version to a true REPL interpreter

2014-03-31 Thread Elias Mårtenson
After some talk on Freenode #jsoftware, it was asked if you could use a better font? I would suggest GNU FreeMono. That's the one I use in my Emacs windows and looks great for APL: http://www.fontspace.com/gnu-freefont/freemono Regards, Elias On 31 March 2014 15:03, Elias Mårtenson loke

Re: [Bug-apl] EACH by axis

2014-03-31 Thread Elias Mårtenson
2014 04:51, Elias Mårtenson loke...@gmail.com wrote: I keep wanting to be able to apply an axis argument to the ¨ (EACH) operator. I.e, to sort an array rows, I wanted to do: {⍵[⍋⍵]}¨[2] foo Instead, I had to do: ⊃ {⍵[⍋⍵]}¨ ⊂[2] foo Would it make sense to be able to specify

Re: [Bug-apl] Bug in function editing

2014-03-31 Thread Elias Mårtenson
Are you sure it's a bug? You seem to be taking the value of r when it has no value. Also, I think your x should be ×. Regards, Elias On 31 March 2014 13:19, Blake McBride blake1...@gmail.com wrote: ∇r←c Parse a [1] r←(((0≠⍴a)x⍴r),⌈/r)⍴(,r∘.≥⍳⌈/r←¯1+(r,1+⍴a)-0,r←r/⍳⍴a)\(~r←r∈c)/a←,a [2] ∇

Re: [Bug-apl] Finally turned javascript version to a true REPL interpreter

2014-03-31 Thread Elias Mårtenson
The Nable editor should (in my opinion) open a separate editor just like the Emacs mode does. :-) Also, HTML gives us some great opportunities to create nice array visualisations without having to rely on character graphics. I'm going to whip up a simple example showing what it could look like.

Re: [Bug-apl] question on []host and few other things...

2014-03-31 Thread Elias Mårtenson
The colour of the text should be whiter. Regards, Elias On 31 March 2014 00:30, Elias Mårtenson loke...@gmail.com wrote: What system is that? And what terminal are you using? Normally you'd get bright white by choosing the white colour in addition to the standout mode. Standout mode has code *smso

[Bug-apl] Database integration

2014-03-31 Thread Elias Mårtenson
I'm been playing around with integration SQL support, using the Postgres APL. It's quite easy, and can be quite useful. However, I need some suggestions before I make something that is releasable: - Right now I'm using libpq, which is Postgres-specific. This is obviously not ideal. Any

[Bug-apl] GNU APL Solaris port

2014-04-01 Thread Elias Mårtenson
In order to test GNU APL on my biggest machine that I have available (80 cores), I needed to port it to Solaris. Here are my notes I made while getting the application to build on Solaris: *ES is defined as a macro in sys/regset.h* On Solaris, this file eventually becomes included when one

[Bug-apl] More Solaris porting issues

2014-04-02 Thread Elias Mårtenson
As it turns out, I must use the Solaris Studio compiler to take advantage of OpenMP on Solaris. This compiler is much more picky in terms of not allowing certain non-standard constructs. Here are the problems I've had: *Enum values must be a long or unsigned long* In SystemLimits.hh, LARGE_INT

Re: [Bug-apl] More Solaris porting issues

2014-04-02 Thread Elias Mårtenson
On 2 April 2014 18:32, Elias Mårtenson loke...@gmail.com wrote: Declaring an array with a size computed at runtime is not actually allowed (it's supported in modern C, and also supported in C++ as an extension). What I meant was that it's supported in *GCC* as an extension, not C++. Regards

Re: [Bug-apl] More Solaris porting issues

2014-04-02 Thread Elias Mårtenson
Oh, and there are a few more dynamically sized arrays: - phrase_gen.cc:115 and 222 Regards, Elias On 2 April 2014 18:34, Elias Mårtenson loke...@gmail.com wrote: On 2 April 2014 18:32, Elias Mårtenson loke...@gmail.com wrote: Declaring an array with a size computed at runtime

Re: [Bug-apl] Performance optimisations: Results

2014-04-02 Thread Elias Mårtenson
this is very quick-and-dirty. No automake integration, fixed variable size, etc. And the process hangs after the loop (no idea why, killall apl helps). I apl do: A←(1024×1024)⍴2 ◊ A+A /// Jürgen On 04/01/2014 06:44 PM, Elias Mårtenson wrote: Hello Jürgen, How can I reproduce your

Re: [Bug-apl] More Solaris porting issues

2014-04-02 Thread Elias Mårtenson
://docs.oracle.com/cd/E18659_01/html/821-1381/aewcb.html#gkcrd Regards, Elias On 2 April 2014 18:39, Elias Mårtenson loke...@gmail.com wrote: Oh, and there are a few more dynamically sized arrays: - phrase_gen.cc:115 and 222 Regards, Elias On 2 April 2014 18:34, Elias Mårtenson loke

Re: [Bug-apl] Performance optimisations: Results

2014-04-02 Thread Elias Mårtenson
By the way, I believe the hang comes from GNU APL trying to format the 1024 by 1024 array for printing. Regards, Elias On 2 April 2014 18:43, Elias Mårtenson loke...@gmail.com wrote: Thanks, Now I have an OpenMP enabled build on Solaris, and I'm ready to test. How am I supposed

Re: [Bug-apl] Performance optimisations: Results

2014-04-02 Thread Elias Mårtenson
, Elias Mårtenson wrote: Thanks, Now I have an OpenMP enabled build on Solaris, and I'm ready to test. How am I supposed to interpret the output from this command? Regards, Elias On 2 April 2014 01:27, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Hi Elias, I have attached

[Bug-apl] How to build a matrix without knowing its eventual size

2014-04-02 Thread Elias Mårtenson
Right now I'm building the SQLite3 interface (but this will be an issue in other cases too, for example if you need to build native code to convert a CSV file to a matrix) The problem with the SQLite3 API is that you don't know how many rows the result will have until all the rows have been

[Bug-apl] Concerning libraries

2014-04-03 Thread Elias Mårtenson
As previously mentioned, I'm currently hacking away at SQL integration. Like all native libraries in GNU APL, the system is accessed using a function number together with the variable that is bound in the ⎕FX call. There are, however, two limitations that I would like to see addressed: First of

Re: [Bug-apl] Concerning libraries

2014-04-03 Thread Elias Mårtenson
of in-tree is that problems due to changes in the interface between GNU APL and the lib become immediately visible. A disadvantage is that the chance of build errors increases with every lib in-tree. /// Jürgen On 04/03/2014 01:51 PM, Elias Mårtenson wrote: I think that perhaps we

Re: [Bug-apl] Concerning libraries

2014-04-03 Thread Elias Mårtenson
/linux kernel. The advantage of in-tree is that problems due to changes in the interface between GNU APL and the lib become immediately visible. A disadvantage is that the chance of build errors increases with every lib in-tree. /// Jürgen On 04/03/2014 01:51 PM, Elias Mårtenson wrote: I

Re: [Bug-apl] Multi-core functions

2014-04-04 Thread Elias Mårtenson
Cool, thanks for this! Can you clarify one thing: If you don't specify anything on the command line, and also not specify anything at runtime, what will the default be? Casually, I'd expect it to be set to OMP enabled, with the core count = the number of cores on the machine. Regards, Elias

Re: [Bug-apl] Multi-core functions

2014-04-04 Thread Elias Mårtenson
is the way to go. /// Jürgen On 04/04/2014 04:15 PM, Elias Mårtenson wrote: Cool, thanks for this! Can you clarify one thing: If you don't specify anything on the command line, and also not specify anything at runtime, what will the default be? Casually, I'd expect it to be set to OMP

Re: [Bug-apl] Multi-core functions

2014-04-04 Thread Elias Mårtenson
Oops, forgot the link: http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_openmp.m4 Regards, Elias On 4 April 2014 22:53, Elias Mårtenson loke...@gmail.com wrote: OK, I understand. I did find this, which is probably a good thing to use. It includes the correct

Re: [Bug-apl] Performance optimisations: Results

2014-04-06 Thread Elias Mårtenson
in parallel which would then cost O(log P) instead of O(P) for P cores. /// Jürgen On 04/04/2014 04:52 PM, Elias Mårtenson wrote: Thanks. I'll look into that a bit later. I wouldn't expect must strangeness in terms of the environment. The machine more or less idle at the time (as far as I

[Bug-apl] Failure to load native libraries causes incorrect error message

2014-04-06 Thread Elias Mårtenson
The current mechanism to load native libraries first attempts to find a library with the suffix .so. If that fails, it will try again with the suffix .dylib (the OSX library extension). This poses a problem, since if the .so library failed for any reason other than the file not existing, the

Re: [Bug-apl] Latest Solaris porting issues

2014-04-08 Thread Elias Mårtenson
not. To avoid that I have added AC_LANG to configure.ac. /// Jürgen On 04/08/2014 07:33 AM, Elias Mårtenson wrote: Here are the issues I faced when building r190 on Solaris: *Unresolved issues* These are issues that still need to be addressed: *Warning when running ./configure

Re: [Bug-apl] Warnings when compiling with -Wall

2014-04-10 Thread Elias Mårtenson
April 2014 19:29, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Hi, the reason is that gcc does not allow unions with members that have constructors. It used to be allowed earlier, but not anymore (and I miss it). /// Jürgen On 04/10/2014 05:15 AM, Elias Mårtenson wrote: I'm

Re: [Bug-apl] SQL support

2014-04-11 Thread Elias Mårtenson
parameters though (since the left hand argument can't be empty). What are your suggestions as to how to design this? Regards, Elias On 11 April 2014 16:48, Elias Mårtenson loke...@gmail.com wrote: I've been working on an SQL interface, and right now I'm at the point where basic SQLite support works

Re: [Bug-apl] caller known in native function

2014-04-13 Thread Elias Mårtenson
Nice, and thanks! I was about to ask for this very thing. :-) Regards, Elias On 13 April 2014 21:39, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Hi, I have changed the NativeFunction class so that so that the called function (eval_AB(), eval_B(), ...) in the shared library can

Re: [Bug-apl] Online interpreter

2014-04-13 Thread Elias Mårtenson
interface on top (Android UI code is generally written in Java). Regards, Elias On 13 April 2014 21:48, baruc...@gmx.com wrote: Elias Mårtenson loke...@gmail.com wrote: In related news, I've been thinking about how to best handle APL input on Android. I think this project screams

Re: [Bug-apl] Online interpreter

2014-04-13 Thread Elias Mårtenson
2014 21:46, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Hi, wouldn't the tablet approach be to draw the APL symbol with your finger on the screen :-? /// Jürgen [still keyboard user] On 04/13/2014 03:38 PM, Elias Mårtenson wrote: With the exception of the lack of popup

Re: [Bug-apl] Re : Re: Online interpreter

2014-04-13 Thread Elias Mårtenson
Personally, my eyes can't handle black background at all, so I'd definitely all for a white background (also, it's generally better for people's eyes). Regards, Elias On 13 April 2014 23:56, Thomas Baruchel baruc...@gmx.com wrote: Time to post this on reddit then? :-) I will clean the URL

[Bug-apl] NativeFunction eval_AXB has become broken

2014-04-13 Thread Elias Mårtenson
In my implementation of eval_AXB I am getting the function number using the following code: const int function_number = X-get_ravel(0).get_near_int(qct); When X is either 0 or 1, this works correctly. But when X is any other value (for example, 2) the call to .get_near_int(qct) throws a

Re: [Bug-apl] Trouble with Unicomp keyboard

2014-04-14 Thread Elias Mårtenson
If you're using Emacs I can help you bind an input method for it. It will only work in Emacs though. Regards, Elias On 14 April 2014 18:55, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Hi Blake, I am not using xkbcomp myself. I have briefly tried it but I am not at all an expert

[Bug-apl] A couple of more Solaris compatibility issues

2014-04-16 Thread Elias Mårtenson
We're *almost* there. :-) *Issue 1:* Line 873 in the file Archive.cc: The first argument to munmap() needs to be cast to char * on Solaris. I wasn't able to find a ready-made autoconf macro that tests for the argument to munmap(), but one can always use an #ifdef to check if the OS is Solaris.

Re: [Bug-apl] A couple of more Solaris compatibility issues

2014-04-16 Thread Elias Mårtenson
And a followup: If I bind it on Solaris in 64-bit mode, I get the following error when I run it: *** Failed to start APnnn: processor -1 will not accept incoming shared variable offers. Expect surprises. Regards, Elias On 17 April 2014 11:52, Elias Mårtenson loke...@gmail.com wrote: We're

[Bug-apl] )ERASE and )CLEAR erases native functions

2014-04-16 Thread Elias Mårtenson
Is it per design to be able to )ERASE native functions? There is currently no unload capability in the native APL (and frankly, I'm not entirely sure it's always reasonable to assume that such functionality can even be implemented with any degree of stability). With that in mind, does it make

Re: [Bug-apl] )ERASE and )CLEAR erases native functions

2014-04-16 Thread Elias Mårtenson
And of course, when I said APL, I meant API. On 17 April 2014 12:56, Elias Mårtenson loke...@gmail.com wrote: Is it per design to be able to )ERASE native functions? There is currently no unload capability in the native APL (and frankly, I'm not entirely sure it's always reasonable

Re: [Bug-apl] SQL: can't get to work with sqlite either

2014-04-18 Thread Elias Mårtenson
I think I know now. You have updated GNU APL but you haven't recompiled the SQL library. It happened to me previously actually. Regards, Elias On 19 April 2014 10:45, Blake McBride blake1...@gmail.com wrote: $ sqlite3 sqlite.db SQLite version 3.7.17 2013-05-20 00:56:22 Enter .help for

Re: [Bug-apl] Towards a keyed and component file system

2014-04-19 Thread Elias Mårtenson
You are right. The SQL implementation uses C strings behind the scenes for both SQLite and Postgres. I'll be happy to implement BLOB support if you can suggest a good syntax for it from APL. Regards, Elias On 19 April 2014 22:34, Blake McBride blake1...@gmail.com wrote: Looks good. I am a

[Bug-apl] Autoconf woes

2014-04-20 Thread Elias Mårtenson
I've struggling with integrating the SQL stuff with Autoconf. My intent was (and still, to some degree, is) to provide a simple patch for Jürgen. But alas! My plan has been foiled! Bu that creature of the shadows that go by the name Autoconf. My question to anyone here (especially Jürgen) how

Re: [Bug-apl] A really simple component-file implementation

2014-04-21 Thread Elias Mårtenson
Can't you put this thing on Github or similar service to make access to the latest version easy? What source control software do you use for development? Regards, Elias On 22 April 2014 00:53, David B. Lamkins dlamk...@gmail.com wrote: Latest drop attached. - Updated for latest apl-sqlite

[Bug-apl] Fwd: Re: 2 questions wrt editing my programs

2014-04-22 Thread Elias Mårtenson
I accidentally sent this to Jürgen only. Here it is for the rest of the list. Regards, Elias -- Forwarded message -- From: Elias Mårtenson loke...@gmail.com Date: 23 Apr 2014 01:13 Subject: Re: [Bug-apl] 2 questions wrt editing my programs To: Jürgen Sauermann juergen.sauerm...@t

Re: [Bug-apl] A call for justification of feature / library / extension proposals (was Re: Tk/Tcl interface)

2014-04-23 Thread Elias Mårtenson
First of all, I'm a newcomer to APL and even though I've hit 40 I feel somewhat like the new kid on the block. :-) I haven't advocated plenty of new quad-commands or changes to the core language (although there are certainly a few of those that I'd like to see too, but I respect Jürgens wishes

Re: [Bug-apl] emacs and apl

2014-04-24 Thread Elias Mårtenson
that might be usable in an xterm? On Fri, 25 Apr 2014 08:58:33 +0800 Elias Mårtenson It edits functions in the workspace. GNU APL runs inside Emacs, and when you press C-c C-f to open a function it reads the content of it and displays it in a separate buffer. Once you're done editing it gets

Re: [Bug-apl] Performance issue when manipulating arrays

2014-04-25 Thread Elias Mårtenson
for each cell). I will nevertheless look into this; I was earlier thinking of a new FILE_IO function that returns an entire file. /// Jürgen On 04/25/2014 08:01 AM, Elias Mårtenson wrote: Actually, no. I don't actually do that. I only resize the array one every 1000 lines (configurable

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-25 Thread Elias Mårtenson
There isn't, but implementing it is possible in APL itself. To my knowledge this has not been done yet. Regards, Elias On 26 Apr 2014 07:16, enz...@gmx.com wrote: I've found ⎕ex that can used in a function since )erase can't so is there a suitable ⎕cp for )copy - i've looked in all the .def

Re: [Bug-apl] Compose table for GNU/APL

2014-04-26 Thread Elias Mårtenson
Oh, and I forgot the link: https://github.com/lokedhs/gnu-apl-mode/blob/master/gnu-apl-mode.el#L142 Regards, Elias On 26 April 2014 14:36, Elias Mårtenson loke...@gmail.com wrote: The source for the Emacs mode contains the list you're looking for. Look at the definition of gnu-apl--symbols

[Bug-apl] GNU APL in Emacs video

2014-04-26 Thread Elias Mårtenson
I will make a more fully-featured video (with voiceover) but this is my first attempt. At least it shows how the function editor works. http://www.youtube.com/watch?v=FXPrMNraSKA Regards, Elias

Re: [Bug-apl] Return value of fgets ignored in lib_file_io. (Was: Re: is there a )copy ⎕fns like ⎕ex is )erase)

2014-04-26 Thread Elias Mårtenson
I created that channel. And I'm idling in there. :-) Regards, Elias On 26 April 2014 22:41, enz...@gmx.com wrote: Fantastic/wow - you found the bug that fast? What a bunch of great programmers we have behind this grand apl. The whole project has become quite amazing. If there is

Re: [Bug-apl] ]keyb should function dynamically

2014-04-27 Thread Elias Mårtenson
! Blake On Sun, Apr 27, 2014 at 5:48 AM, Elias Mårtenson loke...@gmail.comwrote: I'm sure you all are annoyed with me for constantly plugging Emacs, but I just can't help myself. The Emacs mode will display Jürgens keymap help in a separate window, automatically updated to correspond

[Bug-apl] I've made a new video

2014-04-27 Thread Elias Mårtenson
My intention is to make a couple of decent videos about GNU APL. This one is also unlisted, as I'm not happy with the way it came out. I'll make a few more attempts, but I would love to hear your comments on it. Here's the URL: http://youtu.be/yP4A5CKITnM Regards, Elias

Re: [Bug-apl] Segmentation fault with Emacs mode

2014-04-27 Thread Elias Mårtenson
Do you have a copy of the workspace I can test with? Regards, Elias On 28 April 2014 10:48, Blake McBride blake1...@gmail.com wrote: I built ans installed libemacs.so from the native directory bu same problem. On Sun, Apr 27, 2014 at 9:42 PM, Blake McBride blake1...@gmail.comwrote:

Re: [Bug-apl] How do I convert a byte sequence to Unicode?

2014-04-27 Thread Elias Mårtenson
, David B. Lamkins dlamk...@gmail.com wrote: That's close, but libfileio[8] returns a sequence of byte values; not code points. On Mon, 2014-04-28 at 12:19 +0800, Elias Mårtenson wrote: Use the quad function ⎕UCS: ⎕UCS 'foo⍉bar' 102 111 111 9033 98 97 114 ⎕UCS 102 111 111

Re: [Bug-apl] C-c C-c not working

2014-04-28 Thread Elias Mårtenson
Oops. llog is an internal debug function I use. That should never go into the repository. I've pushed an update to fix that. Regards, Elias On 28 April 2014 19:02, Blake McBride blake1...@gmail.com wrote: Greetings, When using a brand new evocation of Emacs/GNU APL mode, I attempt to

[Bug-apl] About the reduction of clone() calls

2014-04-28 Thread Elias Mårtenson
Hello Jürgen, I don't know if you have given this issue any thought, but it has certainly occupied my mind for the last few days. It's clear that heavy array processing does far too much cloning than should be necessary. Especially in cases where you have lots of operations on smaller arrays (as

Re: [Bug-apl] How do I convert a byte sequence to Unicode?

2014-04-28 Thread Elias Mårtenson
What do you think of the idea of supporting arbitrary encodings using dyadic ⎕UCS? I'd be happy to implement it. Although, perhaps you don't want to add a dependency on iconv? Regards, Elias On 28 April 2014 21:39, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Hi, I have added 18

Re: [Bug-apl] How do I convert a byte sequence to Unicode?

2014-04-28 Thread Elias Mårtenson
extend FILE_IO or some MISC library. /// Jürgen On 04/28/2014 03:50 PM, Elias Mårtenson wrote: What do you think of the idea of supporting arbitrary encodings using dyadic ⎕UCS? I'd be happy to implement it. Although, perhaps you don't want to add a dependency on iconv? Regards, Elias

Re: [Bug-apl] Segmentation fault with Emacs mode

2014-04-28 Thread Elias Mårtenson
a difference. I would be interested in the workspace file as well if the error persists. /// Jürgen On 04/28/2014 06:04 AM, Elias Mårtenson wrote: I've analysed the problem using Valgrind, and it seems as though this is a bug in the XML_Loading_Archive class. The only reason you saw it when

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] Is there a way of having a session log?

2014-04-28 Thread Elias Mårtenson
Also, keep in mind the script command that allows you to log anything from an interactive session. (or, of course... E nah. Won't say it). Regards, Elias On 28 April 2014 23:56, Juergen Sauermann juergen.sauerm...@t-online.dewrote: Hi Thomas, a log of the input (without the responses

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] A request for gnu-apl-mode

2014-04-28 Thread Elias Mårtenson
It's done. Please check the latest version and let me know if there are any problems. Regards, Elias On 29 April 2014 07:59, Elias Mårtenson loke...@gmail.com wrote: Yes. I will do this. I never tested this because I don't use comment-region myself. Regards, Elias On 29 Apr 2014 03:37

[Bug-apl] Performance improvement result

2014-04-30 Thread Elias Mårtenson
The following patch improves the performace of reading a 10k line file using io∆readfile from several minutes down to about half a second. The key to this was to avoid cloning the result when reading the value from a variable. This caused functions with lots of variable dereferencing to become

Re: [Bug-apl] Segmentation fault with Emacs mode

2014-04-30 Thread Elias Mårtenson
The Emacs mode should not be hiding the output on standard error. If anyone happens to see it do that, please let me know because that would mean you've come across a bug. Regards, Elias On 30 Apr 2014 20:04, Juergen Sauermann juergen.sauerm...@t-online.de wrote: Hi Blake, if the problem is

[Bug-apl] Preventing display of too large arrays

2014-04-30 Thread Elias Mårtenson
Sometimes, I accidentally make a mistake in interactive mode that causes GNU APL to try to render a very large array to the screen. This can cause the pretty-printer to essentially hang for very long amounts of time, and this operation can't be interrupted. I usually have to kill the APL session,

Re: [Bug-apl] Preventing display of too large arrays

2014-04-30 Thread Elias Mårtenson
:35 PM, Elias Mårtenson wrote: Sometimes, I accidentally make a mistake in interactive mode that causes GNU APL to try to render a very large array to the screen. This can cause the pretty-printer to essentially hang for very long amounts of time, and this operation can't be interrupted. I

Re: [Bug-apl] gdb and the Emacs mode segfault

2014-05-04 Thread Elias Mårtenson
-up! :) On Sun, 2014-05-04 at 08:20 +0800, Elias Mårtenson wrote: This was just fixed, actually. You might want to try with the latest version. It should work now. Regards, Elias On 4 May 2014 02:45, David B. Lamkins dlamk...@gmail.com wrote: I was able to get a core dump

Re: [Bug-apl] Small bug saving function editing in Emacs mode

2014-05-04 Thread Elias Mårtenson
4, 2014 at 7:33 AM, Elias Mårtenson loke...@gmail.com wrote: Does the gg function exist at this time, or is it newly created? On 4 May 2014 20:31, Blake McBride blake1...@gmail.com wrote: I am using Emacs 24.3.1. It comes with Linux Mint. I did not build it myself. I do have a number

  1   2   3   4   5   6   7   >