Git Product home page Git Product logo

cotb_wasm's Introduction

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

cotb_wasm's People

Contributors

hoop33 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.