Re: [Bug-apl] clang warning

2014-04-17 Thread Peter Teeson
Updated to revision 211. ../GNUAPL/apl-svn/src/UserPreferences.cc:378:1: Control may reach end of non-void function Peter

[Bug-apl] SQL: problem reading from a PostgreSQL database

2014-04-17 Thread Blake McBride
$ psql arahant postgres psql (9.1.13) Type "help" for help. arahant=# select * from hr_position; position_id| position_name | org_group_id | first_active_date | last_active_date | benefit_class_id --+---+--+---+---

Re: [Bug-apl] SQL: how to specify database

2014-04-17 Thread Blake McBride
Sorry. Figured it out. It's "dbname" not "Database". On Thu, Apr 17, 2014 at 10:26 PM, Blake McBride wrote: > I can't seem to specify the database I want to connect to. > > > 'postgresql' SQL∆Connect 'host=localhost user=postgres > password=postgres' > 0 > 'postgresql' SQL∆Connect

[Bug-apl] SQL: how to specify database

2014-04-17 Thread Blake McBride
I can't seem to specify the database I want to connect to. 'postgresql' SQL∆Connect 'host=localhost user=postgres password=postgres' 0 'postgresql' SQL∆Connect 'host=localhost user=postgres password=postgres' 1 'postgresql' SQL∆Connect 'host=localhost user=postgres password=post

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

2014-04-17 Thread David B. Lamkins
$ git clone https://github.com/lokedhs/apl-sqlite.git $ cd apl-sqlite/ $ make c++ -Wall -Wno-sign-compare -fPIC -g -I/home/dlamkins/src/apl/src -I/usr/include/postgresql -c -o apl-sqlite.o apl-sqlite.cc In file included from apl-sqlite.cc:21:0: apl-sqlite.hh:34:31: fatal error: Native_interface.h

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] Update on SQL support

2014-04-17 Thread Elias Mårtenson
Latest update: The 2D matrix bind parameters is now implemented. Transaction support is there (but not really tested yet). Bost SQLite and Postgres also works. There is also a .apl file with function definitions that smakes the API look nicer. My next step is to get the available database librar

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

2014-04-17 Thread Elias Mårtenson
Thanks, that makes sense. It all works well, except for the fact that the line numbers are off. For example, SQL∆Commit is declared on line 41, but ]SYMBOL says it's on 31. Regards, Elias On 17 April 2014 23:45, Juergen Sauermann wrote: > Hi, > > sorry, my fault. No quotes. > > /// Jürgen > >

Re: [Bug-apl] Some compile warnings

2014-04-17 Thread Juergen Sauermann
Hi Blake, thanks, fixed in SVN 210. /// Jürgen On 04/15/2014 08:20 PM, Blake McBride wrote: Archive.cc: In member function ‘void XML_Saving_Archive::emit_cell(const Cell&, int&, bool&)’: Archive.cc:229:71: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has ty

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

2014-04-17 Thread Juergen Sauermann
Hi, sorry, my fault. No quotes. /// Jürgen On 04/17/2014 05:38 PM, Elias Mårtenson wrote: About the tags, I'm having some trouble with them. The line numbers are off. I'm testing on the attached file. Also, when trying to look at the tag using the ]SYMBOL command, I'm getting the following

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

2014-04-17 Thread Elias Mårtenson
About the tags, I'm having some trouble with them. The line numbers are off. I'm testing on the attached file. Also, when trying to look at the tag using the ]SYMBOL command, I'm getting the following: * ]SYMBOL 'SQL∆Disconnect'* parse error 3 in )SYMBOL command Regards, Elias On 17 April

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

2014-04-17 Thread Elias Mårtenson
I'm at home now and unable to easily test the Solaris stuff. I will give you the log file as soon as I can get my hands on it. As for munmap, I'm surprised we're not getting errors on Linux for this, since it's defined to take a void * on that platform. Regards, Elias On 17 April 2014 23:27, Ju

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

2014-04-17 Thread Juergen Sauermann
Hi Elias, I changed munmap() to char *. I also added source file and line numbers to user defined functions. May not work everywhere yet, please let me know if not., Can be checked with eg. ]SYMBOL 'FOO' I added some printouts for APnnn troubleshooting; start APL with -l 37 (= startup-log) t

Re: [Bug-apl] More performance results

2014-04-17 Thread Juergen Sauermann
Hi Elias, just do something like this: *for ((i=1; $i<80; ++i)); do** ** ./Parallel $i** ** ./Parallel_OMP $i** **done* That wil create a number of files ending in .omp and .man. In the previous version there was a fault, corrected in the attached version. /// Jürgen On 04/17/2014 04:41 AM,