Evaluating Foreign Function Interface Offloading Strategies: for a Pythonic High Level Architecture API
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesisAlternative title
Utvärdering av Foreign Function Interface-avlastningsstrategier för ett Pythoniskt High Level Architecture-API (Swedish)
Abstract [en]
The High Level Architecture (HLA) standard for distributed simulation lacks a native Python API, despite the language's widespread adoption in scientific and engineering domains. While developing such an interface provides immediate engineering value, the underlying academic challenge lies in evaluating how Foreign Function Interfaces (FFIs) can be used for computation offloading. Despite the widespread use of FFIs to bridge performance gaps, there is still a lack of research into how different architectural granularities impact offloading performance.
This thesis explores FFI offloading strategies using the development of a Pythonic HLA API as the experimental domain. Three strategies were evaluated: No Offloading, Coarse-Grained Offloading, and Fine-Grained Offloading. The study was conducted in three distinct phases. First, an evaluation outside the HLA domain revealed that different FFI libraries exhibit distinct performance preferences for varying granularities. Second, an evaluation within the HLA domain identified the superiority regions for each offloading strategy based on the structural complexity of the data in the context of encoding HLA data types. The findings show that HLA encoding is a computationally inexpensive operation where the overhead costs of FFI offloading outweigh the performance gains of a faster guest language for most data structures. Finally, a prototype Python API was evaluated against the traditional HLA Java API in terms of performance and programming complexity. Results indicate that while performance is generally lower than its Java counterpart, the gap in update frequency narrows significantly as network load increases. Furthermore, quantitative metrics show a definitive decrease in programming complexity, increasing the usability and lowering the barrier to entry for distributed simulation development.
Place, publisher, year, edition, pages
2026. , p. 61
Keywords [en]
High Level Architecture (HLA), Foreign Function Interface (FFI), Computational Offloading, Offloading Granularity, Programming Complexity, Distributed Simulation
Keywords [sv]
High Level Architecture (HLA), Foreign Function Inteface (FFI), Beräkningsavlastning, Avlastningsgranularitet, Programmeringskomplexitet, Distribuerad simulering
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:liu:diva-225394ISRN: LIU-IDA/LITH-EX-A--26/037--SEOAI: oai:DiVA.org:liu-225394DiVA, id: diva2:2076492
External cooperation
BAE Systems OneArc
Subject / course
Computer science
Presentation
2026-06-09, Charles Babbage, Linköpings universitet, 581 83, Linköping, 15:15
Supervisors
Examiners
2026-06-222026-06-222026-06-22Bibliographically approved