3 ms·
> when everyone was coding assembly.. This was before my time, but I think it's a common misconception (only true for operating system development). When C was
by flohofwoe 4y ago
> when everyone was coding assembly..
This was before my time, but I think it's a common misconception (only true for operating system development). When C was created, there was already Lisp, Cobol, Fortran, Algol, Simula, BASIC... and SmallTalk and Prolog were just around the corner - and most of those are much higher level than C).
- uranusjr 4y agoI think parent knows. A more accurate description would be everyone of the intended audience was writing assembly. Yes there are other languages of higher levels, but C was not invented to help their users. And since they are also not really what Rust targets either, IMO it’s reasonable to shorten it to drop the qualifier in this context.
- tourmalinetaco 4y ago[flagged]
- pjmlp 4y agoC was invented in the context of porting UNIX, while the world outside Bell Labs used something else, that is all there is to it.
- jacquesm 4y agoSure, but none of those were for systems programming which is squarely the domain that C was aimed at, case in point: the first thing that C was used to write was UNIX (before then it was BCPL and this was iirc before C even had structs which made that a very tricky job, once structs were in place it got a lot easier). Probably Don Hopkins has more knowledge about this.
- flohofwoe 4y ago> before C even had structs which made that a very tricky job... ...interesting that you mention that, I think that functions and structs are the essential 'core abstraction tools' that get you to at least 80% of any higher level abstractions that were invented since then, and this is exactly the reason why C is still quite popular. Its feature set is just enough to be considered a high level language which enables abstractions, but not more (especially no fads and fashions that came and disappeared again).
- pjmlp 4y agoC23 has lots of stuff into it, except improved safety.
- pjmlp 4y agoThere were enough languages for systems programming outside Bell Labs, all the way back to 1958. It is a urban myth that C was the first one, usually pushed by naturally UNIX folks. JOVIAL, ESPOL, NEWP, PL/I, PL/S, PL.8, PL/M, Bliss, Mesa, Modula-2, VMS Basic, VMS Pascal,...