Logo do repositório
 
A carregar...
Miniatura
Publicação

Efficient data exchange between WebAssembly modules

Utilize este identificador para referenciar este registo.
Nome:Descrição:Tamanho:Formato: 
futureinternet-16-00341.pdf6.53 MBAdobe PDF Ver/Abrir

Orientador(es)

Resumo(s)

In the past two decades, there has been a noticeable decoupling of machines and operating systems. In this context, WebAssembly has emerged as a promising alternative to traditional virtual machines. Originally designed for execution in web browsers, it has expanded to executing code in restricted and secure environments, and it stands out for its rapid startup, small footprint, and porta- bility. However, WebAssembly presents significant challenges in data transfer and the management of interactions with the module. Its specification requires each module to have its own memory, re- sulting in a “share-nothing” architecture. This restriction, combined with the limitations of importing and exporting functions that only handle numerical values, and the absence of an application binary interface (ABI) for sharing more complex data structures, leads to efficiency problems; these are exacerbated by the variety of programming languages that can be compiled and executed in the same environment. To address this inefficiency, the Karmem was designed and developed. It includes a new interface description language (IDL) aimed at facilitating the definition of data, functions, and relationships between modules. Additionally, a proprietary protocol—an optimized ABI for efficient data reading and minimal decoding cost—was created. A code generator capable of producing code for various programming languages was also conceived, ensuring harmonious interaction with the ABI and the foreign function interface. Finally, the compact runtime of Karmem, built atop a WebAssembly runtime, enables communication between modules and shared memory. Results of the experiments conducted show that Karmem represents an innovation in data communication for WASM in multiple environments and demonstrates the ability to overcome challenges of efficiency and interoperability.

Descrição

Palavras-chave

Data-oriented design Inter-process communication Performance optimization Serialization WebAssembly

Contexto Educativo

Citação

SILVA, Lucas ; METRÔLHO, José ; Fernando Ribeiro (2024) - "Efficient data exchange between WebAssembly modules". Future Internet. 16:9, p. 341. DOI: https://doi.org/10.3390/fi16090341

Projetos de investigação

Unidades organizacionais

Fascículo