My problems with JS:

1. Allocating objects or closures results in death by garbage collection.
2. So I spend tons of effort managing indices, juggling reused objects, and passing them around awkwardly because functions can only return 1 value.
3. As for the objects, only TypedArrays/ArrayBuffers are fast, but they too require juggling due to having fixed maximum lengths.

If I started using Rust or something instead, would it ease these specific problems? Or is this just my life now?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.gamedev.place/users/jonikorpi/statuses/116107688714145360 on your instance and quote it. (Note that quoting is not supported in Mastodon.)