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 条
  • [41] A classification of stereotypes for object-oriented modeling languages
    Berner, S
    Glinz, M
    Joos, S
    [J]. UML'99 - THE UNIFIED MODELING LANGUAGE: BEYOND THE STANDARD, 1999, 1723 : 249 - 264
  • [42] AN ALGEBRAIC MODEL OF SUBTYPES IN OBJECT-ORIENTED LANGUAGES
    BRUCE, KB
    WEGNER, P
    [J]. SIGPLAN NOTICES, 1986, 21 (10): : 163 - 172
  • [43] ALGEBRAIC OPTIMIZATION OF OBJECT-ORIENTED QUERY LANGUAGES
    BEERI, C
    KORNATZKY, Y
    [J]. THEORETICAL COMPUTER SCIENCE, 1993, 116 (01) : 59 - 94
  • [44] Special Track on Object-Oriented Languages and Systems
    DIBRIS, University of Genova, Italy
    [J]. Proc ACM Symp Appl Computing, (1490-1491):
  • [45] Accessing Objects Locally in Object-Oriented Languages
    Kwon, Keehang
    [J]. JOURNAL OF OBJECT TECHNOLOGY, 2005, 4 (02): : 151 - 156
  • [46] OBJECT-ORIENTED QUERY LANGUAGES - THE NOTION AND THE ISSUES
    BERTINO, E
    NEGRI, M
    PELAGATTI, G
    SBATTELLA, L
    [J]. IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 1992, 4 (03) : 223 - 237
  • [47] REASONING AND REFINEMENT IN OBJECT-ORIENTED SPECIFICATION LANGUAGES
    LANO, K
    HAUGHTON, H
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1992, 615 : 78 - 95
  • [48] GENERALIZATION - AN ACTIVITY PROMOTED BY OBJECT-ORIENTED LANGUAGES
    LALONDE, W
    PUGH, J
    [J]. JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1988, 1 (02): : 48 - 52
  • [49] STRONG TYPING OF OBJECT-ORIENTED LANGUAGES REVISITED
    MADSEN, OL
    MAGNUSSON, B
    MOLLERPEDERSEN, B
    [J]. SIGPLAN NOTICES, 1990, 25 (10): : 140 - 150
  • [50] Semantic Subtyping for Imperative Object-Oriented Languages
    Ancona, Davide
    Corradi, Andrea
    [J]. ACM SIGPLAN NOTICES, 2016, 51 (10) : 568 - 587