~/talk

Swift for WebAssembly - How To Use Swift In Your Web App

Talkat Swift Craft 2024 · 2024-05-21..05-24· [webassembly, swift]
slides:none on file

Shows step‑by‑step how to compile Swift to WebAssembly using the SwiftWasm toolchain (Carton plugin), JavaScriptKit and a WASI runtime, and how to load modules in a normal web app or run them with wasmer. Demos include a Carton hello world, a reusable reactor library (initialize + exports) for a dice UI, a streaming graph returning i32s, and a multiplayer Connect‑4 that reuses a shared Swift library across front end and Vapor back end (100% domain code reused). Notes: Swift 6 annotations simplify exports, binaries today run megabytes in size, and a macro proof‑of‑concept reports up to 10x build time improvements.

AI-written summary · about

  1. 0:00Introduction
  2. 2:35What is WebAssembly
  3. 3:47Swift on the web and server
  4. 6:32WebAssembly plugins for Swift
  5. 7:44Tooling and setup
  6. 9:31Hello world demo
  7. 18:17JavaScript interaction
  8. 24:33Manual WebAssembly compilation
  9. 26:16WASI and module loading
  10. 35:39Libraries and reactors
  11. 37:52Exporting and importing
  12. 41:19Interactive graph demo
  13. 45:11Connect 4 game demo
  14. 48:25Final thoughts and future
~/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.