It'd be fun to talk shop with the fast code in slow languages folks. I do that for a living. I remember three ways, but I'm sure there's more:
- "Just use a better data structure"
- "My language is a DSL for a faster language" (Polars, Numpy, etc)
- "My compiler is surprisingly good if I'm careful" (Julia, JVM, etc)
You have to learn this through suffering. Class would have to be project based.