Computer Old Farts Forum
 help / color / mirror / Atom feed
From: Jim Capp <jcapp@anteil.com>
To: Rich Salz <rich.salz@gmail.com>
Cc: Douglas McIlroy <douglas.mcilroy@dartmouth.edu>,
	Computer Old Farts <coff@tuhs.org>
Subject: [COFF] Re: [TUHS] Re: Minimum Array Sizes in 16 bit C (was Maximum)
Date: Mon, 30 Sep 2024 16:12:00 -0400 (EDT)	[thread overview]
Message-ID: <5182549.12624.1727727120300.JavaMail.root@zimbraanteil> (raw)
In-Reply-To: <CAFH29tp4fZR7ct57F-BmyqoJwwRfHkSbiVPS1mj89e-_gzhsHQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]


Moving to COFF ,.. 




From: "Rich Salz" <rich.salz@gmail.com> 
To: "TUHS main list" <tuhs@tuhs.org> 
Cc: "Douglas McIlroy" <douglas.mcilroy@dartmouth.edu> 
Sent: Monday, September 30, 2024 4:03:15 PM 
Subject: [TUHS] Re: Minimum Array Sizes in 16 bit C (was Maximum) 







On Mon, Sep 30, 2024 at 3:12 PM Steffen Nurpmeso < steffen@sdaoden.eu > wrote 


noone ever told them that even the eldest C can be used in a safe 
way; 

Perhaps we have different meanings of the word safe. 


void foo(char *p) { /* interesting stuff here */ ; free(p); } 

void bar() { char *p = malloc(20); 
foo(p); 
printf("foo is %s\n", p); 
foo(p); 
} 
Why should I have to think about this code when the language already knows what is wrong. 



No one would make the claim that programming in machine "language" is safe. 


No one would make the claim that programming in assembly "language" is safe. 


I've always viewed C as a portable assembler. I think the real issue has nothing to do with the "safety" of C, but rather the "safety" of your-choice-of-C-libraries-and-methods. 


My $.02 


Jim 


[-- Attachment #2: Type: text/html, Size: 2378 bytes --]

       reply	other threads:[~2024-09-30 20:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFH29tp4fZR7ct57F-BmyqoJwwRfHkSbiVPS1mj89e-_gzhsHQ@mail.gmail.com>
2024-09-30 20:12 ` Jim Capp [this message]
     [not found] <CAKH6PiUm-2d5w5-vHtTsMjcENpZjXfM9wdi-+hpaGRM7D3JCUw@mail.gmail.com>
     [not found] ` <20240928165812.4uyturluj4dsuwef@illithid>
     [not found]   ` <20240928180559.GF9067@mcvoy.com>
2024-09-30 15:49     ` Paul Winalski
2024-09-30 17:59       ` Larry McVoy
2024-09-30 18:08         ` Dan Cross
     [not found]   ` <20240928180138.aygrwqdwrvq3n6xt@illithid>
     [not found]     ` <202410011313.491DD4ac421643@freefriends.org>
2024-10-01 16:40       ` Paul Winalski
2024-10-01 19:08         ` arnold
     [not found]       ` <20241001133231.GE13777@mcvoy.com>
     [not found]         ` <202410011347.491DlAsJ423777@freefriends.org>
     [not found]           ` <20241001140101.GG13777@mcvoy.com>
     [not found]             ` <024bd803-2852-c0d0-5f15-30ec65c45cb4@makerlisp.com>
     [not found]               ` <CAEoi9W471TKKwRSYNK7EoYwP-AZ4VDfva4LTNQoJ7cH9oFDd_g@mail.gmail.com>
2024-10-01 15:08                 ` Stuff Received
2024-10-01 16:49           ` Paul Winalski
2024-10-04  3:57         ` Adam Thornton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5182549.12624.1727727120300.JavaMail.root@zimbraanteil \
    --to=jcapp@anteil.com \
    --cc=coff@tuhs.org \
    --cc=douglas.mcilroy@dartmouth.edu \
    --cc=rich.salz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).