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.

45 Upvotes

66 comments sorted by

View all comments

Show parent comment

1

u/binarycow Nov 10 '25

Python is not "compiled"

The compiler I wrote converted Python 3

So... Python is sometimes compiled?

That proves my point.

The keyword here is translated

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.

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

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"

Pseudocode often is formalized within the same course or same author.

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.

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.

Cool.

  • That's not the definition that everyone uses.
  • There's no IEEE or RFC standard defining the term.

Hence, it's fuzzy.

1

u/iLaysChipz Nov 11 '25 edited Nov 11 '25

Compilation is a static (pre runtime) process. Translation is a dynamic runtime process. There is a world of difference in implementation, implications, and many many other things. I would not advise going around saying that a runtime translation is anywhere near the "same thing" we compilation

The rest of your spiel is just an opinionated perspective, which you're of course entitled to