Fast, Declarative, Character Simulation Using Bottom-Up Logic Programming

Ian Horswill*, Samuel Hill

*Corresponding author for this work

Research output: Contribution to journalConference articlepeer-review

Abstract

Declarative programming offers several advantages in terms of compactness and modularity. Logic programming and rule-based systems are often chosen for tasks such as social simulation because their use of declarative rules and predicates map well to rules of social engagement. Unfortunately, declarative programming is often quite slow, making it inappropriate for large systems or high-frequency updates. This is partly because of its use of search algorithms, but also because of its heavy use of pointer chasing, dynamic allocation, garbage collection, and runtime type-checking. In this paper, we discuss how bottom-up execution of logic programs can be implemented without these issues. We argue that character simulation is a “sweet spot” for bottom-up logic programming, allowing character behavior to be specified in terms of declarative rules, while offering performance competitive with Python systems such as Talk of the Town. We present a language, TED, which offers very good performance and has been used both in research and in an unannounced commercial game.

Original languageEnglish (US)
JournalCEUR Workshop Proceedings
Volume3626
StatePublished - 2023
Event10th Experimental Artificial Intelligence in Games Workshop, EXAG 2023 - Salt Lake City, United States
Duration: Oct 8 2023 → …

Keywords

  • Social simulation
  • declarative programming
  • logic programming

ASJC Scopus subject areas

  • General Computer Science

Fingerprint

Dive into the research topics of 'Fast, Declarative, Character Simulation Using Bottom-Up Logic Programming'. Together they form a unique fingerprint.

Cite this