Download PDF

International Conference on Logic Programming, Date: 2008/12/09 - 2008/12/13, Location: Udine

Publication date: 2008-12-09
Volume: 5366 Pages: 621 - 635
ISBN: 3540899812, 978-3-540-89981-5 ISSN: 0302-9743
Publisher: Springer

Lecture Notes in Computer Science

Author:

Demoen, Bart
Nguyen, Phuong-Lan ; Garcia de la Banda, Maria ; Pontelli, Enrico

Keywords:

Logic Programming, Science & Technology, Technology, Computer Science, Artificial Intelligence, Computer Science, Theory & Methods, Computer Science, COMPILER

Abstract:

Two implementations of Action Rules are presented in the context of a WAM-like Prolog system: one follows a meta-call based approach, the other uses suspended WAM environments on the WAM heap. Both are based on a similar program transformation that clarifies the semantics of Action Rules, while using different primitives. Their implementation is compared experimentally to the TOAM-based implementation of Action Rules in B-Prolog. The suspension based approach is faster at reactivating agents on the instantiation event. The meta-call approach is easier to implement, performs overall very good and much better for synchronous events, and it is more flexible than the suspension based approaches.