The Promise and Pitfalls of WebAssembly: Perspectives from the Industry

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: He, Ningyu, Cao, Shangtong, Wang, Haoyu, Guo, Yao, Luo, Xiapu
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909555027345408
author He, Ningyu
Cao, Shangtong
Wang, Haoyu
Guo, Yao
Luo, Xiapu
author_facet He, Ningyu
Cao, Shangtong
Wang, Haoyu
Guo, Yao
Luo, Xiapu
contents As JavaScript has been criticized for performance and security issues in web applications, WebAssembly (Wasm) was proposed in 2017 and is regarded as the complementation for JavaScript. Due to its advantages like compact-size, native-like speed, and portability, Wasm binaries are gradually used as the compilation target for industrial projects in other high-level programming languages and are responsible for computation-intensive tasks in browsers, e.g., 3D graphic rendering and video decoding. Intuitively, characterizing in-the-wild adopted Wasm binaries from different perspectives, like their metadata, relation with source programming language, existence of security threats, and practical purpose, is the prerequisite before delving deeper into the Wasm ecosystem and beneficial to its roadmap selection. However, currently, there is no work that conducts a large-scale measurement study on in-the-wild adopted Wasm binaries. To fill this gap, we collect the largest-ever dataset to the best of our knowledge, and characterize the status quo of them from industry perspectives. According to the different roles of people engaging in the community, i.e., web developers, Wasm maintainers, and researchers, we reorganized our findings to suggestions and best practices for them accordingly. We believe this work can shed light on the future direction of the web and Wasm.
format Preprint
id arxiv_https___arxiv_org_abs_2503_21240
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Promise and Pitfalls of WebAssembly: Perspectives from the Industry
He, Ningyu
Cao, Shangtong
Wang, Haoyu
Guo, Yao
Luo, Xiapu
Software Engineering
As JavaScript has been criticized for performance and security issues in web applications, WebAssembly (Wasm) was proposed in 2017 and is regarded as the complementation for JavaScript. Due to its advantages like compact-size, native-like speed, and portability, Wasm binaries are gradually used as the compilation target for industrial projects in other high-level programming languages and are responsible for computation-intensive tasks in browsers, e.g., 3D graphic rendering and video decoding. Intuitively, characterizing in-the-wild adopted Wasm binaries from different perspectives, like their metadata, relation with source programming language, existence of security threats, and practical purpose, is the prerequisite before delving deeper into the Wasm ecosystem and beneficial to its roadmap selection. However, currently, there is no work that conducts a large-scale measurement study on in-the-wild adopted Wasm binaries. To fill this gap, we collect the largest-ever dataset to the best of our knowledge, and characterize the status quo of them from industry perspectives. According to the different roles of people engaging in the community, i.e., web developers, Wasm maintainers, and researchers, we reorganized our findings to suggestions and best practices for them accordingly. We believe this work can shed light on the future direction of the web and Wasm.
title The Promise and Pitfalls of WebAssembly: Perspectives from the Industry
topic Software Engineering
url https://arxiv.org/abs/2503.21240