I spent years tuning a JS game engine to play nice with JIT for best performance. Then rewrote engine in Rust/WASM over a few weekends (turns out JIT friendly code is straightforward to port to statically typed language) & things are an order of magnitude faster now with the benefits of static type checking & no spooky jit perf to optimize for
Just because JS can be fast doesn't mean it's a pleasure to write fast JS
Just because JS can be fast doesn't mean it's a pleasure to write fast JS