Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #54471

Re: "Is C Still Relevant in the 21st Century?"

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.c
Subject Re: "Is C Still Relevant in the 21st Century?"
Date 2014-12-13 20:52 +0000
Organization A noiseless patient Spider
Message-ID <87mw6r5l2u.fsf@bsb.me.uk> (permalink)
References (1 earlier) <84754f1b-790f-46f4-88f7-bcd64fd97f6a@googlegroups.com> <m6h41j$afv$1@reader1.panix.com> <eDUiw.105382$be7.2881@fx14.am4> <8761df7iji.fsf@bsb.me.uk> <c0a85583-af12-465b-96d2-81295345e964@googlegroups.com>

Show all headers | View raw


Malcolm McLean <malcolm.mclean5@btinternet.com> writes:

> On Saturday, December 13, 2014 2:04:28 PM UTC, Ben Bacarisse wrote:
>>
>> I'm being rhetorical of course.  I am sure you are fair about it, but
>> here is a big streak of anti-intellectualism in some programming circles
>> that tries to deny that mathematical thinking is central to programming.
>> (And this does not mean there isn't a big streak of elitism in some
>> programming circles that claims you have no place writing a while loop
>> if you don't know what a Y combinator is, but the nature of the business
>> is such that the latter seems to me to be smaller and less influential
>> than the former.)
>> 
> It really depends what the program is doing.
>
> Underlying routines to do drawing, collision detection, physics, or, 
> if that floats your boat, database access and statistical tests, can
> be quite mathematical.

That's not what I'm talking about.

> On the other hand, a lot of code puts
> up widgets, responds to text input and mouse clicks, and calls
> functions to create, retrieve, update or delete records. You can
> think of that as a mathematical operation on a program's internal
> state if you choose, but good luck in trying to develop a method
> the really can guarantee that the system will behave as wanted, as
> well as responding to ad hoc requests for new features.

My claim that mathematical thinking is central to programming does not
rest on people programming in obviously mathematical domain, and it is
not based in the (false) idea that mathematical thinking is rigid and
formal.  Almost no mathematicians do formal proofs, and the relatively
rigorous proofs one sees in papers are an artefact of the review
process.  Most theorems are proved first with sketches and diagrams and
in outline.  Even the assumptions that a proof relies on -- so often
stated up front -- are often not known until the end.  Part of the
informal reasoning process separates out what can be concluded and what
is needed to conclude it.  This part of the process is often as valuable
as the conclusion itself (it certainly is when thinking about programs).

Every function you write is a theorem, even if a very informal one.
Every loop you write is two little theorems (does it establish some
desired state of affairs, and does it terminate?).  Verifying them,
informally, can take just a few seconds, but thinking in this way is
actually useful day-to-day.

I don't want to over-state this, because it is almost trivial, but so
little mathematical thought seems to be applied to programs that I am
sure that even a little more would go a long way.

And of course this has an impact on programming languages and styles.
It's harder to reason about programs in C, or badly structures programs
in any language, than it is to reason about well-written Haskell
programs (to take an extreme example).

I do take your point (thought not exatky as you put it) that there is
much tedious boiler-plate code that needs almost no thought at all.
However, that's not really the part of the task we call programming that
matters is it?

-- 
Ben.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

"Is C Still Relevant in the 21st Century?" Lynn McGuire <lmc@winsim.com> - 2014-12-10 18:17 -0600
  Re: "Is C Still Relevant in the 21st Century?" G G <gdotone@gmail.com> - 2014-12-10 22:55 -0800
    Re: "Is C Still Relevant in the 21st Century?" Richard Heathfield <invalid@see.sig.invalid> - 2014-12-11 09:01 +0000
      Re: "Is C Still Relevant in the 21st Century?" Tim Rentsch <txr@alumni.caltech.edu> - 2014-12-16 02:41 -0800
        Re: "Is C Still Relevant in the 21st Century?" Richard Heathfield <invalid@see.sig.invalid> - 2014-12-16 11:08 +0000
          Re: "Is C Still Relevant in the 21st Century?" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-16 13:06 +0000
            Re: "Is C Still Relevant in the 21st Century?" Richard Heathfield <invalid@see.sig.invalid> - 2014-12-16 13:14 +0000
            Re: "Is C Still Relevant in the 21st Century?" Keith Thompson <kst-u@mib.org> - 2014-12-16 07:29 -0800
              Re: "Is C Still Relevant in the 21st Century?" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-16 16:23 +0000
          Re: "Is C Still Relevant in the 21st Century?" Tim Rentsch <txr@alumni.caltech.edu> - 2014-12-16 17:23 -0800
            Re: "Is C Still Relevant in the 21st Century?" Keith Thompson <kst-u@mib.org> - 2014-12-16 18:06 -0800
              Re: "Is C Still Relevant in the 21st Century?" Tim Rentsch <txr@alumni.caltech.edu> - 2014-12-17 07:35 -0800
                Re: "Is C Still Relevant in the 21st Century?" Richard Heathfield <invalid@see.sig.invalid> - 2014-12-17 16:01 +0000
                Re: "Is C Still Relevant in the 21st Century?" Tim Rentsch <txr@alumni.caltech.edu> - 2014-12-18 10:30 -0800
                Re: "Is C Still Relevant in the 21st Century?" Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-12-20 18:45 +0000
                Re: "Is C Still Relevant in the 21st Century?" Tim Rentsch <txr@alumni.caltech.edu> - 2014-12-20 11:58 -0800
    Re: "Is C Still Relevant in the 21st Century?" Thomas Jahns <jahns@idontlikespam.dkrz.de> - 2014-12-12 11:15 +0100
  Re: "Is C Still Relevant in the 21st Century?" fir <profesor.fir@gmail.com> - 2014-12-11 04:11 -0800
    Re: "Is C Still Relevant in the 21st Century?" "ocq (an evil corporate man)" <ocq@maili.ng> - 2014-12-11 17:36 +0100
      Re: "Is C Still Relevant in the 21st Century?" fir <profesor.fir@gmail.com> - 2014-12-11 08:44 -0800
        Re: "Is C Still Relevant in the 21st Century?" "ocq (an evil corporate man)" <ocq@maili.ng> - 2014-12-11 17:53 +0100
          Re: "Is C Still Relevant in the 21st Century?" fir <profesor.fir@gmail.com> - 2014-12-11 09:57 -0800
      Re: "Is C Still Relevant in the 21st Century?" Malcolm McLean <malcolm.mclean5@btinternet.com> - 2014-12-11 15:21 -0800
        Re: "Is C Still Relevant in the 21st Century?" "ocq (an evil corporate man)" <ocq@maili.ng> - 2014-12-12 11:14 +0100
  Re: "Is C Still Relevant in the 21st Century?" Malcolm McLean <malcolm.mclean5@btinternet.com> - 2014-12-11 05:06 -0800
    Re: "Is C Still Relevant in the 21st Century?" fir <profesor.fir@gmail.com> - 2014-12-11 05:48 -0800
      Re: "Is C Still Relevant in the 21st Century?" fir <profesor.fir@gmail.com> - 2014-12-11 06:17 -0800
    Re: "Is C Still Relevant in the 21st Century?" JohnF <john@please.see.sig.for.email.com> - 2014-12-13 10:22 +0000
      Re: "Is C Still Relevant in the 21st Century?" BartC <bc@freeuk.com> - 2014-12-13 10:34 +0000
        Re: "Is C Still Relevant in the 21st Century?" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-13 14:04 +0000
          Re: "Is C Still Relevant in the 21st Century?" Malcolm McLean <malcolm.mclean5@btinternet.com> - 2014-12-13 07:42 -0800
            Re: "Is C Still Relevant in the 21st Century?" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-13 20:52 +0000
              Re: "Is C Still Relevant in the 21st Century?" Malcolm McLean <malcolm.mclean5@btinternet.com> - 2014-12-14 00:23 -0800
                Re: "Is C Still Relevant in the 21st Century?" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-14 12:07 +0000
              Re: "Is C Still Relevant in the 21st Century?" BartC <bc@freeuk.com> - 2014-12-14 13:20 +0000
                Re: "Is C Still Relevant in the 21st Century?" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-14 22:43 +0000
                Re: "Is C Still Relevant in the 21st Century?" BartC <bc@freeuk.com> - 2014-12-15 01:33 +0000
                Re: "Is C Still Relevant in the 21st Century?" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-15 02:39 +0000
                Re: "Is C Still Relevant in the 21st Century?" Malcolm McLean <malcolm.mclean5@btinternet.com> - 2014-12-15 03:16 -0800
                Re: "Is C Still Relevant in the 21st Century?" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-15 17:24 +0000
                Re: "Is C Still Relevant in the 21st Century?" Richard Heathfield <invalid@see.sig.invalid> - 2014-12-15 18:01 +0000
                Re: "Is C Still Relevant in the 21st Century?" fir <profesor.fir@gmail.com> - 2014-12-15 14:25 -0800
                Re: "Is C Still Relevant in the 21st Century?" Richard Damon <Richard@Damon-Family.org> - 2014-12-16 08:46 -0500
                Re: "Is C Still Relevant in the 21st Century?" fir <profesor.fir@gmail.com> - 2014-12-16 05:59 -0800
                Re: "Is C Still Relevant in the 21st Century?" Richard Damon <Richard@Damon-Family.org> - 2014-12-17 08:21 -0500
                Re: "Is C Still Relevant in the 21st Century?" Tim Rentsch <txr@alumni.caltech.edu> - 2014-12-17 07:27 -0800
                Re: "Is C Still Relevant in the 21st Century?" Richard Heathfield <invalid@see.sig.invalid> - 2014-12-16 14:29 +0000
                Re: "Is C Still Relevant in the 21st Century?" Richard Damon <Richard@Damon-Family.org> - 2014-12-16 08:51 -0500
                Re: "Is C Still Relevant in the 21st Century?" Richard Heathfield <invalid@see.sig.invalid> - 2014-12-16 14:30 +0000
                Re: "Is C Still Relevant in the 21st Century?" Malcolm McLean <malcolm.mclean5@btinternet.com> - 2014-12-15 10:02 -0800
          Re: "Is C Still Relevant in the 21st Century?" Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-12-14 00:36 +0000
            Re: "Is C Still Relevant in the 21st Century?" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-14 01:22 +0000
              Re: "Is C Still Relevant in the 21st Century?" Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-12-14 07:35 +0000
                Re: "Is C Still Relevant in the 21st Century?" Öö Tiib <ootiib@hot.ee> - 2014-12-14 04:39 -0800
                Re: "Is C Still Relevant in the 21st Century?" James Kuyper <jameskuyper@verizon.net> - 2014-12-14 08:14 -0500
                Re: "Is C Still Relevant in the 21st Century?" Malcolm McLean <malcolm.mclean5@btinternet.com> - 2014-12-14 08:02 -0800
            Re: "Is C Still Relevant in the 21st Century?" Tim Rentsch <txr@alumni.caltech.edu> - 2014-12-16 04:52 -0800
        Re: "Is C Still Relevant in the 21st Century?" rick.c.hodgin@gmail.com - 2014-12-13 06:39 -0800
        Re: "Is C Still Relevant in the 21st Century?" Les Cargill <lcargill99@comcast.com> - 2014-12-13 15:57 -0600
          Re: "Is C Still Relevant in the 21st Century?" BGB <cr88192@hotmail.com> - 2014-12-15 09:51 -0600
            Re: "Is C Still Relevant in the 21st Century?" Jorgen Grahn <grahn+nntp@snipabacken.se> - 2014-12-15 20:30 +0000
              Re: "Is C Still Relevant in the 21st Century?" glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2014-12-15 21:29 +0000
              Re: "Is C Still Relevant in the 21st Century?" BGB <cr88192@hotmail.com> - 2014-12-15 21:23 -0600
                Re: "Is C Still Relevant in the 21st Century?" Kaz Kylheku <kaz@kylheku.com> - 2014-12-16 04:14 +0000
                Re: "Is C Still Relevant in the 21st Century?" BGB <cr88192@hotmail.com> - 2014-12-16 09:11 -0600
                Re: "Is C Still Relevant in the 21st Century?" Robert Wessel <robertwessel2@yahoo.com> - 2014-12-16 13:13 -0600
                Re: "Is C Still Relevant in the 21st Century?" BartC <bc@freeuk.com> - 2014-12-16 19:27 +0000
                Re: "Is C Still Relevant in the 21st Century?" BGB <cr88192@hotmail.com> - 2014-12-16 16:11 -0600
                Re: "Is C Still Relevant in the 21st Century?" Malcolm McLean <malcolm.mclean5@btinternet.com> - 2014-12-16 14:39 -0800
                Re: "Is C Still Relevant in the 21st Century?" BGB <cr88192@hotmail.com> - 2014-12-16 18:25 -0600
      Re: "Is C Still Relevant in the 21st Century?" Tim Rentsch <txr@alumni.caltech.edu> - 2014-12-16 05:13 -0800
  Re: "Is C Still Relevant in the 21st Century?" "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2014-12-11 07:28 -0800
  Re: "Is C Still Relevant in the 21st Century?" Melzzzzz <mel@zzzzz.com> - 2014-12-11 17:29 +0100
  Re: "Is C Still Relevant in the 21st Century?" Jens Stuckelberger <Jens_Stuckelberger@nowhere.net> - 2014-12-11 17:59 +0000
    Re: "Is C Still Relevant in the 21st Century?" Melzzzzz <mel@zzzzz.com> - 2014-12-11 19:05 +0100
  Re: "Is C Still Relevant in the 21st Century?" Rosario193 <Rosario@invalid.invalid> - 2014-12-12 11:37 +0100
  Re: "Is C Still Relevant in the 21st Century?" John Bode <jfbode1029@gmail.com> - 2014-12-15 10:49 -0800

csiph-web