transpiler vs compiler vs interpreter

transpiler vs compiler vs interpreter

same same but different!!

ยท

2 min read

Hi folks!!
As promised i am back with an amazing blog.
In this blog we will cover the most popular terms which sounds alike but are different!

image.png

Transpiler vs Compiler vs Interpreter

We oftenly hear these terms, but couldn't particularly differentiate.

Transpiler translates a code from one programming language to another programming language at same level of abstraction.

Eg : -

  • babel transpiler(converts ECMA2015 or new versions of ECMA2015 into es5). Babel-transpiler converts the syntax of modern JavaScript into a form, which can be easily understood by older browsers.
    or, JavaScript ES2015+ -> JavaScript ES5
    "Developer code" -> "Another developer code or version"

  • typescript transpiler(converts typescript to JavaScript , which are at the same level of abstraction)

Compiler translates a code from one programming language to another programming language at different level of abstraction.
or, interprets the code from high level language to low level language or machine readable language whole at once before running the program.

Eg : -

  • "Developer code" -> "Machine code"
    PHP -> C
    Java -> bytecode

Interpreter interprets the code from high level language to low level language or machine readable language line by line at the time of program running.

image.png

Thanks for giving it a read. I hope this might have helped you to get a clear idea about the three, and now you would be able to differentiate between them! ๐Ÿ˜Š
Will be back with more blogs...See yaa ๐Ÿ˜‰!!
till then stay safe and healthy, study more, share more, gain more and grow more!!๐Ÿค—

ย