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
View all comments
Show parent comment
1
u/michel_poulet Nov 10 '25
To add on the other hints, the fact you consider being a "fastidious programmer" an unnecessary thing is enough to dismiss any of your claims