Skip to content

Dumping ground for simple demos related to WebAssembly

Notifications You must be signed in to change notification settings

aiham/wasm-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-study

This is a dumping ground for simple demos related to WebAssembly as I explore the various tools currently available to run wasm.

Setup

  1. Clone this repo.

  2. Install emsdk locally within this repo folder (this will take a while):

./setup-em.sh
  1. Add necessary environment variables and modify PATH in the current shell:
source ./emsdk/emsdk_env.sh
  1. If you want to use the rust demo, install rust and the emscripten target:
./setup-rust.sh

Demos

Folder Description
hello An example of compiling a C function and running it in the browser and in node
simple-wat An example of writing a module in text format and assembling into binary wasm
webassembly-add Demo of webassembly npm module
rust-helloworld An example of compiling a Rust function and running it in the browser

About

Dumping ground for simple demos related to WebAssembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published