persistence, serialization, history (run-to-run) in small self-contained program

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 14 01:28:56 PDT 2016


On 2016-07-14 07:18, dan wrote:
> I'm writing a small program (compiled with gdc on xubuntu 16.04).
>
> I would like it to remember a little data (a few kilobytes maybe).
>
> It looks like d comes with standard support for both sqlite3 and json
> --- is there any particular reason to prefer one over the other?   Or
> maybe something else entirely? (In each case, i would store the data in
> some file, and on second and subsequent runs of the program attempt to
> recover the data from that file if possible.)
>
> My main concern is minimizing program complexity.

There's Orange [1]. It's a serialization library that serializes to XML.

[1] https://github.com/jacob-carlborg/orange

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list