hand drawn curves on the canvas are approximated to cubic beziers using gradient descent in wasm .
Code is written in C and compiled to was
Automatic differentiation is done using https://enzyme.mit.edu/
Show HN: Curve Fitting Bezier Curves in WASM with Enzyme Ad | Heykuki News