• Home
  • Search
  • Type inference for datalog and its application to query optimisation
  • Cite Icon21
  • https://doi.org/10.1145/1376916.1376957Copy DOI Icon

Type inference for datalog and its application to query optimisation

  • Jun 9, 2008
  • Oege De Moor +3 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Certain variants of object-oriented Datalog can be compiled to Datalog with negation. We seek to apply optimisations akin to virtual method resolution (a well-known technique in compiling Java and other OO languages) to improve efficiency of the resulting Datalog programs. The effectiveness of such optimisations strongly depends on the precision of the underlying type inference algorithm. Previous work on type inference for Datalog has focussed on Cartesian abstractions, where the type of each field is computed separately. Such Cartesian type inference is inherently imprecise in the presence of field equalities. We propose a type system where equalities are tracked, and present a type inference algorithm. The algorithm is proved sound. We also prove that it is optimal for Datalog without negation, in the sense that the inferred type is as tight as possible. Extensive experiments with our type-based optimisations, in a commercial implementation of object-oriented Datalog, confirm the benefits of this non-Cartesian type inference algorithm.

Similar Papers
  • Book Chapter

Type Inference in Java: Characteristics and Limitations

  • Jan 01, 2021
  • Neha Kumari +1
  • Book Chapter
  • Citations26

On the Unification of Substitutions in Type Inference

  • Jan 01, 1999
  • Bruce J Mcadam
  • Conference Article
  • Citations30

Polymorphic type inference for machine code

  • Jun 02, 2016
  • Matt Noonan +2
  • Research Article
  • Citations10

Polymorphic type inference for machine code

  • Jun 02, 2016
  • ACM SIGPLAN Notices
  • Matt Noonan +2
  • PDF
  • Research Article

Вывод типов для языка Python

  • Jan 01, 2013
  • Proceedings of the Institute for System Programming of RAS
  • I.E Bronshteyn
  • Conference Article
  • Citations14

Polymorphic type inference for scripting languages with object extensions

  • Oct 24, 2011
  • Tian Zhao
  • Conference Article

On Synergies between Type Inference, Generation and Normalization of SK-Combinator Trees

  • Sep 01, 2015
  • Paul Tarau
  • Research Article
  • Citations24

LHD 2.0: A text mining approach to typing entities in knowledge graphs

  • Jun 02, 2016
  • Journal of Web Semantics
  • Tomáš Kliegr +1
  • PDF
  • Research Article
  • Citations34

A Bi-Directional Refinement Algorithm for the Calculus of (Co)Inductive Constructions

  • Mar 02, 2012
  • Logical Methods in Computer Science
  • Andrea Asperti +3
  • Research Article

From ML type inference to stratified type inference

  • Sep 12, 2005
  • ACM SIGPLAN Notices
  • François Pottier
  • Research Article

Type inference, principal typings, and let-polymorphism for first-class mixin modules

  • Sep 12, 2005
  • ACM SIGPLAN Notices
  • Henning Makholm +1
  • Conference Article
  • Citations10

Parallel algorithms for unification and other complete problems in p

  • Jan 01, 1984
  • Jeffrey Scott Vitter +1
  • Research Article
  • Citations93

Type Inference for Recursively Constrained Types and its Application to OOP

  • Jan 01, 1995
  • Electronic Notes in Theoretical Computer Science
  • Jonathan Eifrig +2
  • Conference Article
  • Citations1

Type-based Enforcement of Infinitary Trace Properties for Java

  • Sep 06, 2021
  • Serdar Erbatur +2
  • Conference Article
  • Citations42

Type inference for COBOL systems

  • Oct 12, 1998
  • A Van Deursen +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.