WebAssembly / WebAssembly/wasi-sdk

Any example or documentation how to run it in browser?

Open
#235 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CMake
Stars
1.6k
Forks
237
Avg merge
18h 26m
Merged PRs (30d)
5

Description

I want use wasi-sdk as backend c++ compiler/std-libraries to build my little library. Emscripten it seems too huge and highweight for my tasks. So I need just build library as wasm with supporting memory allocation(new/delete) and run functions from this library from javascript inside browser's page.

But i spent already many time to find normal tutorial: "from beginning to the end" - but found only very very scattered information with different technologies and libraries....

Is there any normal documentation: how can i just build c++ libarary with wasi-sdk and call it's functions from pure js ???

PS
I am very new in wasm - so sorry for may be dumb questions

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

No file, test, or entry point is named. Start by reviewing the existing wasi-sdk documentation and the requested C++ library-to-browser workflow, then define a single end-to-end example using pure JavaScript; done means a newcomer can build the library with wasi-sdk and call its functions from a browser page.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, javascript, wasm
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.