IDEAS home Printed from https://ideas.repec.org/h/wsi/wschap/9789814699525_0005.html
   My bibliography  Save this book chapter

Persistence and Memory

In: Derivatives Algorithms Volume 1: Bones

Author

Listed:
  • Tom Hyer

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.

Suggested Citation

  • Tom Hyer, 2015. "Persistence and Memory," World Scientific Book Chapters, in: Derivatives Algorithms Volume 1: Bones, chapter 5, pages 71-96, World Scientific Publishing Co. Pte. Ltd..
  • Handle: RePEc:wsi:wschap:9789814699525_0005
    as

    Download full text from publisher

    File URL: https://www.worldscientific.com/doi/pdf/10.1142/9789814699525_0005
    Download Restriction: Ebook Access is available upon purchase.

    File URL: https://www.worldscientific.com/doi/abs/10.1142/9789814699525_0005
    Download Restriction: Ebook Access is available upon purchase.
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:wsi:wschap:9789814699525_0005. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Tai Tone Lim (email available below). General contact details of provider: http://www.worldscientific.com/page/worldscibooks .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.