Nobody Knows How To Write JavaScript

From Sig: basic things like loop unrolling etc get JITted in mysterious ways that deeply affect performance. does malloc on each cursor movement.

Some learnings I got from her:

  • Keep discriminated union discriminator key/values short so you don't have to do string comparison under the hood
  • Sometimes for-loops are better than map/filter/reduce

Read and digest it into idioms/lint rules