DEV Community

Cover image for Compiled vs Interpreted 🤔
Trinadh Koya
Trinadh Koya

Posted on

1

Compiled vs Interpreted 🤔

Top comments (3)

Collapse
 
eelstork profile image
Tea

Compiling generates processor instructions, such as instructions for, say x86 (intel) family processors. This is the CPU's native "language". The translation is performed ahead of time, so once compiled for x86 the product wouldn't run on, say, an iPhone.
Interpreting is a realtime translation where each instruction is translated at runtime. So the disadvantage, of course slower (same as you talking slower to a foreign language speaker via an... interpreter) and the advantage, more portable as any computer/platform with the interpreter (such as say, the Python interpreter) will be running your program. In some cases interpreted code can even be modified while your program is running.

Collapse
 
trinadhkoya9 profile image
Trinadh Koya

Absolutely!

Collapse
 
eelstork profile image
Tea

Ha! I thought you were asking, this is so funny.

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay