~/talk

Create a First AI Program with TypeScript and Serverless WebAssembly

Talkat KCD Los Angeles 2024 · 2024-03-14..03-15· [webassembly, typescript]
links:none on file
links:none on file
slides:none on file

Builds a serverless WebAssembly app using Spin and TypeScript (Rust/Python optional), compiles with spin build and serves with spin up, then calls a Llama 2 chat model for answers. Demo is a Magic 8‑ball API + static frontend, adds a KV cache to cut responses from ~40 seconds (local CPU model) to ~0.2s, and shows spin Cloud deploy plus GPU multiplexing to avoid per-request GPU cold starts. Local full models are huge (~8 GB), so cloud proxy (spin Cloud GPU) is the practical path.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03What is WebAssembly and why it matters
  3. 9:50Spin features
  4. 15:10Workshop setup
  5. 27:49Spin scaffolding
  6. 39:00JSON API with random responses
  7. 43:10AI with Llama 2
  8. 54:19Deploy to Fermyon Cloud
  9. 1:03:34Caching with KV store
  10. 1:14:58Frontend with static files
  11. 1:26:40Embeddings and vector search
  12. 1:50:20Q&A
~/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.