通过外部库链接将托管语言支持引入WebAssembly
Bringing Managed Language Support to WebAssembly with External Library Linking
AI总结:
提出WALL-E框架,通过客户端-服务器架构的外部库链接策略,将托管语言集成到WebAssembly中,避免运行时嵌套,实现数百倍加速,支持十种语言。
摘要:
WebAssembly (Wasm) 已成为一种强大的字节码格式,可在便携和安全的环境中实现接近本机性能的应用程序运行。然而,虽然Wasm目前支持C、C++和Rust等编译语言,但它缺乏对Python、Java和JavaScript等托管语言的强大支持。这一限制阻碍了在机器学习和数据处理等领域部署严重依赖托管语言生态系统的应用程序。为了解决这个问题,我们提出了WALL-E,一个新颖的框架,用于将托管语言集成到Wasm环境中,而无需复杂的运行时嵌套或重新编译。WALL-E采用独特的外部库链接策略,使用客户端-服务器架构将Wasm模块与在其本机运行时中运行的托管语言库连接起来。这种方法通过消除与双层虚拟机相关的开销,保留了托管语言的本机执行速度和语言特性兼容性。我们的评估表明,WALL-E支持十种托管语言而无需框架修改,并且与运行时嵌套解决方案相比实现了数百倍的加速,且通信开销低。WALL-E增强了Wasm在云和边缘计算中的实用性,支持高效的多语言应用程序。
英文摘要:
WebAssembly (Wasm) has emerged as a powerful bytecode format for running applications with near-native performance in portable and secure environments. However, while Wasm currently supports compiled languages like C, C++, and Rust, it lacks robust support for managed languages such as Python, Java, and JavaScript. This limitation hinders the deployment of applications in domains like machine learning and data processing that rely heavily on managed language ecosystems. To address this, we propose WALL-E, a novel framework to integrate managed languages into Wasm environments without complex runtime nesting or recompilation. WALL-E employs a unique external library linking strategy, using a client-server architecture to connect Wasm modules with managed language libraries running in their native runtimes. This approach preserves the native execution speed and language feature compatibility of managed languages by eliminating the overhead associated with double-layer virtual machines. Our evaluation shows that WALL-E supports ten managed languages without framework modifications and achieves a speedup of hundreds of times over the runtime nesting solution, with low communication overhead. WALL-E enhances the practicality of Wasm in cloud and edge computing, enabling efficient multi-language applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。