~/talk

Strongly Typed Financial Software

Talkat Rustikon 2025 · on Wednesday, 2025-03-26· [rust, databases]
slides:none on file

Builds a spot-swap server with Axum + Tokio server and Leptos client, uses Rust traits, generics, newtype wrappers and macros to enforce money rules, and implements an unsigned decimal using U128 with six decimals precision plus signed/positive wrappers to prevent negative or zero where disallowed. Uses a phantom type parameter to tag USD vs EUR so the compiler rejects mixing assets; a real bug (subtracting euros from dollars) cost ~30 minutes to debug before being eliminated by these types.

AI-written summary · about

  1. 0:00Strongly typed financial software
  2. 2:15Strong typing in financial code
  3. 3:40Currency calculation mistakes fixed
  4. 7:32Spot swap application demo
  5. 8:36Representing money with decimals
  6. 10:23Preventing negative decimals
  7. 12:51Enforcing positive decimals
  8. 14:14Strongly typed asset representations
  9. 16:21Mixed currency compile-time checks
  10. 17:02Currency exchange prices safely
  11. 18:27Strongly typed API endpoints
  12. 19:53Real-world bug fixed with types
  13. 21:26Bug classes eliminated with types
  14. 22:07Client-server with shared types
  15. 23:52Asset types in wire formats
  16. 24:33Summary and Q&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.