pentium wrote:Wow, I didn't C this happening so soon.
Will he be buried at C?
pentium wrote:Wow, I didn't C this happening so soon.
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.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.
Oskar45 wrote:Ritchie went on to develop C [probably a failure by todays standard].
No. Sorry, you are really quite wrong- you apparently didn't get what I meant...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.
... pray, where was I wrong?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.)
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.
Oskar45 wrote: You are very right.
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
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.
Oskar45 wrote:Programming languages only teach you not to want what they cannot provide. C is no exception.
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.
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 **/
}
Users browsing this forum: No registered users and 3 guests