Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Programming language: Difference between revisions

From Coderwiki
Programming language: create
 
add static/dynamic and compiled/interpreted sections
 
Line 12: Line 12:


It takes the [[Computer instruction|instructions]] of [[machine code]] and gives them more user-friendly names, such as <code>jmp</code>, <code>mov</code>, etc. That's easier than typing out [[hexadecimal]] codes.
It takes the [[Computer instruction|instructions]] of [[machine code]] and gives them more user-friendly names, such as <code>jmp</code>, <code>mov</code>, etc. That's easier than typing out [[hexadecimal]] codes.
== Static- and dynamically-typed languages ==
A programming language's [[Data type|type system]] is one of its distinguishing features. Type systems are generally divided into two categories:
* [[Static typing]]
* [[Dynamic typing]]
== Compiled and interpreted languages ==
Different programming languages have different ways of [[Executable file|executing]] [[source code]], mainly using one of two methods (or both):
* [[Compiled language|Compiled languages]] use a [[compiler]]
* [[Interpreted language|Interpreted languages]] use an [[interpreter]]

Latest revision as of 13:22, 9 August 2025

Years ago, the only way to tell a computer what to do was directly: you had to give it exactly the instructions it understood. That meant no if statements, no functions and not even proper variables. In other words, you had to program in machine code.

This was an issue, as writing machine code takes a long time, so is expensive.

Inventing the programming language

edit edit source

Ultimately, all programming languages were invented to provide high-level abstractions to make programming easier.

Many programming languages were created to try to make the lives of developers easier, but the one that has been commonly used for the longest time is C.

Assembly is essentially one step more high-level than machine-code (the lowest-level way of programming).

It takes the instructions of machine code and gives them more user-friendly names, such as jmp, mov, etc. That's easier than typing out hexadecimal codes.

Static- and dynamically-typed languages

edit edit source

A programming language's type system is one of its distinguishing features. Type systems are generally divided into two categories:

Compiled and interpreted languages

edit edit source

Different programming languages have different ways of executing source code, mainly using one of two methods (or both):