~/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 how to compile Swift to WebAssembly using the Carton plugin and the SwiftWasm toolchain, load modules in a normal web app and run them with runtimes like wasmer, and call JS via JavaScriptKit; distinguishes command vs reactor modules (start vs initialize) and exporting functions with Swift 6’s @expose wasm / C calling convention. Demos include a hello world, a dice button, a live graph, and a multiplayer Connect‑4 that reuses 100% of domain logic across web front end and a Vapor backend — all working live.

AI-written summary · about

  1. 0:00Introduction to Swift for WebAssembly
  2. 9:30Hello World with Carton
  3. 18:10Custom HTML with JavaScript Kit
  4. 25:20Manual WebAssembly Module Compilation
  5. 34:14Loading Module in Web App
  6. 35:17Reactor vs Command Modules
  7. 40:58Exporting Functions to WebAssembly
  8. 44:54Importing JavaScript Functions
  9. 46:19Multiplatform Connect 4 Demo
  10. 50:13Future of Swift and WebAssembly
~/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.