r/computerscience • u/PryanikXXX • Nov 10 '25
General What can be considered a programming language?
From what I know, when talking about programming languages, we usually mean some sort of formal language that allows you to write instructions a computer can read and execute, producing an expected output.
But are there any specific criteria on here? Let's say a language can model only one single, simple algorithm/program that is read and executed by a computer. Can it be considered a programming language?
By a single and simple algorithm/program, I mean something like:
- x = 1
or, event-driven example:
- On Join -> Show color red
And that's it, in this kind of language, there would be no other possible variations, but separate lexemes still exist (x, =, 1), as well as syntax rules.
View all comments
Show parent comment
1
u/iLaysChipz Nov 10 '25 edited Nov 10 '25
This describes an ISA (or machine code / binary). This is not the same as an assembly language, speaking as someone who has written their own compiler
Python is not "compiled". It exists in the machine as human readable text, then it is translated into machine code at runtime using Python's just in time compiler. The keyword here is translated. It is still a scripting language that is interpreted.
Pseudocode often is formalized within the same course or same author. Knuth, who is the author of "The Art of Programming" has basically defined the standard for pesudocode that the majority of textbook writers in academia now use. And even if we don't include that, you could say that its syntax and semantics are still inherently constrained by the grammar of the English language
The only "fuzziness" is that some languages can be compiled or interpreted. The compiler I wrote converted Python 3 into x86 assembly for example. But in general, Python is largely considered a scripting language, just as how C# is largely considered a compiled language.
As for what counts as low level, I would limit that to anything that has a 1:1 translation into machine code, namely assembly languages. Anything that can't be assembled (i.e. must be flattened first) is a higher level language