Game Developers Need Lua AiR : Static Analysis Of Lua Using Interface Models

Paul Klint 1 L. Roosendaal 2 R. Van Rozen 1
1 ATEAMS - Analysis and Transformation based on rEliAble tool coMpositionS
Inria Lille - Nord Europe, CWI - Centrum Wiskunde & Informatica
Abstract : Game development businesses often choose Lua for separating scripted game logic from reusable engine code. Lua can easily be embedded, has simple interfaces, and offers a powerful and extensible scripting language. Using Lua, developers can create prototypes and scripts at early development stages. However, when larger quantities of engine code and script are available, developers encounter maintainability and quality problems. First, the available automated solutions for interoperability do not take domain-specific optimizations into account. Maintaining a coupling by hand between the Lua interpreter and the engine code, usually in C++, is labour intensive and error-prone. Second, assessing the quality of Lua scripts is hard due to a lack of tools that support static analysis. Lua scripts for dynamic analysis only report warnings and errors at run-time and are limited to code coverage. A common solution to the first problem is developing an Interface Definition Language (IDL) from which "glue code", interoperability code between interfaces, is generated automatically. We address quality problems by proposing a method to complement techniques for Lua analysis. We introduce Lua AiR (Lua Analysis in Rascal), a framework for static analysis of Lua script in its embedded context, using IDL models and Rascal.
Type de document :
Communication dans un congrès
Gerhard Goos; Juris Hartmanis ; Jan van Leeuwen. ICEC 2012 - 11th International Confernece on Entertainment Computing, Sep 2012, Bremen, Germany. Springer, Lecture Notes in Computer Science, 7522, pp.530-535, 2012, Entertainment Computing - ICEC 2012. 〈10.1007/978-3-642-33542-6_69〉
Liste complète des métadonnées

Littérature citée [12 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-00758607
Contributeur : Jurgen Vinju <>
Soumis le : mardi 4 juillet 2017 - 18:22:45
Dernière modification le : lundi 26 mars 2018 - 15:56:28
Document(s) archivé(s) le : vendredi 15 décembre 2017 - 02:54:03

Fichier

978-3-642-33542-6_69_Chapter.p...
Fichiers produits par l'(les) auteur(s)

Licence


Distributed under a Creative Commons Paternité 4.0 International License

Identifiants

Citation

Paul Klint, L. Roosendaal, R. Van Rozen. Game Developers Need Lua AiR : Static Analysis Of Lua Using Interface Models. Gerhard Goos; Juris Hartmanis ; Jan van Leeuwen. ICEC 2012 - 11th International Confernece on Entertainment Computing, Sep 2012, Bremen, Germany. Springer, Lecture Notes in Computer Science, 7522, pp.530-535, 2012, Entertainment Computing - ICEC 2012. 〈10.1007/978-3-642-33542-6_69〉. 〈hal-00758607〉

Partager

Métriques

Consultations de la notice

235

Téléchargements de fichiers

32