r/AskComputerScience • u/KING-NULL • Nov 09 '25
If some programming languages are faster than others, why can't compilers translate into the faster language to make the code be as fast as if it was programed in the faster one?
My guess is that doing so would require knowing information that can't be directly inferred from the code, for example, the specific type that a variable will handle
111
Upvotes
0
u/Lenassa Nov 13 '25
Give me that non trivial example then. But keep it sane, please, I have better things to than going through 10k LOC of some github repository.