Hi there APLers!
I found it too annoying that APL creates .apl.history file in whatever
is current directory and spams my filesystem, so I've patched it to
create this file in user's $HOME directory by default. Maybe you'll
find it useful as well.
./danfe
--- gnu-apl.d/preferences.in.orig 2019-0
Building APL with GCC 7/8 required some minor patching: src/Error.hh,
in set_error_line_X() methods, there are calls to strncpy(3), so it
needs #include or #include .
Also, had to change types of total_memory from unsigned to signed,
those values are compared to values of type rlim_t which is sig
Hi Alexey,
thank you for submitting the patch. The effect of the patch seems
to be to change the
default value of the directory where an APL history is stored. The
question is then
if a reasonable default value should be the user's home directory
On 7/4/19, Dr. Jürgen Sauermann wrote:
> The effect of the patch seems to be to change the default value of the
> directory where an APL history is stored.
Well, the main part of these changes is support for tilde expansion,
which is useful even preferences are left untouched. (OK, the comment
l
Hi Alexey,
thanks, I will fix things as suggested.
Regarding signed vs. unsigned, the question is not so much if the
chosen type can
hold the value but the number of comparisons needed to compute if
a value fits into
a range (where the va
Hi Alexey,
I see. Will consider it.
Best Regards,
Jürgen
On 7/4/19 3:34 PM, Alexey Dokuchaev
wrote:
On 7/4/19, Dr. Jürgen Sauermann wrote:
The effect of the patch seems to be to change the default value
On 7/4/19, Dr. Jürgen Sauermann wrote:
> The need for ~ (or $HOME for that matter) puts additional requirements on
> the platform which harms portability. I have always tried to minimize the
> number of environment variables used by GNU APL, in order to maximize
> usability.
Forgot to respond to
On 7/4/19, Dr. Jürgen Sauermann wrote:
> Regarding signed vs. unsigned, the question is not so much if the chosen
> type can hold the value but the number of comparisons needed to compute
> if a value fits into a range (where the vast majority of cases the range
> starts at 0).
>
> A signed X fall
Hi Alexey,
I applied most of your patches, thanks for submitting them.
I have left the preferences file as is because changing it could
come as a surprise
to users that are happily using the current default.
I also changed the rlim_t com