3 ms·
idk > The term "domain-specific language" has meaning. It means "is a computer language specialized to a particular application domain". The fact that it is
by turbinerneiter 6y ago
idk
> The term "domain-specific language" has meaning.
It means "is a computer language specialized to a particular application domain".
The fact that it is hard to draw the line between DSL and general purpouse, that DSLs grow too large, ... does not invalidate the meaning of the concept.
Or:
> It is meaningful to talk about the speed of a programming language.
It is? When I have to perform a given computation within a given time on a given hardware, the same algorithm can be fast enough in one language and too slow in another. Except if you want to nitpick and see _language_ independently of _implementation_, which is a valid point, but has little practical meaning.
- AnimalMuppet 6y agoWell, Haskell (say) can never be as fast as C++, because of immutability. That means that it has to make a new place to store the new value, which means an allocation. That's not dependent on implementation. (Except, I suppose, you theoretically could implement C++ so that it also allocated every variable. Still, I think the point is valid: Haskell, by its nature, has to do things that C++ doesn't, so Haskell is going to have a very hard time being as fast as C++.)
- pas 6y agoImmutability doesn't mean no one can implement a Haskell extension that allows safely describing and composing operations that use mutability on the inside. Of course on current hardware with current compiler Haskell programs tend to be slower, and also tend to be more correct compared to C/C++ (maybe even compared to let's say C++20).