Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Avoiding spelling mistakes: a WebAssembly tale

Avoiding spelling mistakes: a WebAssembly tale

An overview of WebAssembly, a brief introduction to Rust and a real world use case for using both to provide spell checking on the frontend.
Talk given at SFScon 2020.

Riccardo Magliocchetti

November 14, 2020
Tweet

More Decks by Riccardo Magliocchetti

Other Decks in Programming

Transcript

  1. Avoiding spelling mistakes: Avoiding spelling mistakes: a WebAssembly tale a

    WebAssembly tale Riccardo Magliocchetti Riccardo Magliocchetti
  2. Avoiding spelling mistakes: Avoiding spelling mistakes: a WebAssembly tale a

    WebAssembly tale Agenda: WebAssembly Rust A real-world use case
  3. Working but still WIP Working but still WIP JS BigInt

    and 64 bit WASM Integer integra on, no Webkit SIMD, not enabled by default Threads and atomic opera ons, no Webkit , s ll experimental WASI Source: webassembly.org/roadmap
  4. WASM targets WASM targets Browsers: , JS Run me: ,

    WASM Run me: , 93% users WebAssembly MDN docs Node.js Deno wasm me wasmer
  5. Why WebAssembly? Why WebAssembly? Applica ons por ng to the

    Web, e.g. Reuse code in JavaScript One run me for many languages Pyodide
  6. Uses of Rust Uses of Rust Systems programming Embedded Good

    integra ons with other languages: C, Python, WebAssembly :) cargo-c PyO3
  7. A use case A use case Add spell checking to

    a web applica on using SymSpell
  8. Our contributions Our contributions Op mized WebAssembly por ng More

    features Tech details: Nicola Mar no at Rustlab 2020 talk
  9. That's all folks! Any question? That's all folks! Any question?

    github.com/xrmx speakerdeck.com/xrmx @rmistaken