Dennis Ritchie has passed away

For friendly off topic discussion not covered in a forum above.
Forum rules
No politics, please.
User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Dennis Ritchie has passed away

Unread postby porter » Fri Oct 14, 2011 4:14 pm

pentium wrote:Wow, I didn't C this happening so soon.


Will he be buried at C?
Land of the Long White Cloud and no Software Patents.

User avatar
R-ten-K
Posts: 1856
Joined: Mon Nov 15, 2004 10:36 pm
Location: Nor Cal

Re: Dennis Ritchie has passed away

Unread postby R-ten-K » Fri Oct 14, 2011 7:56 pm

I C what you guys did there. . .
"Was it a dream where you see yourself standing in sort of sun-god robes on a
pyramid with thousand naked women screaming and throwing little pickles at you?"

kramlq
Posts: 929
Joined: Tue Sep 20, 2005 5:10 pm
Location: IRL

Re: Dennis Ritchie has passed away

Unread postby kramlq » Sat Oct 15, 2011 5:41 am

PymbleSoftware wrote:
R-ten-K wrote:That is a bit of a chicken an egg problem, no? C was fundamental to the development of Unix. You could not have one without the other.


From what I have read recently. UNIX was implemented first in B or BCPL or some language like that around 1968/1969 and then rewritten in C and assembler and released in 1971.

I can't find the cartoon with the egg and chicken in bed smoking ... and one them says "well that answers that question". ;)

R.

Actually portability wasnt an original design goal, so it was written in assembly in the late 60s. I think in the early 70s, it was rewritten in C (and some asm) to make general changes and enhancements easier to do (including changes for new PDP configurations). Then in the late 70s, someone realised it might be possible to port the kernel to Interdata, and once that was done, the shell and utilities would be a fairly straightforward recompile.

Portability was really just an afterthought, but UNIX was a successful proof of concept for portable OSes (along with OS6 and SOLO). So from then on, people started trying to make kernels portable from the start. BCPL, B and Z were used in OS6, TRIPOS, Thoth and probably others, but C obviously became the language of choice due to the spread of UNIX.

User avatar
Oskar45
Posts: 2174
Joined: Mon Dec 05, 2005 2:35 am
Location: Vienna, Austria

Re: Dennis Ritchie has passed away

Unread postby Oskar45 » Sat Oct 15, 2011 8:32 am

PymbleSoftware wrote:
R-ten-K wrote:That is a bit of a chicken an egg problem, no? C was fundamental to the development of Unix. You could not have one without the other.


From what I have read recently. UNIX was implemented first in B or BCPL or some language like that around 1968/1969 and then rewritten in C and assembler and released in 1971.

I can't find the cartoon with the egg and chicken in bed smoking ... and one them says "well that answers that question". ;)

R.
You are very right. The *original* assembler version of UNIX was ported to another machine in only 1971 [from the PDP-7 to the PDP-11/20; merely 40 years ago]. The "Second Edition" [1972] was written in B [which derived from BCPL]. Due to B's limitations, Ritchie went on to develop C [probably a failure by todays standard]. Afterwards [in 1973], the UNIX system was rewritten in C - since then we are stuck with a rather unflexible environment. I'm not sure I'd consider that a blessing today.
If man would have been created out of the rib of a woman - how different would the world be?

User avatar
jan-jaap
Posts: 4187
Joined: Thu Jun 17, 2004 11:35 am
Location: Wijchen, The Netherlands

Re: Dennis Ritchie has passed away

Unread postby jan-jaap » Sat Oct 15, 2011 9:03 am

Oskar45 wrote:Ritchie went on to develop C [probably a failure by todays standard].

That's like saying that a Volkswagen Beetle is unsafe by todays standards. Or, actually (since C is some 40 years old): a Ford Model T.
Now this is a deep dark secret, so everybody keep it quiet :)
It turns out that when reset, the WD33C93 defaults to a SCSI ID of 0, and it was simpler to leave it that way... -- Dave Olson, in comp.sys.sgi

Currently in commercial service: Image :Onyx2:(2x) :O3x02L:
In the museum: almost every MIPS/IRIX system.
Wanted: GM1 board for Professional Series GT graphics (030-0076-003, 030-0076-004)

User avatar
Oskar45
Posts: 2174
Joined: Mon Dec 05, 2005 2:35 am
Location: Vienna, Austria

Re: Dennis Ritchie has passed away

Unread postby Oskar45 » Sat Oct 15, 2011 9:39 am

jan-jaap wrote:
Oskar45 wrote:Ritchie went on to develop C [probably a failure by todays standard].

That's like saying that a Volkswagen Beetle is unsafe by todays standards. Or, actually (since C is some 40 years old): a Ford Model T.
No. Sorry, you are really quite wrong- you apparently didn't get what I meant...
If man would have been created out of the rib of a woman - how different would the world be?

User avatar
R-ten-K
Posts: 1856
Joined: Mon Nov 15, 2004 10:36 pm
Location: Nor Cal

Re: Dennis Ritchie has passed away

Unread postby R-ten-K » Sat Oct 15, 2011 11:32 am

Sigh, here's the story directly from the creator's mouth:


http://cm.bell-labs.com/cm/cs/who/dmr/chist.html

(Before the nitpicking gets out of hand.)
"Was it a dream where you see yourself standing in sort of sun-god robes on a
pyramid with thousand naked women screaming and throwing little pickles at you?"

User avatar
Oskar45
Posts: 2174
Joined: Mon Dec 05, 2005 2:35 am
Location: Vienna, Austria

Re: Dennis Ritchie has passed away

Unread postby Oskar45 » Sat Oct 15, 2011 12:27 pm

R-ten-K wrote:Sigh, here's the story directly from the creator's mouth:


http://cm.bell-labs.com/cm/cs/who/dmr/chist.html

(Before the nitpicking gets out of hand.)
... pray, where was I wrong?
If man would have been created out of the rib of a woman - how different would the world be?

User avatar
R-ten-K
Posts: 1856
Joined: Mon Nov 15, 2004 10:36 pm
Location: Nor Cal

Re: Dennis Ritchie has passed away

Unread postby R-ten-K » Sat Oct 15, 2011 12:50 pm

where did I say you were wrong?


I just wanted to get the tangential nitpicking pissing context over so this thread could get back to its original intent.

Cheers
Last edited by R-ten-K on Sat Oct 15, 2011 1:28 pm, edited 1 time in total.
"Was it a dream where you see yourself standing in sort of sun-god robes on a
pyramid with thousand naked women screaming and throwing little pickles at you?"

User avatar
PymbleSoftware
Posts: 1887
Joined: Tue Jul 15, 2008 5:48 pm
Location: P.O. Box 529, Gordon, Sydney, NSW 2072, Australia.
Contact:

Re: Dennis Ritchie has passed away

Unread postby PymbleSoftware » Sat Oct 15, 2011 1:07 pm

kramlq wrote:[ BCPL, B and Z were used in OS6, TRIPOS, Thoth and probably others, but C obviously became the language of choice due to the spread of UNIX.


From what I read recently, one derivation of TRIPOS had the last few lines of BCPL removed from it a handful of years ago, its all C and PowerPC assembler now.

Oskar45 wrote: You are very right.

No. I was just regurgitating something I had read a few days prior. I've never been to New Jersey and I wasn't involved so I don't know. I was just merely attacking the "chicken and egg" thing which bothers me for some reason.



R.
死の神はりんごだけ食べる

開いた括弧は必ず閉じる -- あるプログラマー

:Tezro: :Tezro: :Onyx2R: :Onyx2RE: :Onyx2: :O3x04R: :O3x0: :O200: :Octane: :Octane2: :O2: :O2: :Indigo2IMP: :PI: :PI: :1600SW: :1600SW: :Indy: :Indy: :Indy: :Indy: :Indy:
:hpserv: J5600, 2 x Mac, 3 x SUN, Alpha DS20E, Alpha 800 5/550, 3 x RS/6000, Amiga 4000 VideoToaster, Amiga4000 -030, 733MHz Sam440 AmigaOS 4.1 update 1.

Sold: :Indy: :Indy: :Indy: :Indigo: Tandem Himalaya S-Series Nonstop S72000 ServerNet.

Twitter @PymbleSoftware
Current Apps (iOS) -> https://itunes.apple.com/au/artist/pymb ... d553990081
(Android) https://play.google.com/store/apps/deve ... +Ltd&hl=en
(Onyx2) Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
(0300s) Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Github ---> https://github.com/pymblesoftware

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Dennis Ritchie has passed away

Unread postby porter » Sat Oct 15, 2011 1:35 pm

If C is a failure by today's standards then I would happily accept failure. Complaining about C's inability to do something like complaining that a Model T-Ford was not suitable for use as a lunar lander module.
Land of the Long White Cloud and no Software Patents.

User avatar
Oskar45
Posts: 2174
Joined: Mon Dec 05, 2005 2:35 am
Location: Vienna, Austria

Re: Dennis Ritchie has passed away

Unread postby Oskar45 » Sun Oct 16, 2011 7:17 am

R-ten-K wrote:where did I say you were wrong?


I just wanted to get the tangential nitpicking pissing context over so this thread could get back to its original intent.

Cheers

I deeply apologize. Back to the original thread. Just re-read the "Unix Programmer's Manual, Volume 2". Of course, without Dennis we wouldn't be there where we are now...As I said before, I bow before him.
If man would have been created out of the rib of a woman - how different would the world be?

User avatar
Oskar45
Posts: 2174
Joined: Mon Dec 05, 2005 2:35 am
Location: Vienna, Austria

Re: Dennis Ritchie has passed away

Unread postby Oskar45 » Sun Oct 16, 2011 7:34 am

porter wrote:If C is a failure by today's standards then I would happily accept failure. Complaining about C's inability to do something like complaining that a Model T-Ford was not suitable for use as a lunar lander module.

Programming languages only teach you not to want what they cannot provide. C is no exception.
If man would have been created out of the rib of a woman - how different would the world be?

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Dennis Ritchie has passed away

Unread postby porter » Sun Oct 16, 2011 1:57 pm

Oskar45 wrote:Programming languages only teach you not to want what they cannot provide. C is no exception.


C was defined before multithreading, object orientation and exception handling, yet all of these can be done in C. The C language was deliberately kept small with the view that everything else gets added as libraries etc. Given that 99% of language compilers, intepreters and operating system kernels are built using C, then C isn't doing a bad job.
Land of the Long White Cloud and no Software Patents.

User avatar
PymbleSoftware
Posts: 1887
Joined: Tue Jul 15, 2008 5:48 pm
Location: P.O. Box 529, Gordon, Sydney, NSW 2072, Australia.
Contact:

Re: Dennis Ritchie has passed away

Unread postby PymbleSoftware » Sun Oct 16, 2011 1:59 pm

Oskar45 wrote:
porter wrote:If C is a failure by today's standards then I would happily accept failure. Complaining about C's inability to do something like complaining that a Model T-Ford was not suitable for use as a lunar lander module.

Programming languages only teach you not to want what they cannot provide. C is no exception.


I am not entirely sure. Years ago I looked at an old version of povray source code. They had object-orientated code in C by use of structs and function pointers. I have seen functional programming in C++ with template meta-programming.

I think this may have drifted from the topic of one of the creators of UNIX and the C programming languages passing.

There is a long list of thing you can do in C that you can not do in C# or Java. I still have a lot of respect for the designers of the language.

Exception handling in C:

Code: Select all


#define TryCatch( cond, label )   if( cond ) goto label


void func()
{

int32_t a;
char *X = (char *) malloc( 0xff );
TryCatch( ( sizeof( a ) != 4 ), CATCH );

/*** code **/

free( X );

return;

CATCH:
            free( X );
             /** rest of clean up **/
}


Something to be said about workmen and the tools they have at their disposal.

R.
死の神はりんごだけ食べる

開いた括弧は必ず閉じる -- あるプログラマー

:Tezro: :Tezro: :Onyx2R: :Onyx2RE: :Onyx2: :O3x04R: :O3x0: :O200: :Octane: :Octane2: :O2: :O2: :Indigo2IMP: :PI: :PI: :1600SW: :1600SW: :Indy: :Indy: :Indy: :Indy: :Indy:
:hpserv: J5600, 2 x Mac, 3 x SUN, Alpha DS20E, Alpha 800 5/550, 3 x RS/6000, Amiga 4000 VideoToaster, Amiga4000 -030, 733MHz Sam440 AmigaOS 4.1 update 1.

Sold: :Indy: :Indy: :Indy: :Indigo: Tandem Himalaya S-Series Nonstop S72000 ServerNet.

Twitter @PymbleSoftware
Current Apps (iOS) -> https://itunes.apple.com/au/artist/pymb ... d553990081
(Android) https://play.google.com/store/apps/deve ... +Ltd&hl=en
(Onyx2) Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
(0300s) Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Github ---> https://github.com/pymblesoftware


Return to “Everything Else”

Who is online

Users browsing this forum: No registered users and 1 guest