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/binarycow Nov 10 '25
So... Python is sometimes compiled?
That proves my point.
What is compilation, other than a translation? A C compiler translates C source code into object files. The linker translates object files into assembly. The assembler translates assembly to machine code.
No, it's not exactly the same. The exact category isn't necessary 99% of the time. Unless you have an academic focus, it's enough to look at the characteristics of a language and say "Oh, X is like Y, but different in Z way"
Sure, okay.
It's still not formalized outside of that scope. You can't give that psuedocode to some random developer off the street and expect them to even know where to start.
I can go to a developer and say "Do you know C#?", and if they say yes, they can read the C# code I give them.
Additionally, there's no tooling for that psuedocode language. It may not even be possible to compile it, because of unhandled ambiguity, etc.
Psuedocode is not meant to be used, it's merely to present an idea to a human.
Cool.
Hence, it's fuzzy.