~/talk

Interactive command-line tutorials with WebAssembly

Talkat Conf42 JavaScript 2022 · on Thursday, 2022-11-17· [webassembly, web-platform]
slides:none on file

Sandbox.bio runs real C/C++ command line tools compiled to WebAssembly with emcc/Emscripten, so awk jq and GNU coreutils execute entirely in the browser with no server compute; the UI uses xterm.js and a IndexedDB-backed virtual FS created by Emscripten to persist edits. This makes the tutorials cheap to scale, responsive and safer, but compiling can fail for threads, SIMD variants, inline assembly or sockets and very large datasets still overwhelm the browser.

AI-written summary · about

  1. 0:00Introduction
  2. 0:58What is sandbox.bio
  3. 2:03WebAssembly basics
  4. 3:51Why WebAssembly is powerful
  5. 5:18Compiling with Emscripten
  6. 8:28Challenges compiling to WASM
  7. 9:54CLI tools in browser
  8. 12:25WASM vs server execution
  9. 14:54Advantages of using WebAssembly
  10. 15:57Disadvantages and limitations of WebAssembly
  11. 17:04When not to use WASM
  12. 19:32WASM outside browser
  13. 21:40Resources and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.