Implementing Partial Persistence in Object-Oriented Languages

被引:0
|
作者
Pluquet, Frederic [1 ]
Langerman, Stefan [1 ]
Marot, Antoine [1 ]
Wuyts, Roel [2 ]
机构
[1] Univ Libre Bruxelles, Brussels, Belgium
[2] Imec & KULeuven, Leuven, Belgium
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A partially persistent data structure is a data structure which preserves previous versions of itself when it is modified. General;theoretical schemes are known (e.g. the fat node method) for making any data structure partially persistent. To our knowledge however no general implementation of these theoretical methods exists to date. This paper evaluates different methods to achieve this goal and presents the first working implementation. of partial persistence in the object-oriented language Java. Our approach is transparent, i.e., it allows any existing data structures to become persistent without changing its implementation where all previous solutions require an extensive modification of the code by hand. This transparent property is important in view of the large number of algorithmic results that rely on persistence. Our implementation uses aspect-oriented programming, a modularization technique which allows us to instrument the existing code with the needed hooks for the persistence implementation. The implementation is them validated by running benchmarks to analyze both the cost of persistence and of the aspect oriented approach. We also illustrate its applicability by implementing a random binary search tree and making it persistent, and then using the resulting structure to implement a point location data structure in just a few lines.
引用
收藏
页码:37 / +
页数:4
相关论文
共 50 条
  • [21] Session types for object-oriented languages
    Dezani-Ciancaglini, Mariangiola
    Mostrous, Dimitris
    Yoshida, Nobuko
    Drossopoulou, Sophia
    ECOOP 2006 - OBJECT-ORIENTED PROGRAMMING, PROCEEDINGS, 2006, 4067 : 328 - 352
  • [22] Object-oriented languages and tools proliferate
    不详
    COMPUTER DESIGN, 1996, 35 (10): : 96 - 96
  • [23] CONCURRENCY POSSIBILITIES IN OBJECT-ORIENTED LANGUAGES
    LELCHUK, TI
    PROGRAMMING AND COMPUTER SOFTWARE, 1990, 16 (06) : 246 - 255
  • [24] SELECTIVE SPECIALIZATION FOR OBJECT-ORIENTED LANGUAGES
    DEAN, J
    CHAMBERS, C
    GROVE, D
    SIGPLAN NOTICES, 1995, 30 (06): : 93 - 102
  • [25] Contract soundness for object-oriented languages
    Findler, RB
    Felleisen, M
    ACM SIGPLAN NOTICES, 2001, 36 (11) : 1 - 15
  • [26] Correspondence polymorphism for object-oriented languages
    Rinat, R
    Smith, SF
    Magidor, M
    ACM SIGPLAN NOTICES, 1999, 34 (10) : 167 - 186
  • [27] Constrained Types for Object-Oriented Languages
    Nystrom, Nathaniel
    Saraswat, Vijay
    Palsberg, Jens
    Grothoff, Christian
    OOPSLA 2008 NASHVILLE, CONFERENCE PROCEEDINGS: MUSIC CITY USA, OOPSLA, 2008, : 457 - +
  • [28] Interfacing Haskell with object-oriented languages
    Pang, ATH
    Chakravarty, MMT
    IMPLEMENTATION OF FUNCTIONAL LANGUAGES, 2004, 3145 : 20 - 35
  • [29] Macro processing in object-oriented languages
    Chiba, S
    TOOLS 28: TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES, PROCEEDINGS, 1998, 28 : 113 - 126
  • [30] Implementing reusable object-oriented components
    Smaragdakis, Y
    Batory, D
    FIFTH INTERNATIONAL CONFERENCE ON SOFTWARE REUSE - PROCEEDINGS, 1998, : 36 - 45