arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.00646cs.SE
收藏

WebAssembly 应用中的问题及其成因:一项实证研究

Issues and Their Causes in WebAssembly Applications: An Empirical Study

Muhammad Waseem, Teerath Das, Aakash Ahmad, Peng Liang, Tommi Mikkonen

AI总结:

本文通过挖掘 GitHub 的 385 个 issue 与 Stack Overflow 的 354 个问答帖,构建 Wasm 应用问题及根本原因的实证分类体系,以支持其设计、开发与重构。

摘要:

WebAssembly(Wasm)是一种二进制指令格式,旨在沙箱环境(主要是 Web 应用和浏览器)中安全、高效地执行,以提升 Web 编程语言的性能、安全性和灵活性。近年来,Wasm 在学术研究界和工业开发项目中受到广泛关注,被用于构建高性能 Web 应用。尽管 Wasm 具有上述优势,开发者仍会遇到大量源于 Wasm 的问题(例如故障、错误、失效),并且往往不了解影响 Web 应用开发的这些问题的根本原因。为此,我们开展了一项实证研究,挖掘并记录了实践者的知识:这些知识表现为来自 GitHub 上部署的 12 个开源 Wasm 项目的 385 个 issue,以及通过 Stack Overflow 获取的 354 个问答帖子。总体而言,我们识别出 120 种问题类型,并将其划分为 19 个子类和 9 个大类,从而建立了基于 Wasm 的应用中所遇问题的分类体系。此外,对问题的根本原因分析帮助我们识别出 278 种成因,并将其划分为 29 个子类和 10 个大类,形成成因分类体系。我们的研究首次提出了开发者在基于 Wasm 的应用中面临的问题及其根本原因的分类体系。这些从 GitHub 和 SO 中识别出的问题—成因分类体系提供了基于实证得出的指导原则,可指导研究人员和从业者设计、开发和重构基于 Wasm 的应用。

英文摘要:

WebAssembly (Wasm) is a binary instruction format designed for secure and efficient execution within sandboxed environments -- predominantly web apps and browsers -- to facilitate performance, security, and flexibility of web programming languages. In recent years, Wasm has gained significant attention from the academic research community and industrial development projects to engineer high-performance web applications. Despite the offered benefits, developers encounter a multitude of issues rooted in Wasm (e.g., faults, errors, failures) and are often unaware of their root causes that impact the development of web applications. To this end, we conducted an empirical study that mines and documents practitioners' knowledge expressed as 385 issues from 12 open-source Wasm projects deployed on GitHub and 354 question-answer posts via Stack Overflow. Overall, we identified 120 types of issues, which were categorized into 19 subcategories and 9 categories to create a taxonomical classification of issues encountered in Wasm-based applications. Furthermore, root cause analysis of the issues helped us identify 278 types of causes, which have been categorized into 29 subcategories and 10 categories as a taxonomy of causes. Our study led to first-of-its-kind taxonomies of the issues faced by developers and their underlying causes in Wasm-based applications. The issue-cause taxonomies -- identified from GitHub and SO, offering empirically derived guidelines -- can guide researchers and practitioners to design, develop, and refactor Wasm-based applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑