4 ms·
C came to dominate the world because of Unix. But not directly, because Unix didn't really dominate the world other than some of the institutional and corporate
by kazinator 4y ago
C came to dominate the world because of Unix. But not directly, because Unix didn't really dominate the world other than some of the institutional and corporate world. GNU and Linux picked up the domination torch and are still working on it.
I strongly suspect Microsoft was the catalyst which propelled C, absent of Unix.
Microsoft had been infatuated with Unix from early on. They had their own version called Xenix, based on AT&T licensed code. Part of the MS-DOS API consists of "Xenix functions", imitating some Unix-like things. MS-DOS, and consequently Windows feature Unixy conventions like .. for the parent directory and . for current, even though the underlying link concept isn't there.
Microsoft produced a C compiler + IDE which I believe highlighted and legitimized C as a viable language in the mass market world of IBM PC compatibles.
According to the Wikipedia page on Microsoft Visual C++, Microsoft already had a C compiler out in 1983.
"Microsoft C 1.0, based on Lattice C, was Microsoft's first C product in 1983. It was not K&R C compliant."
Microsoft picking up Lattice C and running with it is probably what caused the C explosion. Borland joined in the fray in 1987 with Turbo C.
But wait, Microsoft had a Lisp product too: why didn't that help?
[plain HTTP!] http://www.edm2.com/index.php/Microsoft_LISP http://www.edm2.com/index.php/Microsoft_LISP
Probably they just didn't peddle it hard enough.
Microsoft also used C for developing Windows, and supported C development for Windows:
https://en.wikipedia.org/wiki/Microsoft_Windows#Early_versions https://en.wikipedia.org/wiki/Microsoft_Windows#Early_versio...
"Microsoft sold as included Windows Development libraries with the C development environment, which included numerous windows samples."
The rise of MS Windows dragged C with it, with the API's and code samples being expressed in C.
Plus, it was probably not lost on the PC programming population that if they learn and work with C on that platform, their skills will be applicable in Unix and elsewhere.
- zozbot234 4y agoThe main competitor to C would have been PASCAL, and the drawbacks of standard PASCAL for low-level programming (a necessity on the computers of the day, where even ASM programming was commonly resorted to in order to eke out the best performance) were very well known. C was not perfect by any means (the segmented memory models on 16-bit x86 required non-standard extensions to support, for example) but it was a lot better than the alternative. LISP would've been a total non-starter for serious use given its requirement for GC and being an interpreted language. Quite comparable to the dog-slow Java applets of the mid-1990s, and in fact even worse on early hardware.
- DerekL 4y agoIt's “Pascal”, not “PASCAL”.
- zozbot234 4y agoPASCAL is a case-insensitive programming language, so both are correct.
- jshaqaw 4y agoMaybe I’m just projecting my own childhood as a universal case, but for a computer passionate teenager, Turbo Pascal was pretty much the sweet spot between kids tools like Basic (particularly pre qbasic if my memory serves) and C which I admit was still inscrutable to me. I’m trying to teach my middle school kids the fun side of programming and 35 years later I can’t find an IDE as perfectly integrated for debugging as I had in Turbo Pascal 5. The folks I always had mad respect for were those who could write in assembly on their Commodores, etc… I never had one of those machines but I still bow my head to those who could write anything meaningful in pure assembly as a teenager in the pre internet era when you had to figure out so much more on your own.
- pjmlp 4y agoThe irony of reading this. Until Visual C++, almost no one would bother with buying Microsoft compilers, rather going for Borland and Watcom offerings on MS-DOS, which was fully written in Assembly. On the MS-DOS days, C was was yet another slow high level language, sharing attention with Modula-2, Pascal dialects (mostly QuickPascal, TMT Pascal and Turbo Pascal), BASIC (QBasic, Turbo Basic and QuickBasic), and Clipper/Paradox for DB stuff. Anyone that cared about performance was using TASM and MASM for most of their coding. When Windows finally became usable, with version 3.0, anyone that cared about productivity was buying Borland C++ for Windows, using Object Windows Library, or Microsoft's Visual Basic, only masochists were using pure C with the Win16 SDK. Only the release of Visual C++, alongside MFC, made most devs have a second look at Microsoft's own compilers, and then with Borland's mismanagement, devs eventually jump ship from what was then Delphi and C++ Builder into Visual C++. Microsoft was never a big C shop, as proven with the decision to ignore C past C89, which they only backtracked (sadly) due to customer pressure.