WasmEdge or how to run webassembly code as a native object in a containerized environment

Adaltas
8 min readSep 29, 2022

With many security challenges solved by design in its core conception, lots of projects benefit from using WebAssembly.

WasmEdge runtime is an efficient Virtual Machine optimized for edge computing. Its main use cases are:

  • Jamstack apps, through a static front end with a serverless backend (FaaS)
  • Automobiles
  • IoT and Stream processing

It is an embeddable virtual machine that can be used as a process, in a process, or orchestrated as a native OCI container (providing an OCI compliant interface).

What is WebAssembly?

WebAssembly (Wasm) is a byte-code meant to be run alongside JavaScript, it is a successor to a few projects designed to speed-up code running in a browser.

Its most notable predecessors are asm.js and Google Native Client (GNI).

Asm.js and GNI had two different philosophies. The former uses a subset of JavaScript, therefore you only need a JavaScript engine to execute it. While the latter is a fully-fledged sandbox meant to be integrated into web browsers.

EmScripten is a tool allowing you to convert LLVM based byte-code (C, C++, Rust) to…

--

--

Adaltas

Open Source consulting - Big Data, Data Science, Node.js