Skip to content
0:00 / 0:00

#rust#webassembly#electron

RustConf 2019 - From Electron, to Wasm, to Rust (Aaand Back to Electron) by Iryna Shestak

Rust Programming Language

70K subscribers • 43 videos on Hallway • Conference channel

YouTube
  • One of the most-watched uploads on Rust, a conference or university channel Hallway lists. Nobody has recommended it in the communities yet, so it ranks below community picks.
  • Presented by Iryna Shestak
  • May be out of date. Uploaded 7 years ago, in an area where tools change fast.

Intermediate. Assumes working knowledge.

68K views7 years ago

Programming languagesWeb developmentRustWebAssemblyVue, Svelte, Angular and others

Iryna Shestak explains how MongoDB Compass improved performance by rewriting its schema parser in Rust and integrating it via WebAssembly.

RustConf 2019 - From Electron, to Wasm, to Rust (Aaand Back to Electron) by Iryna Shestak So you heard you can run WebAssembly in the browser, but what does this look like IRL? Seeking the much talked about performance benefits of running WASM in the browser, Compass (GUI for MongoDB) took the great leap forward and rewrote part of the application – a schema parser responsible for document analysis – in Rust. As it turns out, the rumours are true, I repeat the rumours are true: offloading parts of your application to Rust makes it fast, and in some of our cases, heaps fast. In this talk I will cover converting a part of an codebase from JavaScript to Rust, bringing it to Electron, adding WASM to an existing React app, and deploying this whole lot to production. As Compass still talks to MongoDB via Node.js, I will also cover how we used Rust to improve performance without losing data integrity. This talk is about a success story, but also about a bunch of smol mishaps, fun woopses and lil' dead ends we encountered and how we managed to overcome along the way.

Why it's here

A top upload from a listed channel

Rust is on Hallway's list of conference and university channels, and this upload is one of its most-watched talks or lectures. Nobody has recommended it in the communities yet, so it ranks below community picks.