0
Are interpreted languages generally faster than their compiled counterparts?
When I run a code written in Python(interpreted), it executes faster than a similar(same purpose) code run in Java or C (compiled).
5 Antworten
+ 2
An interpreted language processes your source code from scratch every time you run the program.
A compiled language first translates the program to machine code or bytecode (in case of Java). This is called 'build' and can typically take longer time than actually running the program. But the upside is, you build only once and then if you don't change anything, the subsequent runs are significantly faster.
So all things considered, compiled languages will always have a performance advantage.
+ 1
Tell about that Python program, and the similar code in Java/C. Let others test, check and verify the fact of your claim.
+ 1
actually it is vise versa.
this guy has it explained well : https://stackoverflow.com/questions/1694402/why-are-interpreted-languages-slow
0
Tibor Santa
Ohh , great explanation.
Now I get it. Thanks much.👍🏽
0
Other answers are still welcomed.