Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic/static language and compiler/interpreter

I have some questions:

  • A dynamic programming language is always interpreted? I think so, but why?
  • Are there any dynamic languages ​​with static typing system?
  • A programming language with static typing system is always compiled?

In others words, are there really a link between :

  • Static / dynamic typing system and static / dynamic language
  • Static / dynamic typing system and compiler / interpreter
  • Static / dynamic language and compiler / interpreter
like image 604
no_name Avatar asked May 07 '26 04:05

no_name


1 Answers

There is no inherent connection between the type system and the method of execution. Dynamic languages can be compiled and static languages can be interpreted. Arguably static type systems make a lot of sense with programs which are compiled before execution, as a method of catching certain kinds of errors before the program is ever executed. However, dynamic type systems solve different problems than static type systems, and interpreted execution solves different problems than compilation.

See What to know before debating type systems.

like image 149
deceze Avatar answered May 10 '26 01:05

deceze



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!