3 ms·
I view this as shifting complexity around. All Turing-complete languages are essentially equivalent, and there is some essential minimum complexity in any comp
by TeMPOraL 9y ago
I view this as shifting complexity around.
All Turing-complete languages are essentially equivalent, and there is some essential minimum complexity in any computation you'd like to describe. Any given language we use makes trade-offs, which cause some programs to be expressed simply in it, but the cost is that some other programs will become much more complex to express in it.
- TuringTest 9y agoMaybe, but comp-sci does not study all possible programs with equal probability. A notation should be optimized for the kind of problems that are more often studied, and make expressing those easier. If this pushes complexity towards the expression of randomly generated programs, that's a good thing (except for the few guys that study randomly generated programs, that is).
- TeMPOraL 9y agoYes. This is the general mental model I use when explaining that the design goal of a good general-purpose language is to shift the complexity to the areas almost no one will care about. Also your corollary from a sibling comment can be restated as saying that you can get extra simplicity for a particular task by designing DSL that will shift complexity to outside of its domain.
- tormeh 9y ago... which is why a certain class of programs is most elegantly described in brainfuck? Certainly there are tradeoffs to be made, but this does not mean that some languages are not simply better than others.
- TeMPOraL 9y ago> ... which is why a certain class of programs is most elegantly described in brainfuck? Possibly, though for sure those aren't programs you'd usually want to write. The key phrase of my comment was "essential complexity". You can pile up extra complexity that's not helping anything, but assuming you got rid of it, all you can do to make things easier is to shift the remaining complexity around the problem space.
- tormeh 9y agoI'd argue that no language in existence is even remotely close to having no extra complexity.