~/talk

Enhancing your Haskell with Dependently Typed Programming

Talkat LambdaConf 2017 · 2017-05-25..05-27· [machine-learning, typescript]
name:Justin Le
links:none on file
slides:none on file

Dependently-typed Haskell is used to build a neural‑network implementation whose linear algebra stays identical but whose dimension mismatches move from runtime crashes to compile‑time errors. The code uses HMatrix for BLAS-backed vectors/matrices, GHC extensions (DataKinds, TypeLits, KnownNat), and the singletons pattern to reflect sizes at runtime. Result: backprop and random weight generation compile as before yet become total runNet functions with shape safety and no silent dimension bugs.

AI-written summary · about

  1. 0:00Neural network basics
  2. 2:26Naive Haskell implementation
  3. 6:21Issues with untyped code
  4. 10:45Limitations of testing
  5. 17:51Introduction to data kinds
  6. 22:50Typed neural networks
  7. 31:58The singleton pattern
  8. 38:10Conclusion 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.