Persistence and Memory
Tom Hyer
Chapter 5 in Derivatives Algorithms:Volume 1: Bones, 2015, pp 71-96 from World Scientific Publishing Co. Pte. Ltd.
Abstract:
To support both debugging of complex tasks and distributed computing, we will need to provide object persistence – the ability to save an object or transfer it to a different process, generally by writing it to a file or database.Some languages offer built-in support for this, or have a sufficiently simple object model that a general-purpose persistence library can be built. In the Python language, for example, any object is essentially a nested hash table, and the "pickle" module provides object-to-file conversions for most objects. Erlang goes even further, with built-in concurrency and little distinction between persisted and in-process data. However, partly because of the constraints required to support this universality, these languages are not really suitable for our purposes.More general-purpose languages often come with libraries which support persistence of objects built within that library: examples include CL-STORE for LISP and MFC for C++.However, there are significant advantages to writing our own persistence methods, which as far as I am aware have not been replicated in any widely available library. Foremost among these is the automatic maintenance of documentation, just as for our generated public interface. Also, serialization is nearly conceptually identical to inspection, and we will support both without duplicative code.
Keywords: Derivatives; Quantitative; Numerical; Code Generation; C++; C++11; Algorithms; Coding; Protocols; Interfaces; Persistence; Indices; Underdetermined; Multiple Dispatch; Extensibility (search for similar items in EconPapers)
Date: 2015
References: Add references at CitEc
Citations:
Downloads: (external link)
https://www.worldscientific.com/doi/pdf/10.1142/9789814699525_0005 (application/pdf)
https://www.worldscientific.com/doi/abs/10.1142/9789814699525_0005 (text/html)
Ebook Access is available upon purchase.
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:wsi:wschap:9789814699525_0005
Ordering information: This item can be ordered from
Access Statistics for this chapter
More chapters in World Scientific Book Chapters from World Scientific Publishing Co. Pte. Ltd.
Bibliographic data for series maintained by Tai Tone Lim ().