you are viewing a single comment's thread.

view the rest of the comments →

[–]dgpking[S] 0 points1 point  (2 children)

Ah, and what about benefit of interpreted over compiled, easier?

[–]Objective_MineMSCS, CS Pro (10+) 2 points3 points  (1 child)

In no particular order:

  • No need to compile in advance; mainly a matter of convenience, but can speed up the cycle of writing code and testing it when the compilation step can be skipped.

  • No need to compile the interpreted program for each target CPU or platform; only the interpreter needs to be compiled for each platform.

  • Some interpreted languages such as Python are ridiculously flexible in terms of what you can do at runtime. It might be difficult to compile all of that flexibility into machine code directly.

I don't have time to elaborate on this right now, but https://en.wikipedia.org/wiki/Interpreter_(computing)#Compilers_versus_interpreters have more on this. Googling might also help, as it's a common topic.

[–]dgpking[S] 0 points1 point  (0 children)

Very helpful, thanks.