bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacing )SAVE with )DUMP


From: Otto Diesenbacher-Reinmüller
Subject: Re: Replacing )SAVE with )DUMP
Date: Wed, 24 Feb 2021 17:41:21 +0100
User-agent: mu4e 1.4.14; emacs 28.0.50

Hi Jürgen, Blake, APLers,

wouldn't it be a low effort approach to switch to )DUMP-format as
general workspace file format, having at the end an optional
⍝-area containing <StateIndicator levels="1"> from the current
XML-fileformat.

If this ⍝-area is present loading the file, it gets parsed and loaded,
otherwise it is loaded as currently without state indicator.

just my 2cents - :) Otto

Blake McBride <blake1024@gmail.com> writes:

> On Wed, Feb 24, 2021 at 7:06 AM Dr. Jürgen Sauermann <
> mail@jürgen-sauermann.de> wrote:
>
>> [...]
>>
>> First of all, )save produces an old file format.These days )dump is
>> preferred over )save
>> since it makes it much easier to recover most of a broken workspace files,
>> and the )dump
>> format is pretty much directly executable APL code rather than xml. That
>> makes )dump more
>> independent of the interpreter version than )save.
>>
>> The only disadvantage of )dump is that it does not save the )SI stack likw
>> )save does.
>> So when you )dump a workspace the you loose the )SI stach and with it all
>> local variables.
>> [...]
>>
>
>  Two points:
>
> 1.  It is confusing to have two formats.
>
> 2.  Preferring )DUMP, which isn't even part of standard APL, is, in a
> sense, changing the language.
>
> My suggestion is:
>
> A.  Get rid of )SAVE
> B.  Rename )DUMP to )SAVE
> C.  Enhance the dump format to save the SI.
>
> Blake McBride






-- 
Dipl. Ing. (FH) Otto Diesenbacher-Reinmüller
diesenbacher.net
Salzburg, Österreich



reply via email to

[Prev in Thread] Current Thread [Next in Thread]