Publication
Efficient data exchange between WebAssembly modules
dc.contributor.author | Silva, Lucas | |
dc.contributor.author | Metrôlho, J.C.M.M | |
dc.contributor.author | Ribeiro, Fernando Reinaldo | |
dc.date.accessioned | 2024-10-11T15:28:39Z | |
dc.date.available | 2024-10-11T15:28:39Z | |
dc.date.issued | 2024 | |
dc.description.abstract | 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. | pt_PT |
dc.description.sponsorship | This work was funded by National Funds through the Foundation for Science and Technology (FCT), I.P., within the scope of the project UIDB/05583/2020 and DOI identifier https://doi.org/10.54499/UIDB/05583/2020. Furthermore, we would like to thank the Research Centre in Digital Services (CISeD) and the Instituto Politécnico de Viseu for their support. | pt_PT |
dc.description.version | info:eu-repo/semantics/publishedVersion | pt_PT |
dc.identifier.citation | 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 | pt_PT |
dc.identifier.doi | 10.3390/fi16090341 | pt_PT |
dc.identifier.issn | 1999-5903 | |
dc.identifier.uri | http://hdl.handle.net/10400.11/9182 | |
dc.language.iso | eng | pt_PT |
dc.peerreviewed | yes | pt_PT |
dc.publisher | MDPI | pt_PT |
dc.relation.publisherversion | https://www.mdpi.com/1999-5903/16/9/341 | pt_PT |
dc.rights.uri | http://creativecommons.org/licenses/by/4.0/ | pt_PT |
dc.subject | Data-oriented design | pt_PT |
dc.subject | Inter-process communication | pt_PT |
dc.subject | Performance optimization | pt_PT |
dc.subject | Serialization | pt_PT |
dc.subject | WebAssembly | pt_PT |
dc.title | Efficient data exchange between WebAssembly modules | pt_PT |
dc.type | journal article | |
dspace.entity.type | Publication | |
oaire.citation.issue | 9 | pt_PT |
oaire.citation.startPage | 341 | pt_PT |
oaire.citation.title | Future Internet | pt_PT |
oaire.citation.volume | 16 | pt_PT |
person.familyName | Metrôlho | |
person.familyName | Reinaldo Silva Garcia Ribeiro | |
person.givenName | José Carlos | |
person.givenName | Fernando | |
person.identifier | 1688084 | |
person.identifier.ciencia-id | 4B17-3AF4-7DD4 | |
person.identifier.ciencia-id | 7B1C-D761-291D | |
person.identifier.orcid | 0000-0002-7327-2109 | |
person.identifier.orcid | 0000-0002-1225-3844 | |
person.identifier.scopus-author-id | 6507997502 | |
rcaap.rights | openAccess | pt_PT |
rcaap.type | article | pt_PT |
relation.isAuthorOfPublication | 195ac9ea-6661-4217-addf-ac4bc5225f90 | |
relation.isAuthorOfPublication | 165761b1-f958-4c13-b53f-ef0a4dde1d97 | |
relation.isAuthorOfPublication.latestForDiscovery | 165761b1-f958-4c13-b53f-ef0a4dde1d97 |