Skip to main content

Command Palette

Search for a command to run...

transpiler vs compiler vs interpreter

same same but different!!

Published
β€’2 min read
transpiler vs compiler vs interpreter
N

I am a BCA 22' graduate, a NeoGrad 22', and a software engineer by profession.

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!!πŸ€—

P
Parad1se4y ago

Thanks to you now I actually understand what those terms mean!

S

Thanks to you now I can flex πŸ˜‰

D

Nice one! I always had confusion with these terms