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

2014-04-21 Thread David Lamkins
I intend to. I'll probably use Github. This project kind of took on a life of its own. It started with the realization that I might be able to layer a component file system on top of apl-sqlite. I really didn't expect to end up with something that'd actually be useful. (This is my first real APL p

Re: [Bug-apl] Feature request: UNWIND-PROTECT-like feature

2014-04-21 Thread David Lamkins
You may be able to construct that in APL. I'm on my phone now, so this is from memory and may be wrong: take a look at quad-EM (and maybe quad-EMX, although that may well be a Dyalog-ism); you should be able to capture the error information and rethrow using quad-ES. On Apr 21, 2014 8:09 PM, "Elia

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 wrote: > Latest drop attached. > > - Updated for latest apl-sqlite (library name cha

Re: [Bug-apl] Tk/Tcl interface

2014-04-21 Thread Elias Mårtenson
The J community seems to be pretty excited about their QT interface. Tk is easy to use, but results in horrible-looking applications that doesn't integrate well with the rest of the interface. If I were to implement support for a GUI framework, it'd be either GTK+ or Android, depending on whether

[Bug-apl] Tk/Tcl interface

2014-04-21 Thread Blake McBride
Just an idea.

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

2014-04-21 Thread Peter Teeson
Heh Heh…. Yes I do know about emacs mode and your contribution….. respect…. Peter On 2014-04-21, at 6:33 PM, Peter Teeson wrote: > (1) Where is docn for the built in function editor when running in terminal > mode? > (I have the IBM manuals - should I be looking there? Also I am not familiar

[Bug-apl] 2 questions wrt editing my programs

2014-04-21 Thread Peter Teeson
(1) Where is docn for the built in function editor when running in terminal mode? (I have the IBM manuals - should I be looking there? Also I am not familiar with emacs or vi) (I'm only familiar with the IPSA one) (2) Can I use an external text editor and interface with quad FX? Because I now w

[Bug-apl] A few corrections to apl.texi

2014-04-21 Thread David B. Lamkins
Diff attached. Index: apl.texi === --- apl.texi (revision 219) +++ apl.texi (working copy) @@ -479,7 +479,7 @@ Using a library root implies that all 10 library directories are contained in the same directory. This is good enough f

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

2014-04-21 Thread David B. Lamkins
Latest drop attached. - Updated for latest apl-sqlite (library name changed). - Batched inserts added to performance test. cf.tar.gz Description: application/compressed-tar

Re: [Bug-apl] Good news..

2014-04-21 Thread Juergen Sauermann
Hi Peter, thanks, fixed in SVN 220. /// Jürgen On 04/21/2014 06:20 PM, Peter Teeson wrote: As of APL 1.3 6401 -- For OS X both Mountain Lion 10.8.5 & Mavericks 10.9.2 ./configure --disable-nls ; make clean ; make /apl-svn/src/file_io.cc:113:41: Expression result unused Input.cc:106:42: warn

Re: [Bug-apl] clang Warning

2014-04-21 Thread Juergen Sauermann
Hi Peter, fixed in SVN 220. The -rdynamic is described in 'man g++'. /// Jürgen On 04/19/2014 06:22 PM, Peter Teeson wrote: /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -rdynamic -g -O2 -MT file_io.lo -MD -MP -MF .deps/file_io.Tpo -c -

Re: [Bug-apl] Update on SQL support

2014-04-21 Thread David B. Lamkins
On Mon, 2014-04-21 at 22:06 +0800, Elias Mårtenson wrote: > The library has now been renaled lib_sql.so. I've also tried to make > sql.apl a bit more clever in how it loads the library. I'm a bit > limited in handling errors while loading though. How can I raise a > DOMAIN_ERROR from APL code? >

[Bug-apl] Good news..

2014-04-21 Thread Peter Teeson
As of APL 1.3 6401 -- For OS X both Mountain Lion 10.8.5 & Mavericks 10.9.2 ./configure --disable-nls ; make clean ; make /apl-svn/src/file_io.cc:113:41: Expression result unused Input.cc:106:42: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]

Re: [Bug-apl] Feature request: UNWIND-PROTECT-like feature

2014-04-21 Thread David B. Lamkins
On Mon, 2014-04-21 at 17:34 +0800, Elias Mårtenson wrote: > We need a feature similar to the Common Lisp form UNWIND-PROTECT, or > in Java: try/finally. > > > For those who don't know, this form allows you to execute code after > some code has been run, regardless of how the latter exits (return

Re: [Bug-apl] Attempting to )load a )dump file causes segfault

2014-04-21 Thread David B. Lamkins
On Mon, 2014-04-21 at 15:41 +0200, Juergen Sauermann wrote: > Hi David, > > I tried to reproduce the problem on my machine but couldn't. > I looped around an empty file (outside emacs mode) several 1 times > without > the problem happening. > > Some more context like the Backtrace shown afte

Re: [Bug-apl] Update on SQL support

2014-04-21 Thread Elias Mårtenson
The library has now been renaled *lib_sql.so*. I've also tried to make sql.apl a bit more clever in how it loads the library. I'm a bit limited in handling errors while loading though. How can I raise a DOMAIN_ERROR from APL code? Regards, Elias On 21 April 2014 12:42, Elias Mårtenson wrote: >

Re: [Bug-apl] Attempting to )load a )dump file causes segfault

2014-04-21 Thread Juergen Sauermann
Hi David, I tried to reproduce the problem on my machine but couldn't. I looped around an empty file (outside emacs mode) several 1 times without the problem happening. Some more context like the Backtrace shown after SEGMENTATION FAULT (if any) or loading the core dump into gdb and doing

Re: [Bug-apl] Assertion failure loading workspace

2014-04-21 Thread Juergen Sauermann
Hi, thanks. fixed in SVN 219. I also made XML_Loading_Archive more tolerant so that is should be possible to )LOAD files that were )SAVEd with this bug. /// Jürgen On 04/19/2014 06:56 PM, David B. Lamkins wrote: The attached workspace crashes GNU APL upon loading. There's nothing of importa

Re: [Bug-apl] clang Warning - revisited

2014-04-21 Thread Elias Mårtenson
There is a workaround to avoid the warning though, and that is to do a static_cast of the enum when you do the comparison. That was the recommendation when I was googling about this issue. Regards, Elias On 21 April 2014 18:24, Juergen Sauermann wrote: > Hi Vladimir, > > thanks. Not sure if yo

Re: [Bug-apl] clang Warning - revisited

2014-04-21 Thread Juergen Sauermann
Hi Vladimir, thanks. Not sure if you can do anything about the text of the warning, If so, then my proposal would be "comparison *may *always be true because all declarators in enum XXX are smaller than int 10" or so. /// Jürgen On 04/21/2014 09:19 AM, Vladimir Ur wrote: Juergen, hmm, ok. I a

[Bug-apl] Feature request: UNWIND-PROTECT-like feature

2014-04-21 Thread Elias Mårtenson
We need a feature similar to the Common Lisp form UNWIND-PROTECT, or in Java: try/finally. For those who don't know, this form allows you to execute code after some code has been run, regardless of how the latter exits (return normally, exited with error, etc...) What I envision is something like

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

2014-04-21 Thread Elias Mårtenson
What does the {tn} do in the call to cf∆with_transaction? On 21 April 2014 15:20, David B. Lamkins wrote: > On Sun, 2014-04-20 at 21:18 -0700, David B. Lamkins wrote: > > > One thing that's interesting is that cf∆append runs about twice as fast > > inside the transaction wrapper than it does wi

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

2014-04-21 Thread David B. Lamkins
On Sun, 2014-04-20 at 21:18 -0700, David B. Lamkins wrote: > One thing that's interesting is that cf∆append runs about twice as fast > inside the transaction wrapper than it does without. I imagine that > SQLite must be running several implicit transactions; these get deferred > by running the seq