WebAssembly across Platforms: Running Native Apps in the Browser, Cloud, and Edge

Authors

  • Guru Pramod Rusum Independent Researcher, USA. Author

DOI:

https://doi.org/10.63282/3050-9246.IJETCSIT-V3I1P112

Keywords:

WebAssembly, Runtime Systems, Cross-Platform, Native Applications, Edge Computing, Wasmer, Browser Runtime, Portable Code

Abstract

WebAssembly (Wasm) is a highlights-based instruction layout conceived with the help of safe, rapid, and portable execution of code on an assortment of stages, with the most notable one being the web. This paper will discuss how WebAssembly enables the execution of native applications in browsers, clouds, and on edge devices. We contextualize Wasm through the history of modern runtime systems and web technologies, and peer into the structure of the spec, the strategies of its compilation and deployment across platforms. The paper evaluates various runtime engines, including Wasmtime, Wasmer, and V8, as well as their optimisations and applications in the real world. Experimental evidence supporting performance trade-offs is analyzed in detail. Additionally, we discuss the security and sandboxing capabilities of Wasm, which make it a reliable option for executing untrusted code. We also suggest a method for creating cross-platform applications in languages such as Rust and C/C++, compiling them into Web Assembly (Wasm), and deploying the results effortlessly across web, cloud, and edge environments. Major vendors of clouds and IoT deployments are examined in terms of real-life use cases. The outcomes indicate that WebAssembly drastically minimizes the latency in cloud-to-edge communications and adds portability to applications. Future directions of research are discussed in the conclusion, which involve native threading support, garbage collection, and extended hardware capabilities

Downloads

Download data is not yet available.

References

[1] Haas, A., Rossberg, A., Schuff, D. L., Titzer, B. L., Holman, M., Gohman, D., ... & Bastien, J. F. (2017, June). Bringing the web up to speed with WebAssembly. In Proceedings of the 38th ACM SIGPLAN conference on programming language design and implementation (pp. 185-200).

[2] Sipek, M., Muharemagic, D., Mihaljevic, B., & Radovan, A. (2021). Next-generation Web Applications with WebAssembly and TruffleWasm. arXiv.

[3] Xu, M., Fu, Z., Ma, X., Zhang, L., Li, Y., Qian, F., ... & Liu, X. (2021, November). From cloud to edge: A first look at public edge platforms. In Proceedings of the 21st ACM Internet Measurement Conference (pp. 37-53).

[4] Golsch, L. (2019). WebAssembly: Basics. Technical University of Braunschweig- 2019.

[5] Manhas, J. (2015). Comparative Study of cross Cross-Browser Compatibility as a design issue in various websites. BVICA M's International Journal of Information Technology, 7(1), 815.

[6] Koren, I. (2021, May). A standalone web assembly development environment for the Internet of Things. In International Conference on Web Engineering (pp. 353-360). Cham: Springer International Publishing.

[7] Wen, E., & Weber, G. (2020, October). Wasmachine: Bring the edge up to speed with a webassembly os. In 2020 IEEE 13th International Conference on Cloud Computing (CLOUD) (pp. 353-360). IEEE.

[8] Gurdeep Singh, R., & Scholliers, C. (2019, October). WARDuino: a dynamic WebAssembly virtual machine for programming microcontrollers. In Proceedings of the 16th ACM SIGPLAN International Conference on Managed Programming Languages and Runtimes (pp. 27-36).

[9] Rourke, M. (2018). Learn WebAssembly: Build web applications with native performance using Wasm and C/C++. Packt Publishing Ltd.

[10] Kyriakou, K. I. D., Tselikas, N. D., & Kapitsaki, G. M. (2019). Enhancing C/C++ based OSS development and discoverability with CBRJS: A Rust/Node. js/WebAssembly framework for repackaging legacy codebases. Journal of Systems and Software, 157, 110395.

[11] Scherer, J. (2020). Hands-on JavaScript High Performance: Build Faster Web Apps Using Node. JS, Svelte. JS and WebAssembly. Packt Publishing Ltd.

[12] Nurul-Hoque, M., & Harras, K. A. (2021, October). Nomad: Cross-platform computational offloading and migration in femtoclouds using webassembly. In 2021 IEEE International Conference on Cloud Engineering (IC2E) (pp. 168-178). IEEE.

[13] Trigaux, D., Allacker, K., & Debacker, W. (2021). Environmental benchmarks for buildings: a critical literature review. The International Journal of Life Cycle Assessment, 26, 1-21.

[14] Zanella, A., Camanho, A. S., & Dias, T. G. (2013). Benchmarking countries’ environmental performance. Journal of the Operational Research Society, 64(3), 426-438.

[15] Jain, S. M. (2021). WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps. Apress.

[16] David Bryant. 2020. WebAssembly Outside the Browser: A New Foundation for Pervasive Computing.

[17] Mendki, P. (2020, October). Evaluating webassembly enabled serverless approach for edge computing. In 2020 IEEE Cloud Summit (pp. 161-166). IEEE.

[18] Lv Junyan, Xu Shiguo, and Li Yijie. 2009. Application research of embedded database SQLite. In International Forum on Information Technology and Applications (IFITA'09). IEEE.

[19] Napieralla, J. (2020). Considering webassembly containers for edge computing on hardware-constrained IoT devices.

[20] Li, Y., Katsipoulakis, N. R., Chandramouli, B., Goldstein, J., & Kossmann, D. (2017). Mison: a fast JSON parser for data analytics. Proceedings of the VLDB Endowment, 10(10), 1118-1129.

[21] Rahul, N. (2020). Vehicle and Property Loss Assessment with AI: Automating Damage Estimations in Claims. International Journal of Emerging Research in Engineering and Technology, 1(4), 38-46. https://doi.org/10.63282/3050-922X.IJERET-V1I4P105

[22] Enjam, G. R., & Chandragowda, S. C. (2020). Role-Based Access and Encryption in Multi-Tenant Insurance Architectures. International Journal of Emerging Trends in Computer Science and Information Technology, 1(4), 58-66. https://doi.org/10.63282/3050-9246.IJETCSIT-V1I4P107

[23] Pappula, K. K. (2021). Modern CI/CD in Full-Stack Environments: Lessons from Source Control Migrations. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 2(4), 51-59. https://doi.org/10.63282/3050-9262.IJAIDSML-V2I4P106

[24] Pedda Muntala, P. S. R., & Jangam, S. K. (2021). Real-time Decision-Making in Fusion ERP Using Streaming Data and AI. International Journal of Emerging Research in Engineering and Technology, 2(2), 55-63. https://doi.org/10.63282/3050-922X.IJERET-V2I2P108

[25] Rahul, N. (2021). AI-Enhanced API Integrations: Advancing Guidewire Ecosystems with Real-Time Data. International Journal of Emerging Research in Engineering and Technology, 2(1), 57-66. https://doi.org/10.63282/3050-922X.IJERET-V2I1P107

[26] Enjam, G. R., Chandragowda, S. C., & Tekale, K. M. (2021). Loss Ratio Optimization using Data-Driven Portfolio Segmentation. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 2(1), 54-62. https://doi.org/10.63282/3050-9262.IJAIDSML-V2I1P107

Published

2022-03-30

Issue

Section

Articles

How to Cite

1.
Rusum GP. WebAssembly across Platforms: Running Native Apps in the Browser, Cloud, and Edge. IJETCSIT [Internet]. 2022 Mar. 30 [cited 2025 Sep. 13];3(1):107-15. Available from: https://ijetcsit.org/index.php/ijetcsit/article/view/341

Similar Articles

21-30 of 224

You may also start an advanced similarity search for this article.