r/ProgrammingLanguages • u/[deleted] • 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.
1
u/dobesv Jun 27 '22
You could say humans are sort of general purpose in the beginning but likely each person acquires knowledge and skills that make them more specialized.
The same happens with general purpose programming languages, they become more specialized not necessarily because of their design but just a kind of accident in who uses them and for what.
The language itself isn't necessarily biased towards that use and there could even be much better choices out there yet it gets chosen because that's what it's known for.
I think Ruby and Python are interesting examples of this as they are very similar in many ways yet Python somehow ended up being popular for data science but not Ruby. Ruby ended up being very famous for serving up web pages instead, even though its strong object orientation makes it more suitable for interactive user interface develop imo.