I'm getting an error declaring a nihilic operator that has an index
parameter using ⎕FX:
* ⎕FX 'Z←(OP F)[V]' "OP V"*
1
When I declare it using the lambda format, the declaration works but trying
to call it gives an error. Trying to call it without the index parameter
(but with a normal param
Here's a patch that fixes the compilation error when disabling readline on
OSX (and possibly non-OSX as well?).
Regards,
Elias
Index: src/Input.cc
===
--- src/Input.cc(revision 392)
+++ src/Input.cc(working copy)
@@ -1
Getting the following error when enabling readline on OSX:
g++ -DHAVE_CONFIG_H -I. -I.. -rdynamic -g -MT NamedObject.o -MD -MP
-MF .deps/NamedObject.Tpo -c -o NamedObject.o NamedObject.cc
clang: warning: argument unused during compilation: '-rdynamic'
Input.cc:123:28: error: use of undeclare
$ apl --silent -f -
could not open -
)off
$
--
"The secret to creativity is knowing how to hide your sources."
Albert Einstein
http://soundcloud.com/davidlamkins
http://reverbnation.com/lamkins
http://reverbnation.com/lcw
http://lamkins-guitar.com/
http://lamkins.net/
http://successfu
$ apl --silent -- --option value
could not open --option
)off
$
The command-line parser seems to keep looking for files to load past the
`--`.
--
"The secret to creativity is knowing how to hide your sources."
Albert Einstein
http://soundcloud.com/davidlamkins
http://reverbnation.com
Hi Elias,
if have implemented the *poll() *as a non-default alternative to
*select() *in *APserver*.
Unfortunately I can't reproduce the problems that I had earlier (they
occurred in the middle
of development), but I would be surprised if*poll()* would differ
from*select() *in that respect.
Dear Elias,
A third column with that other information (uniqueness, null-ability, etc.)
would be useful.
Thanks!
Blake
On Thu, Jul 24, 2014 at 5:34 AM, Elias Mårtenson wrote:
> I've added a function number 9 to the SQL library. This function takes the
> name of a table and returns informatio
Sorry, not POLLPRI. It's POLLERR or POLLHUP. You can see how it's done here:
https://github.com/lokedhs/gnu-apl-mode/blob/master/native/UnixSocketListener.cc#L125
Regards,
Elias
On 24 July 2014 19:59, Elias Mårtenson wrote:
> I believe if you use poll() rather than select(), you should be abl
I believe if you use poll() rather than select(), you should be able to
detect this state. Add a listener for the event POLLPRI.
Regards,
Elias
On 24 July 2014 19:57, Juergen Sauermann
wrote:
> Hi Elias,
>
> given that hardly anybody uses shared variables these days this discussion
> is more
Hi Elias,
given that hardly anybody uses shared variables these days this discussion
is more on the theoretical side than of practical relevance.
For that reason I would like the solution to be as simple as possible.
The extra things needed as you state below make things more complicated
and rai
I did not know about that feature. Interesting. Also interesting that it's
not supported on OSX.
That said, I still think Unix domain sockets are good in this case. There
are just a few things that needs to be done in order to make them solid. I
think I did most of those things in the native code
Hi Elias,
the idea is this:
man 7 unix says:
/abstract: an abstract socket address is distinguished by the fact//
// that sun_path[0] is a null byte ('\0'). The socket's
address in//
// this namespace is given by the additional bytes in sun_path
that are//
//
Ah, sorry. My question was about the "+ABSTRACT_OFFSET". That particular
addition of the value 1 to the sun_path field was what caused the failure.
What I wondered was what is the purpose of ABSTRACT_OFFSET?
Regards,
Elias
On 24 July 2014 19:06, Juergen Sauermann
wrote:
> Hi Elias,
>
> Unix D
Hi Elias,
Unix Domain Sockets were your proposal if I remember correctly :-) .
They caused a few extra problems, for example select() does not
notice when a connection is closed.
Not sure which call you mean?
/// Jürgen
On 07/24/2014 12:55 PM, Elias Mårtenson wrote:
I had never been able to g
Sorry, I accidentally hit send… Here's the rest:
In the following call can be found in bot Svar_DB.cc and the APserver, you
can find the following:
strcpy(remote.sun_path + ABSTRACT_OFFSET, server_sockname);
ABSTRACT_OFFSET is #defined to 1. This means that the first character of
the path wi
I had never been able to get APserver to work properly, and particularly
not with the Unix Domain Sockets.
But, I finally figured it out. :-)
In the following call can be found in bot Svar_DB.cc and the APserver.
I've added a function number 9 to the SQL library. This function takes the
name of a table and returns information about the columns in that table.
The function has no name in SQL.apl yet, because I am currently overseas
and my laptop has no Postgres, which means that it only works for SQLite so
fa
I agree with you. And that's what I intended to do (perhaps I made a
mistake in my code?)
The file in wslib5 should indeed be upper case. The file in the src/sql
directory is lower case. The installation that copies the file to wslib5
changes the name to make it uppercase.
Regards,
Elias
On 24
Hi Elias,
I have lower-cased everything even though I would
argue that SQL, being an abbreviation, should be uppercase.
I have removed the stale files (they were only in SVN not in the
packages built).
/// Jürgen
On 07/24/2014 10:41 AM, Elias Mårtenson wrote:
The src/sql directory contains
You can't undef a typedef, but you can hack around it by #define Function
Something_Else, and then #undef Function after including the offending
header.
That said, the C++ solution is to place your own definitions into a unique
namespace.
Regards,
Elias
On 24 July 2014 18:17, Juergen Sauermann
Hi David,
thanks , fixed in SVN 388.
/// Jürgen
On 07/22/2014 10:47 PM, David Lamkins wrote:
I finally managed to isolate the cause of )CHECK's state value report
for my package manager.
The attached test case has a two-line function, a call to that
function, and the )CHECK command. This r
Hi Elias,
thanks. I made some changes rot readline to be more portable.
Including the Function problem.
It is really not nice to typedef a fundamental name like "Function" in a
library
because you can't un-typedef it (can you?). In my readline version you could
prevent that by #defining_FUNCTI
The src/sql directory contains all files from my source repository, but it
also contains some outdated file, for example the ResultValue.* files
before they were renamed.
It would be nice if this was cleaned up before 1.4.
Regards,
Elias
23 matches
Mail list logo