denoland / denoland/wanted_modules

deno_wasm_wasi

Open
#35 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
46
Forks
1
PR merge metrics
No merged PRs in 30d

Description

https://landscape.cncf.io/wasm

It feels like if you want to replace Docker with Wasm + WASI, and how to implement the execution resource limit and monitoring of the Wasm module is a difficult problem. Docker containers are based on cgroup and namespace implementations, plus a single-process model, which is inherently lightweight. One way to think of is to put the execution of wasm modules into a separate thread, and the system resources are controlled by cgroup2, which is more granular, but there are restrictions on the version of Linux. File resource isolation, on the other hand, can only be handled by the host itself, and Wasm VM can only perform environment isolation. In this case, docker Image provides the advantage of "strong environmental consistency", but WASI provides the advantage of system call portability independent of the kernel and instruction set architecture. In the end, there is no simple replacement method at all, and the only way to change is from the development mode, application execution mode, deployment mode, and even debugging methods. Moreover, this replaceability must also be coupled with specific business areas, after all, wasm + WASI can not completely replace all the capabilities of Docker. Considering the replacement cost and ROI, there is a long way to go.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked CNCF Wasm landscape and the discussion of WASI resource limits, monitoring, and isolation. No implementation files, tests, or concrete module requirements are named. Before implementation, seek agreement on a specific Deno module use case, supported Linux versions, and acceptance criteria; the issue does not define what done looks like.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno, docker, linux, wasm
Domain
infrastructure, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
8/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.