WebAssembly / WebAssembly/component-model

Support to invoke user defined callbacks inside WASM component from wasmtime

Open
#412 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

pre-1.0
Dominant language
WebAssembly
Stars
1.4k
Forks
130
Avg merge
2d 1h
Merged PRs (30d)
15

Description

Programs like eBPF usually hire a callback function to let underlying framework to invoke it when a certain kind of event happened, to support this in WASM component model, it would be very useful to enable developers coding WASM component with callbacks.

Current WASM component model doesn't have an appropriate keyword/primitive to support that, and wasmtime doesn't support reentrance to WASM component.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating the WebAssembly component model's lack of a callback primitive and wasmtime's stated lack of component reentrance. Define the callback and reentrance behavior needed for eBPF-like event handling, then confirm that the component model and wasmtime support it consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.