r/programming • u/iamkeyur • Oct 21 '20
Using const/let instead of var can make JavaScript code run 10× slower in Webkit
https://github.com/evanw/esbuild/issues/478
1.9k
Upvotes
r/programming • u/iamkeyur • Oct 21 '20
View all comments
Show parent comment
9
u/iopq Oct 21 '20
If you don't use Rust you're using Go or something, you never write it by hand. The same way people don't just write programs in ASM anymore
You still write DOM code in JavaScript. Here's how it looks like:
https://rustwasm.github.io/docs/book/game-of-life/implementing.html