~/talk

JavaScript Doesn't Support Operator Overloading... Right?

Talkat WhatTheStack 2026 · 2026-09-14..09-19· [javascript, typescript]
name:Iwo Plaza
github:iwoplaza
slides:none on file

Claims a practical operator-overload layer for TypeScript that keeps full type inference and normal JS ergonomics by applying surgical, procedural patches to the TypeScript compiler and emitting transformed runtime code. Implementation uses a compile-time transform plus a patched typechecker, a symbol-based overloads API and scope directives like use GPU, and already runs in production inside TypeGPU (slides built with it) and is adopted by Typenet. The trade-off is a maintained patch pipeline rather than changing JS itself.

AI-written summary · about

  1. 0:00Welcome and introduction
  2. 2:54TypeGPU and its uses
  3. 5:41Requirements for operator overloading
  4. 7:06History of operator overloading in JS
  5. 10:37Why standards rejected operator overloading
  6. 11:00Community solutions for operator overloading
  7. 13:26Limitations of JS abuse methods
  8. 14:27Bit packing vectors into numbers
  9. 15:28Global state and per-component operations
  10. 17:54Operand recording technique
  11. 19:43Code transformation approaches
  12. 22:31Function toString and AST parsing
  13. 24:40Code rewrite challenges and side effects
  14. 25:23Taichi JS and TypeScript limitations
  15. 27:09Adobe ExtendScript and AssemblyScript
  16. 28:50Introducing TSOver solution
  17. 31:58How TSOver works under the hood
  18. 32:41Maintaining TSOver fork
  19. 33:23Ecosystem adoption of TSOver
  20. 34:26Typenet library example
  21. 35:07Closing remarks and call to action
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.