Skip to main content
QUICK REVIEW

[Paper Review] From Declarative Languages to Declarative Processing in Computer Games

Benjamin Sowell, Alan Demers|ArXiv.org|Sep 9, 2009
Advanced Database Systems and QueriesComputer Science10 references4 citations
TL;DR

This paper proposes a paradigm shift in game engine design by replacing imperative scripting with declarative processing, compiling character AI from imperative code into relational algebra for execution on a main-memory database-like engine. The key contribution is a research agenda for declarative game systems, emphasizing atomic actions, reactive programming, adaptive query plans, and support for parallel and multiplayer environments, aiming to revolutionize game engine architecture.

ABSTRACT

Recent work has shown that we can dramatically improve the performance of computer games and simulations through declarative processing: Character AI can be written in an imperative scripting language which is then compiled to relational algebra and executed by a special games engine with features similar to a main memory database system. In this paper we lay out a challenging research agenda built on these ideas. We discuss several research ideas for novel language features to support atomic actions and reactive programming. We also explore challenges for main-memory query processing in games and simulations including adaptive query plan selection, support for parallel architectures, debugging simulation scripts, and extensions for multi-player games and virtual worlds. We believe that these research challenges will result in a dramatic change in the design of game engines over the next decade.

Motivation & Objective

  • To transform game engine architecture by replacing imperative AI scripting with declarative processing.
  • To enable high-performance execution of game logic through compilation into relational algebra and main-memory database-style query processing.
  • To address challenges in scalability, debugging, and support for parallel and multiplayer environments in declarative game systems.
  • To explore novel language features such as atomic actions and reactive programming primitives for game logic.
  • To lay the foundation for a new generation of game engines built on declarative foundations and advanced query optimization.

Proposed method

  • Compile character AI written in imperative scripting languages into relational algebra expressions.
  • Execute the compiled relational algebra using a specialized game engine with main-memory database system characteristics.
  • Integrate adaptive query plan selection to optimize runtime performance based on workload dynamics.
  • Leverage parallel architectures through data-parallel execution models for scalable game logic processing.
  • Support debugging of simulation scripts via provenance tracking and declarative query interfaces.
  • Extend the model to support multi-player games and virtual worlds using distributed declarative processing techniques.

Experimental results

Research questions

  • RQ1How can imperative game AI code be effectively compiled into relational algebra for efficient execution?
  • RQ2What language features—such as atomic actions and reactive programming—are needed to express complex game behaviors declaratively?
  • RQ3How can adaptive query optimization improve performance in dynamic game environments?
  • RQ4What are the challenges and solutions for scaling declarative game processing across parallel and distributed architectures?
  • RQ5How can debugging and provenance tracking be integrated into declarative game logic execution?

Key findings

  • The paper establishes that declarative processing can significantly improve performance and maintainability of game AI by leveraging database-style optimization and execution.
  • Relational algebra compilation enables efficient, scalable, and debuggable execution of character behaviors in game simulations.
  • Adaptive query plan selection is essential for handling the dynamic and unpredictable workloads typical in real-time games.
  • Support for parallel and distributed execution is critical for scaling declarative game engines to complex, large-scale virtual worlds.
  • The integration of reactive programming and atomic actions enhances expressiveness and correctness in declarative game logic.
  • The research agenda presented provides a foundation for a fundamental shift in game engine design toward declarative, database-inspired architectures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.