4 ms·
Accident? C did exactly what it was designed to do; allow UNIX to spread to other architectures.
by sliverstorm 13y ago
Accident? C did exactly what it was designed to do; allow UNIX to spread to other architectures.
- pjmlp 13y agoAny high level language would do it in a time and age where most OS were still 100% coded in Assembly. Lets say UNIX used PL/I or Algol 68, the article would be called "Learn PL/I" or "Learn Algol 68".
- sliverstorm 13y agoI can't say you couldn't have written UNIX in Algol 68, but C was very specifically developed by K&R for building the underpinnings of UNIX. They didn't just "pick" C out of a pool of available languages- C was made for UNIX. (This is probably a gross oversimplification- please don't hang me out to dry for it- but it summarizes my understanding of the origins of C)
- pjmlp 13y agoC was made with UNIX, not for, mostly because the authors did not like to use other available languages. There is hardly any feature in the language that makes it better than other higher level languages for systems programming. Please note that I am older than C, for me higher level language is anything higher than Assembly.
- sliverstorm 13y agoI suppose I'm descending to semantics and quibbling over meaningless details at this point, but I was just taking issue with the idea that C wound up in its current position on accident. It was not by chance that C makes up the underpinnings of UNIX, nor did (to my knowledge) the spread of UNIX have much to do with chance. I don't mean to contend there are no other languages that could have been used.