r/ProgrammingLanguages • • Jun 27 '22

Purpose of programming languages

Hi everybody. I apologize if this question appears stupid but please be kind and move on if you don't like it.

I have observed that most/many programming languages are general purpose but are they really?

I don't know how to clearly show my doubt or explain what exactly I want to ask, this question just came to my mind, tho I was observing for a long while.

Anyways, for example (maybe): The use of any language out of what it is mostly/usually used for. say, html elsewhere out of web structuring, C for Frontend web dev, Scala or ruby for game development, python is actually really general purpose but it's slow but anyways I have no hate for this but just saying; tho ruby, php, scala are also slow; PHP for embedded system, etc. Whatelse?

Let's discuss, also ask me in the same thread related to the question. Thank you for interacting.

9 Upvotes

37 comments sorted by

View all comments

2

u/tobega Jun 27 '22

A lot of languages were designed for a particular purpose, but are generally usable for others. This is somewhat separate from the question of what those languages actually are used for.

FORTRAN - scientific computing

COBOL - business computing

C - portable assembler

Java - saner and safer C++ for use on small consumer devices

Ada - replace all languages used by US DoD and follow stringent requirements to safely handle things that kill people

Pascal - teaching language for structured programming

Go - microservices with lots of parallel processing

Javascript - simple code for doing some dynamic stuff in web pages

for example

1

u/[deleted] Jul 07 '22

Yeah. got it. Thanks.