Skip to content

Why the Web Wants WebAssembly -- Code on the Beach 2019

License

Notifications You must be signed in to change notification settings

m-dimmitt-pr/cotb_wasm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why the Web Wants WebAssembly

Presentation for Code on the Beach 2019

Files

  • webassembly.md and the images directory make up the presentation, which is played through DeckSet https://www.deckset.com
  • The adder directory contains the files for the Adder application
  • The colors directory contains the files for the Colors application
  • The jscolors directory contains the JavaScript implementation of the spin function used in the Colors application

Adder

WebAssembly module in wat format to add two numbers

Adder screenshot

Requirements

Build

$ cd adder
$ make

This will compile the WebAssembly module and start a local web server. Open your browser to http://localhost:8000 and use the arrow keys to increment/decrement the addends.

Files

  • add.wat -- source for the WebAssembly module with a function to add two numbers
  • adder.js -- JavaScript to load the WebAssembly module and set the event listener to call the add function
  • index.html -- page for addend input and sum output
  • main.css -- some amateur styling

Colors

Web App in WebAssembly and Rust that displays a triadic color palettes

Colors screenshot

Requirements

Build

$ cd colors
$ wasm-pack build
$ cd www
$ npm install
$ npm run start

This will compile the WebAssembly module and start a local web server. Open your browser to http://localhost:8080, click the color at the top, select a new color, and watch the other colors update.

License

Copyright © 2019 Rob Warner

Licensed under the MIT License

About

Why the Web Wants WebAssembly -- Code on the Beach 2019

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 53.4%
  • JavaScript 32.9%
  • HTML 8.3%
  • CSS 3.9%
  • Other 1.5%