Derived values are values calculated from base values. They can be expressed in object-oriented languages by means of getters calculating the derived value, and in relational or logic databases by means of (materialized) views. However, switching to a different calculation strategy (for example caching) in object-oriented programming requires invasive code changes, and the databases limit expressiveness by disallowing recursive aggregation. In this paper, we present IceDust, a data modeling language for expressing derived attribute values without committing to a calculation strategy. IceDust provides three strategies for calculating derived values in persistent object graphs: Calculate-on-Read, Calculate-on-Write, and Calculate-Eventually. We have developed a path-based abstract interpretation that provides static dependency analysis to generate code for these strategies. Benchmarks show that different strategies perform better in different scenarios. In addition we have conducted a case study that suggests that derived value calculations of systems used in practice can be expressed in IceDust.

Original languageEnglish
Title of host publication30th European Conference on Object-Oriented Programming, ECOOP 2016
EditorsShriram Krishnamurthi, Benjamin S. Lerner
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
Number of pages26
ISBN (Electronic)978-3-95977-014-9
StatePublished - 1 Jul 2016
EventECOOP 2016 - Rome, Italy

Publication series

NameLeibniz International Proceedings in Informatics
ISSN (Print)1868-8969


ConferenceECOOP 2016

    Research areas

  • Data modeling, Domain specific language, Incremental computing

ID: 9334140