4 ms·
It seems that eventually after a particular programming paradigm (for ex. parallel, functional etc.) establishes itself, only a few programming languages will
by rdtsc 17y ago
It seems that eventually after a particular programming paradigm (for ex. parallel, functional etc.) establishes itself, only a few programming languages will rise to the top that happen to express the ideas in that paradigm in a more clear and concise way.
For example, imagine describing a sorting algorithm to someone and you decide that it should be done in an imperative and sequential way (not functionally or without any parallelism involved). Describing it in English is too ambiguous and verbose, x86 assembly is probably too presice and too hardware specific, a turing machine program is too theoritical and too rigurous. So then you make something up, and I think eventually it looks similar to Python, Ruby or Pascal.
However, in practice the language itself is not worth much outside academia unless it comes with a solid library. At the end of the day, the user of the language will have to open network connections, render web pages, access databases and draw GUIs. If the language doesn't let them do that, no matter how elegant it is it will remain just a toy language.
- daeken 17y agoThe interesting things don't happen in a particular paradigm but rather where multiple paradigms meet. Python is imperative and strongly object oriented, but it also has many functional qualities to it. Ruby even more so, with great support for closures. Boo mixes imperative, object-oriented code with thorough metaprogramming, type inference, and a host of functional features. Nemerle is a functional language but mixes object orientation cleanly into the mix. These are the places where you see interesting concepts coming to light, not in the pure-X-paradigm camps. As for libraries, this is becoming less and less of an issue. With .NET and the JVM, you have a single set of libraries that works with any compatible language and allows language designers to focus on what they're good at: the language. The effects of that can't be understated; it's allowing for a huge amount of innovation with fairly little time investment and ease of adoption.
- rdtsc 17y ago> As for libraries, this is becoming less and less of an issue. With .NET and the JVM, you have a single set of libraries that works with any compatible language and allows language designers to focus on what they're good at: the language. Yes, the language does't have to come with its own libraries. It can piggy-back on some other libraries. If there was just one operating system. with a good and stable API the language might not need any libraries, just the ability to make system calls. So for .NET and java, Sun and Microsoft already did the hard work as far as library code is concerned so any language on those platforms is already miles ahead of a new lanuage without any "batteries". Interestingly enough, if an API is stable and well designed, a language could be created to take a better advantage of it. I am currently looking at Vala, it basically started as a better language than C that would take advantage of glib.
- stcredzero 17y agoHowever, in practice the language itself is not worth much outside academia unless it comes with a solid library So you have to become popular enough to get a large enough community to broadly implement lots of libraries. This means the language can't be too innovative. It has to be Blub++. A lot of the old baggage of the older languages will be carried forward due to cultural expectations. Isn't this just how human beings work, though? Isn't this exactly what we should expect given how people work?