Posted Mar 28, 2013 10:01 UTC (Thu) by dlang (✭ supporter ✭, #313)
[Link]
As languages go, C actually is pretty simple.
you can do very complex things with very simple building blocks, remember that even the most complex CPU is a combination of AND, OR, NOT gates combined with memory. These are very simple components, but the results that are built with these simple components are very complex.
C, simple?
Posted Mar 28, 2013 17:54 UTC (Thu) by apoelstra (subscriber, #75205)
[Link]
> C isn't really simple at all, it's just uncommonly good at presenting the illusion of simplicity. If it really were simple, you wouldn't like it.
As dlang said, the machine model is very simple compared to that of other imperative languages. Lisp and Haskell are probably simpler, but Java or Python are much more complex (and PHP is so wild that I would argue it -has- no machine model!).
By "if it really were simple, you wouldn't like it", ITYM "if it really were simple, it couldn't be used to program computers", because C's complexity seems to be an unavoidable consequence of physical machines (e.g. having finitely sized types).
C, simple?
Posted Mar 28, 2013 19:50 UTC (Thu) by dlang (✭ supporter ✭, #313)
[Link]
assembly is simpler, and if you only ever had to program one machine it may even be reasonable, but since assembly is different for every system, and it doesn't have any standard way to define higher level structures, C was born