~/talk

Ectype - bringing type safety (and more!) to vanilla JavaScript

Talkat Strange Loop 2023 · 2023-09-21..09-22· [javascript, typescript]
name:Holly Wu
links:none on file
slides:none on file

Claims a library + linter/type-checker pair that gives JavaScript static type-safety and runtime type introspection without compiling, with types represented as runtime values. Shows a runnable demo web server using from and conform, variants for errors, generics handled as value-level functions (with deferred cases), and JS interop via a JS unsafe wrapper. Notes trade-offs: added runtime objects, verbosity, limited syntax changes, and that the project is early but working enough to npm install.

AI-written summary · about

  1. 0:00Introduction
  2. 3:58JavaScript without transpilation
  3. 7:30Extending JavaScript syntax
  4. 8:53Live demo
  5. 11:44Primitive and compound types
  6. 12:47Variants and error handling
  7. 15:55Types as values
  8. 18:21Generics and deferred checking
  9. 21:29Conditional types and validation
  10. 23:57Integration with ecosystem
  11. 25:23Trade-offs and limitations
  12. 26:49Current state 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.