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 条
  • [1] Orthogonal persistence and object-oriented languages
    Lew, KCF
    Brown, AL
    [J]. PROCEEDINGS OF THE 21ST AUSTRALASIAN COMPUTER SCIENCE CONFERENCE, ACSC'98, 1998, 20 (01): : 333 - 344
  • [2] Implementing Statically Typed Object-Oriented Programming Languages
    Ducournau, Roland
    [J]. ACM COMPUTING SURVEYS, 2011, 43 (03)
  • [3] Coloring, a versatile technique for implementing object-oriented languages
    Ducournau, Roland
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 2011, 41 (06): : 627 - 659
  • [4] Partial evaluation for class-based object-oriented languages
    Schultz, UP
    [J]. PROGRAMS AS DATA OBJECTS, PROCEEDINGS, 2001, 2053 : 173 - 197
  • [5] Object persistence in object-oriented applications
    Srinivasan, V
    Chang, DT
    [J]. IBM SYSTEMS JOURNAL, 1997, 36 (01) : 66 - 87
  • [6] EXCEPTIONS IN OBJECT-ORIENTED LANGUAGES
    BORGIDA, A
    [J]. SIGPLAN NOTICES, 1986, 21 (10): : 107 - 119
  • [7] FOUNDATIONS OF OBJECT-ORIENTED LANGUAGES
    BLACK, A
    PALSBERG, J
    [J]. SIGPLAN NOTICES, 1994, 29 (03): : 3 - 11
  • [8] THE FUTURE OF OBJECT-ORIENTED LANGUAGES
    ANDERSON, J
    SUZUKI, N
    BORNING, A
    STEFIK, M
    THOMAS, D
    LIEBERMAN, H
    [J]. SIGPLAN NOTICES, 1986, 21 (11): : 507 - 507
  • [9] OBJECT-ORIENTED LANGUAGES FOR THE MACINTOSH
    SCHMUCKER, KJ
    [J]. BYTE, 1986, 11 (08): : 177 - &
  • [10] COMPARING OBJECT-ORIENTED LANGUAGES
    WARREN, RL
    [J]. DR DOBBS JOURNAL, 1994, 19 (03): : 10 - 10