public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ashley Dixon <ash@suugaku.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [OBORONA-SPAM] Re: [gentoo-user] Is Gentoo dead?
Date: Sat, 25 Apr 2020 19:28:19 +0100	[thread overview]
Message-ID: <20200425182819.lh4son6zvenx5drq@ad-gentoo-main> (raw)
In-Reply-To: <qQodFQphQkRlpVQctdax2mCGPNYaJr8PDTlFvUA_8SjUtv17Y7yWVhOk1IFm5t4V-sX5ln2PH1c0ybj4O8CEAN-jX8gi0tcovIAC36zPy_A=@protonmail.com>

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

On Sat, Apr 25, 2020 at 04:37:43PM +0000, Caveman Al Toraboran wrote:
> so i really can't believe that we have devolved in
> such a way where malloc/free suddenly has became a
> hard concept for homo sapiens.

You'd  be  surprised  how  much  shocking  code  is  out  there,  especially  in
proprietary  products  (the  Valve   Steam   Client   is   a   prime   example).

In general, reasons for memory-management-incompetence fall into  the  following
categories:

        (a) Programmers forget.  For experienced and skilled developers, this is
                likely the most common cause of malloc-free mismatches.   I  was
                programming in C a few years before I ever touched a computer (I
                bought/stole Kernighan and Ritchie from the  local  library  and
                wrote out code-listings with pencil and paper), and to this  day
                still  occasionally  forget  to  free   everything   I   malloc.
                Thankfully, in the days of dynamic code-analysis tools  such  as
                Valgrind,   these    problems---amongst    other    hard-to-spot
                issues---become easy fixes.

        (b) Programmers don't care, because it is assumed the  operating  system
                will do it for them.  I have heard this one  quite  a  bit  from
                people trying to justify their horribly  written  code.   Often,
                with people who make this argument, the malloc-free mismatch  is
                the least of their problems, however in the days of  intelligent
                operating system-level memory-management seen  in  modern  Linux
                kernels, some programmers seem to take the hard work  of  kernel
                developers  as   a   free   pass   to   be   messy   themselves.

        (c) Programmers don't care, because the code means nothing to  them.   I
                have never worked as a professional programmer, so  I  can  only
                speculate, but from conversations  with  veteran  developers  at
                large companies such as Intel and Microsoft, it seems as  though
                the general morale amongst older developers can drop hugely. Why
                bother optimising or  thoroughly  testing  code  when  it's  not
                yours, and you don't really care  about  the  company  for  whom
                you're developing ?

        (d) Programmers are genuinely unaware of the importance of freeing their
                malloc'd  objects.   With  the  abundance  of  terrible  on-line
                tutorials, written by teachers that seem to devote themselves to
                teaching the worst practices possible, I've seen  an  influx  of
                programmers who are simply unaware of the  need  to  free  their
                memory pools.  It takes less than a minute of on-line  searching
                to find a popular tutorial on some pretty  website  which  shows
                code leaking memory.

So yes, it is easy to understand, but whether people _care_ or even know in  the
first place is entirely up to them.

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2020-04-25 18:28 UTC|newest]

Thread overview: 158+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 16:58 [gentoo-user] Is Gentoo dead? Consus
2020-04-21 17:11 ` Ashley Dixon
2020-04-22 12:28   ` Alessandro Barbieri
2020-04-21 18:10 ` Rich Freeman
2020-04-21 18:33   ` Consus
2020-04-21 18:41     ` Rich Freeman
2020-04-21 18:48       ` Consus
2020-04-21 18:51     ` Ralph Seichter
2020-04-21 19:00       ` Consus
2020-04-22  0:09         ` Dale
2020-04-22  0:26           ` Rich Freeman
2020-04-22  1:49             ` Dale
2020-04-22  2:22               ` Rich Freeman
2020-04-22  2:55                 ` Dale
2020-04-22  7:41                   ` John Covici
2020-04-22  8:15                     ` Dale
2020-04-22 12:15                       ` John Covici
2020-04-22 12:53                         ` Dale
2020-04-22 13:51                           ` John Covici
2020-04-22 15:04                             ` Dale
2020-04-22 15:20                               ` John Covici
2020-04-22 15:26                                 ` Jack
2020-04-22 15:58                                   ` John Covici
2020-04-22 16:03                                     ` Michael Orlitzky
2020-04-22 17:14                                       ` Dale
2020-04-22 17:19                                       ` John Covici
2020-04-22 17:30                                         ` Michael Orlitzky
2020-04-23  0:15                                           ` John Covici
2020-04-23  1:57                                             ` Dale
2020-04-22  7:42                   ` Philip Webb
2020-04-23 19:55               ` Steven Lembark
2020-04-24  1:22                 ` Dale
2020-04-21 19:10     ` Neil Bothwick
2020-04-22  8:06       ` Consus
2020-04-23 19:46     ` Steven Lembark
2020-04-21 18:47 ` Peter Humphrey
2020-04-21 19:01   ` Consus
2020-04-21 20:27     ` Rich Freeman
2020-04-21 20:51       ` [gentoo-user] Gentoo Tinderboxes? Michael Jones
2020-04-21 22:01         ` Gregory Rudolph
2020-04-21 22:36           ` Michael Jones
2020-04-22  9:46             ` Peter Humphrey
2020-04-22 10:17               ` J. Roeleveld
2020-04-22 11:20                 ` Neil Bothwick
2020-04-24 22:22                   ` jdm
2020-04-26 15:25                     ` Viktar Patotski
2020-04-22 14:35               ` Michael Jones
     [not found]                 ` <20200423152135.77bb9a0c.lembark@wrkhors.com>
2020-04-23 20:57                   ` Michael Jones
2020-04-21 23:05         ` Consus
2020-04-23 20:18         ` Steven Lembark
2020-04-22 15:22     ` [gentoo-user] Is Gentoo dead? Caveman Al Toraboran
2020-04-22 15:35       ` Michael Orlitzky
2020-04-22 16:07         ` Caveman Al Toraboran
2020-04-22 16:13           ` Michael Orlitzky
2020-04-22 16:14           ` [OBORONA-SPAM] " lego12239
2020-04-22 16:16             ` Michael Orlitzky
2020-04-22 16:31               ` [OBORONA-SPAM] " lego12239
2020-04-22 16:32                 ` Michael Jones
2020-04-22 16:48                   ` [OBORONA-SPAM] " lego12239
2020-04-22 17:03                     ` Michael Jones
2020-04-24 12:35                   ` Caveman Al Toraboran
2020-04-24 12:45                     ` Rich Freeman
2020-04-24 16:07                       ` Caveman Al Toraboran
2020-04-24 17:54                     ` Michele Alzetta
2020-04-24 17:56                       ` Michele Alzetta
2020-04-24 18:16                         ` Caveman Al Toraboran
2020-04-22 16:17             ` Alessandro Barbieri
2020-04-22 16:24               ` Michael Jones
2020-04-22 16:28                 ` Michael Orlitzky
2020-04-22 16:31                   ` Michael Jones
2020-05-07  1:13                   ` Caveman Al Toraboran
2020-05-07  1:43                     ` Rich Freeman
2020-05-07  2:14                       ` Caveman Al Toraboran
2020-05-07  2:35                         ` Rich Freeman
2020-05-07  3:31                           ` Dale
2020-05-07  3:50                             ` Caveman Al Toraboran
2020-05-07  7:49                               ` Michael
2020-05-07  8:26                             ` [OBORONA-SPAM] " Neil Bothwick
2020-05-07 15:11                               ` Dale
2020-05-07 15:41                                 ` Michael
2020-05-07 18:13                                   ` Dale
2020-05-07  4:26                           ` [OBORONA-SPAM] " Caveman Al Toraboran
2020-04-22 16:26               ` [OBORONA-SPAM] " lego12239
2020-04-22 17:48                 ` Alessandro Barbieri
2020-04-22 18:08                   ` [OBORONA-SPAM] " lego12239
2020-04-22 18:19                     ` Michael Orlitzky
2020-04-22 18:24                       ` Michael Jones
2020-04-22 18:33                         ` Michael Orlitzky
2020-04-22 19:15                           ` Michael Jones
2020-04-22 19:19                             ` Michael Orlitzky
2020-04-22 19:22                               ` Michael Jones
2020-04-22 19:24                                 ` Michael Orlitzky
2020-04-23  8:45                                   ` [OBORONA-SPAM] " lego12239
2020-04-24 21:07                                     ` Michael Orlitzky
2020-04-24 22:30                                       ` lego12239
2020-04-23  8:31                                 ` [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] " lego12239
2020-04-23  8:52                               ` lego12239
2020-04-23  8:59                                 ` Consus
2020-04-23  9:17                                   ` lego12239
2020-04-23  9:02                                 ` [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] " Dale
2020-04-23  9:26                                   ` lego12239
2020-04-23  9:44                                     ` Dale
2020-04-23 10:34                                       ` lego12239
2020-04-23 10:55                                         ` Dale
2020-04-24 20:48                                       ` Michael Orlitzky
2020-04-23 15:20                                     ` J. Roeleveld
2020-04-23 15:37                                       ` lego12239
2020-04-23  8:27                           ` [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] " lego12239
2020-04-22 18:24                       ` Consus
2020-04-22 18:38                         ` Michael Orlitzky
2020-04-22 18:51                           ` Consus
2020-04-23  8:24                       ` [OBORONA-SPAM] " lego12239
2020-04-22 16:26               ` Jorge Almeida
2020-04-23 20:27             ` Steven Lembark
2020-04-24  9:22               ` [OBORONA-SPAM] " lego12239
2020-04-24 13:34                 ` [gentoo-user] Re: [OBORONA-SPAM] Re: [OBORONA-SPAM] " Grant Edwards
2020-04-24 18:05                   ` [gentoo-user] " lego12239
2020-04-24 18:46                     ` Grant Edwards
2020-04-24 21:19                       ` lego12239
2020-04-24 16:30                 ` [OBORONA-SPAM] Re: [OBORONA-SPAM] Re: [gentoo-user] " inasprecali
2020-04-24 17:37                   ` Caveman Al Toraboran
2020-04-24 17:46                     ` Robert Bridge
2020-04-24 18:08                   ` [OBORONA-SPAM] " lego12239
2020-04-24 17:23                     ` Ashley Dixon
2020-04-25 16:37               ` [OBORONA-SPAM] " Caveman Al Toraboran
2020-04-25 18:28                 ` Ashley Dixon [this message]
2020-04-27 11:31             ` Kent Fredric
2020-04-27 15:57               ` lego12239
2020-04-28 15:33                 ` Kent Fredric
2020-04-28 16:56                   ` lego12239
2020-04-22 17:29         ` Dale
2020-04-22 17:34           ` Michael Orlitzky
2020-04-22 17:52             ` Dale
2020-04-23 18:14             ` Caveman Al Toraboran
2020-04-23 18:26               ` Michael Jones
2020-04-23 21:03               ` Alec Ten Harmsel
2020-04-23 23:55                 ` Caveman Al Toraboran
2020-04-24 21:23               ` Michael Orlitzky
2020-04-26 14:23                 ` Caveman Al Toraboran
2020-04-26 15:05                   ` Michael Orlitzky
2020-04-23 20:10     ` Steven Lembark
2020-04-23 20:12       ` Consus
2020-04-22  8:58 ` Alexandru N. Barloiu
2020-04-22 14:29 ` Kent Fredric
2020-04-22 16:24 ` james
2020-04-25 18:04   ` Fernando Reyes
2020-04-25 18:30     ` Caveman Al Toraboran
2020-05-07  3:14 ` Pengcheng Xu
2020-05-07  3:39   ` Dale
2020-05-07  3:55     ` Pengcheng Xu
2020-05-07  5:23     ` Gerrit Kuehn
2020-05-07 14:21     ` hitachi303
2020-05-07 15:15       ` Dale
2020-05-07 15:19         ` Petr Vaněk
2020-05-07 15:23           ` Dale
2020-05-07 15:29             ` Petr Vaněk
2020-05-07 15:36               ` Dale
2020-05-07 15:04     ` james

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=20200425182819.lh4son6zvenx5drq@ad-gentoo-main \
    --to=ash@suugaku.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /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