Free Republic
Browse · Search
Bloggers & Personal
Topics · Post Article

Skip to comments.

Dennis Ritchie, father of C programming language, dies
CNET News ^ | Oct 13 | Steven Musil

Posted on 10/13/2011 9:00:58 PM PDT by budj

"Dennis Ritchie, an internationally renowned computer scientist who created the C programming language, has died at age 70. ..."

(Excerpt) Read more at news.cnet.com ...


TOPICS: Computers/Internet
KEYWORDS: clanguage; computers; unix
Navigation: use the links below to view more comments.
first previous 1-20 ... 81-100101-120121-140141-153 next last
To: JRandomFreeper

GREP is still a very powerful tool. I used it extensively in my last scripted publishing job. I used PDFtk to open a finish .pdf and extracted the final item sequence and item page number using GREP. Had to precondition the opened .pdf with a text editor to allow that. The weird syntax for proportional spacing between repeating numeral 1’s caused that.

I never used a Unix system (used DOS, Windows, Linux, AS400), but have used Linux for 15 years. It is NOT Unix, but many of the commands are identical. And it is a lot more friendly.


101 posted on 10/14/2011 5:32:12 AM PDT by Texas Fossil (Government, even in its best state is but a necessary evil; in its worst state an intolerable one)
[ Post Reply | Private Reply | To 43 | View Replies]

To: Chunga

Thanks for clarification. I showed my ignorance by not knowing the diff.


102 posted on 10/14/2011 5:43:02 AM PDT by Texas Fossil (Government, even in its best state is but a necessary evil; in its worst state an intolerable one)
[ Post Reply | Private Reply | To 9 | View Replies]

To: grunt03
I'll be in my 80's then, and most likely blissfully unaware of the havoc I've wreaked on mankind.

Just pray that your frail, withered body isn't plugged into a medical device running some of that old decrepit code when it wraps! ;^)

103 posted on 10/14/2011 5:48:10 AM PDT by 6ppc (It's torch and pitchfork time)
[ Post Reply | Private Reply | To 35 | View Replies]

To: RussP
As Nancy Leveveson of MIT said, it is one of the most error-prone languages ever designed.

Spohen by someone who must have made a lot of mistakes. ;-D

I have used 'c' in everything from operating systems to applications. It is a wonderful language that "enables" everything one does. The more restrictive languages are reserved for those with less talent.

104 posted on 10/14/2011 6:56:21 AM PDT by GingisK
[ Post Reply | Private Reply | To 8 | View Replies]

To: JRandomFreeper
I'd rather have the freedom to accidentally type

rm -r /

Than be told that I wasn't allowed by the compiler or OS.

While this has nothing to do with this thread, it does remind me of a hilarious service call I had many years ago at a beverage company... The night shift data guy at a soda bottling plant began to get a message that the root file system was running out of space. He had heard other IT people talk about how they could free up disk space by deleting the development system. So he logged on to the console as root, changed to development system directory, /dev , and then did an "rm *" .

Mark

105 posted on 10/14/2011 7:51:42 AM PDT by MarkL (Do I really look like a guy with a plan?)
[ Post Reply | Private Reply | To 92 | View Replies]

To: GingisK
I have used 'c' in everything from operating systems to applications. It is a wonderful language that "enables" everything one does. The more restrictive languages are reserved for those with less talent.

Good lord! This thread looks like the Readers' Digest (very) condensed version of a thread on alt.sysadmin.recovery. "Very" condensed since it has't drifted into turn-indicator usage in GB versus in Oz. However, editor wars, OS wars (BSD is the ONE true code!), are all here though.

I had a boss back in the day who famously stated "C is a bad language because it lets you do things you shouldn't." Needless to say, the sysadmins quoted him frequently followed by huge guffaws of laughter.

I was never very good at C, though I could patch PINE installs, dink with Apache and so on. My handicap was learning FORTRAN first resulting in "pass by value" habits in a "pass by address" world.

Remember: There is COBOL code still in production today that is older than most of the Freepers on this thread.
106 posted on 10/14/2011 7:56:14 AM PDT by Peet (Cogito ergo dubito.)
[ Post Reply | Private Reply | To 104 | View Replies]

To: NVDave
That's the problem with lore - sometimes we are passed down inaccuracies. The pointer to pointer story was from a prof I had.

I worked on PDP-11 based testers while in college. You knew it was going to be a bad day when the tape reader ate your diagnostics tape.

8^)

107 posted on 10/14/2011 8:04:18 AM PDT by 5thGenTexan
[ Post Reply | Private Reply | To 79 | View Replies]

To: Gene Eric
>> const char s[] = “Goodbye World!”;

> const char s[] = “Goodbye, World!”;

const char s[] = "Goodbye, World!\n"; /* I waited all night - no one caught it :-D */

108 posted on 10/14/2011 8:24:27 AM PDT by 5thGenTexan
[ Post Reply | Private Reply | To 76 | View Replies]

To: 5thGenTexan; quatro; JRandomFreeper; budj; cynwoody; Gene Eric; Ackackadack; grunt03
const char s[] = "Goodbye, World!\n"; /* I waited all night - no one caught it :-D */

Actually, since the original example used puts() to emit the output, the newline isn't needed since that standard library function "... writes the string s and a trailing newline to stdout".

Since quite a few of us following this thread are hoary C pushers from way, way back, here's another take on the program. I've got K&R2 on my desk (of course) and will be faithful to Brian and Dennis in terms of case and punctuation of the classic and beloved string. So here goes...pick it to shreds!

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    static const char s[] = "goodbye, world";

    (void)puts(s);
    return EXIT_SUCCESS;
}
lint(1) doesn't yelp and when compiled with these flags, the compiler emits no warnings (and Sun's "cc" is also quite content):
gcc -Wall -W -ansi -pedantic dmr_goodbye.c
I do believe that FR has taken the place of comp.lang.c. Henceforth, I'll be posting all my code here for peer review! :-) * 10e6
109 posted on 10/14/2011 9:05:04 AM PDT by re_nortex (DP...that's what I like about Texas.)
[ Post Reply | Private Reply | To 108 | View Replies]

To: 6ppc
Just pray that your frail, withered body isn't plugged into a medical device running some of that old decrepit code when it wraps! ;^)

That would be some kind of cosmic justice, wouldn't it? If I was hooked up to something I'd written I'd probably die of sleep deprivation from 'running' the code over and over in my head....and trying to remember exactly which compiler warnings I'd ignored!

110 posted on 10/14/2011 10:18:08 AM PDT by grunt03 (live free or die)
[ Post Reply | Private Reply | To 103 | View Replies]

To: re_nortex
#include < stdio.h >
#include < stdlib.h >
int main(void)
{
static const char s[] = "goodbye, world";

(void)puts(s);
return EXIT_SUCCESS;
}

Beautiful! It would be a hoot if Dennis had that as an epitaph.

111 posted on 10/14/2011 10:34:08 AM PDT by grunt03 (live free or die)
[ Post Reply | Private Reply | To 109 | View Replies]

To: grunt03

Payback’s a bitch a’int it!


112 posted on 10/14/2011 10:45:33 AM PDT by 6ppc (It's torch and pitchfork time)
[ Post Reply | Private Reply | To 110 | View Replies]

To: GingisK

“I have used ‘c’ in everything from operating systems to applications. It is a wonderful language that “enables” everything one does. The more restrictive languages are reserved for those with less talent.”


I’ll assume you’re kidding. If so, I’m kidding too:

All I can say is that I hope programmers like you stick with video games and stay away from anything safety critical.


113 posted on 10/14/2011 12:19:23 PM PDT by RussP
[ Post Reply | Private Reply | To 104 | View Replies]

To: re_nortex

SEBOL uses #include statements. That and Visual Basic are the only languages I use now.


114 posted on 10/14/2011 12:28:11 PM PDT by Hoodat (Because they do not change, Therefore they do not fear God. -Psalm 55:19-)
[ Post Reply | Private Reply | To 33 | View Replies]

To: RussP; GingisK
All I can say is that I hope [C] programmers like you stick with video games and stay away from anything safety critical.

I'll try to stay above the fray here but since a mini-version of language wars is breaking out here on FR (of all places :)), those of you following this thread may enjoy this classic from Brian Kernighan, the 'K' of K&R:

Why Pascal is Not My Favorite Programming Language

Enjoy...and fight amongst yourselves! :-)

115 posted on 10/14/2011 12:38:27 PM PDT by re_nortex (DP...that's what I like about Texas.)
[ Post Reply | Private Reply | To 113 | View Replies]

To: re_nortex

There is no argument or fight here. Anyone who seriously proposes using standard C for safety-critical software is simply naive and uninformed. (Yes, there is something called “MISRA C,” which is a severely restricted subset of C that is approved for some safety-critical use, but it is a far cry from standard C.)

The standard language for flight-critical systems on airliners is Ada. I have never used Ada, nor do I have any particular desire to use it, but there is no controversy about its superiority over C for flight-critical and other safety-critical systems.


116 posted on 10/14/2011 12:50:57 PM PDT by RussP
[ Post Reply | Private Reply | To 115 | View Replies]

To: RussP
All I can say is that I hope programmers like you stick with video games and stay away from anything safety critical.

Oooh, you are "new school". I became a "programmer for hire" in 1968. I had code in the Skylab project (FORTRAN), a life safety system for the rocket engine test facility in Hunstville (C), and a prison security system (C). All of those are "life critical" and perfomed flawlessly. I have done many criticals systems in 'c' over the years right up to the present time; and, these have all worked very well.

I've never done a video game. I never will. My forte at this time is severe environment data loggers. No complaints from the field. It is a matter of practice and inspection along with good testing technique. Bloatware would never fit in the devices I build.

117 posted on 10/14/2011 1:46:37 PM PDT by GingisK
[ Post Reply | Private Reply | To 113 | View Replies]

To: GingisK

Well, then you must be d*mn good. But language options were obviously much more limited back then, and I’ll bet that applications were considerably simpler too. I still say that anyone who voluntarily chooses C for a large application today, let alone a safety-critical one, must be unaware of superior options. I work on a research prototype for an ATC system, and I am using Scala. Take a look at Scala. You might like it.


118 posted on 10/14/2011 2:22:24 PM PDT by RussP
[ Post Reply | Private Reply | To 117 | View Replies]

To: RussP
Take a look at Scala

I shall indeed.

I'm a stale old fart. I like 'c' a great deal; and, I've always wondered why people didn't accumulate applications specific libraries so that they could rely on a perfected code base. We see a lot of "standard" libraries, but few application specific ones. I do build applications libraries; and, those help a great deal with reliability issues within a vertical project base.

From this old fart's point of view, it seems software has become a lot more complicated than it really needs to be. The "bells and whistles" are where most of the failures appear to be exhibited, and certainly where the security vulnerabilities are rooted. Today's machines are blindingly fast compared to what existed a few years ago; however, you really wouldn't know that because of the bloat.

I tend to design for simplicity and use proven hardware/software building blocks.

Once you've programmed for so many years you actually do tend to create few errors ... but they are spectacular when you do. (Who wrote this code! I did? Shoot!)

119 posted on 10/14/2011 2:56:35 PM PDT by GingisK
[ Post Reply | Private Reply | To 118 | View Replies]

To: RussP
I still say that anyone who voluntarily chooses C for a large application today, let alone a safety-critical one, must be unaware of superior options.

I've written burglar & fire alarm communicators, cardiac flow monitors, fluids systems controls, water treatment controls, and many other 'critical' apps in C. I program in C, C++, ASM, PASCAL, various flavors of BASIC, JAVA, Perl, Python, PHP, and would trust my life with C over and above any other language out there. Well written C code is the most stable game in town, hands down.

120 posted on 10/14/2011 4:59:54 PM PDT by grunt03 (live free or die)
[ Post Reply | Private Reply | To 118 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-20 ... 81-100101-120121-140141-153 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
Bloggers & Personal
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson