General > General Technical Chat
C language 50th anniversary
(1/13) > >>
Picuino:
The first version of the C language (the C compiler and some utilities made with it) appeared in 1972. I have not been able to find out in which month exactly. In any case I am very happy for the 50th anniversary.

At the time it took me a little bit of a big effort to learn C. In those years the fashionable language was Pascal and its implementation by Borland, TurboPascal. TurboPascal had many libraries and was much more productive than C in the MS-DOS based PC environment.
But in the long run, C has served me much better for programming embedded systems and today it has nothing to envy to Pascal.

Happy C anniversary!!!


Edit: Better said


--- Code: (c) ---#include <stdio.h>
int main(void) {
    printf("Happy 50th anniversary C!!!");
    return 0;
}

--- End code ---
Karel:
Happy anniversary  ;D On to another 50 years of (quasi) domination  :)

My all time favorite programming language, simple, reliable and best supported everywhere  :-+

And no, this is not an invite to C haters and Rust zealots to start to explain why they believe C should be replaced  >:D
Picuino:
C haters?
It certainly seems that there must be people for everything. XD
niconiconi:

--- Quote from: Picuino on July 22, 2022, 07:22:48 am ---Edit: Better said


--- Code: (c) ---#include <stdio.h>
int main(void) {
    printf("Happy 50th anniversary C!!!");
    return 0;
}

--- End code ---

--- End quote ---

To be more historically accurate.


--- Code: (c) ---main()
{
printf("Happy 50th anniversary C!!!");
}

--- End code ---

In pre-ANSI C (K&R C, as found in the 1st ed. K&R), all functions without a specified return type are implied to be int, the main() function without a return type is implied to be 0 in practice, and printf's definition was provided by the compiler by default.

Here's a PDP-11 simulation run on the original UNIX v6 system.


PDP-11 simulator V3.11-0
Disabling XQ
Listening on port 1106 (socket 7)
SR:   
@unix

login: root
#
# ls
bin
core
dev
etc
lib
mnt
rkunix
tmp
unix
usr
# ed
a
main()
{
   printf("Happy 50th anniversary C!\n");
}
w 50th.c
51
q
# cc 50th.c
# ./a.out
Happy 50th anniversary C!


Not to say it's a good style in 2022. By modern standard it's sloppy - but it was what the original C was - a quick-and-dirty experimental design to test ideas, just like UNIX was also a quick-and-dirty experimental operating system for the same purpose. Both are probably the most productive experiment in computing history.
Marco:

--- Quote from: niconiconi on July 22, 2022, 10:19:20 am ---Both are probably the most productive experiment in computing history.

--- End quote ---
Only in a broken window sense.

Lack of runtime bounds checking, null in general and null delimited strings in particular (and escape codes in general). So many fundamentally wrong approaches cemented during the Unix days, with most of the disastrous and unnecessary stupidity still mostly unrecognized (people will still defend SQL!).
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod