r/computerscience • • 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.

43 Upvotes

66 comments sorted by

View all comments

Show parent comment

-1

u/meat-eating-orchid Nov 10 '25

Yes. If it is not tiring complete, I do not consider it a programming language.

3

u/cc672012 Nov 10 '25

Agda isn't Turing-Complete but it can compute any total and terminating functions. It simply doesn't have a construct for "while true" that you would want in a web service. Simply because the type checker cannot prove that it halts (a Turing Machine will happily accept this)

It is a programming language in the sense that you're able to write functions with inputs and outputs in it. However, it is simply impossible to formulate the decision Halting Problem in Agda, Coq, or Lean4 for that matter.

If you don't consider these as programming languages, you're the odd one out

1

u/the3gs Nov 10 '25

Rocq can simulate a Turing machine for any finite number of steps. The only thing it cannot do is run a program until a arbitrary Turing machine halts.

Turing completeness is most useful as a maximum complexity that a practical programming language can have, but saying that a language is not a programming language because it is not Turing complete is kinda like saying that the rationals are not numbers because they are not Dedekind complete.

Turing completeness is a property that some computational systems have, and programming languages are types of computational systems.