Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #133: It's not plugged in.


comp / comp.os.linux.misc / Re: Joy of this, Joy of that

SubjectAuthor
* Joy of this, Joy of thatroot
+* Re: Joy of this, Joy of thatLawrence D'Oliveiro
|`* Re: Joy of this, Joy of thatroot
| +- Re: Joy of this, Joy of thatLawrence D'Oliveiro
| `- Re: Joy of this, Joy of thatrbowman
`* Re: Joy of this, Joy of that186282@ud0s4.net
 +* Re: Joy of this, Joy of thatRich
 |+- Re: Joy of this, Joy of thatThe Natural Philosopher
 |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | +* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |`- Re: Joy of this, Joy of thatBozo User
 | +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |`* Re: Joy of this, Joy of thatDon_from_AZ
 | | `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |  `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |   +* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |   |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |   | +* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |   | |`- Re: Joy of this, Joy of that186282@ud0s4.net
 | |   | `- Re: Joy of this, Joy of thatrbowman
 | |   `* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |    +- Re: Joy of this, Joy of thatrbowman
 | |    +* Re: Joy of this, Joy of thatLouis Krupp
 | |    |`- Re: Joy of this, Joy of thatRich
 | |    +- Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |    `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |     +- Re: Joy of this, Joy of thatrbowman
 | |     `* Re: Joy of this, Joy of thatRich
 | |      +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      |+* Re: Joy of this, Joy of thatRich
 | |      ||`* Re: Joy of this, Joy of thatD
 | |      || `* Re: Joy of this, Joy of thatrbowman
 | |      ||  `* Re: Joy of this, Joy of thatD
 | |      ||   `* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||    +* Re: Joy of this, Joy of thatD
 | |      ||    |`* Re: Joy of this, Joy of thatrbowman
 | |      ||    | +- Re: Joy of this, Joy of thatD
 | |      ||    | `* Re: Joy of this, Joy of thatPancho
 | |      ||    |  `* Re: Joy of this, Joy of thatRich
 | |      ||    |   +* Re: Joy of this, Joy of thatChris Ahlstrom
 | |      ||    |   |`- Re: Joy of this, Joy of thatPancho
 | |      ||    |   `* Re: Joy of this, Joy of thatrbowman
 | |      ||    |    +* Re: Joy of this, Joy of thatD
 | |      ||    |    |+- Re: Joy of this, Joy of thatRich
 | |      ||    |    |`* Re: Joy of this, Joy of thatrbowman
 | |      ||    |    | `- Re: Joy of this, Joy of thatD
 | |      ||    |    `* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||    |     `* Re: Joy of this, Joy of thatrbowman
 | |      ||    |      `- Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||    `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||     `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||      `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||       `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        +* Re: Joy of this, Joy of thatrbowman
 | |      ||        |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        | +* Re: Joy of this, Joy of thatrbowman
 | |      ||        | |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        | | `- Re: Joy of this, Joy of thatrbowman
 | |      ||        | `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |  `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   +* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   | +- Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |   | `* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |  +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |  |`- Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |   |  `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |   +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |   |+* Re: Joy of this, Joy of thatRich
 | |      ||        |   |   ||`- Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |   |+- Re: Joy of this, Joy of thatD
 | |      ||        |   |   |`- Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |   +* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |   |   |`- Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |   `* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |    `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |     +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |     |`- Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |     `* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |      `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       +* Re: Joy of this, Joy of thatD
 | |      ||        |   |       |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | +* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |       | |+* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | ||+* Re: Joy of this, Joy of thatCharlie Gibbs
 | |      ||        |   |       | |||+* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | ||||`* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| +* Re: Joy of this, Joy of thatRich
 | |      ||        |   |       | |||| |`* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| | `* Re: Joy of this, Joy of thatRich
 | |      ||        |   |       | |||| |  +* Re: Joy of this, Joy of thatCharlie Gibbs
 | |      ||        |   |       | |||| |  |`- Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| |  `* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| |   +* Re: Joy of this, Joy of thatRich
 | |      ||        |   |       | |||| |   |+* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |       | |||| |   ||`* Re: Joy of this, Joy of thatRich
 | |      ||        |   |       | |||| |   || +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |       | |||| |   || |`* Re: Joy of this, Joy of thatCharlie Gibbs
 | |      ||        |   |       | |||| |   || | `- Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |       | |||| |   || +- Re: Joy of this, Joy of thatCharlie Gibbs
 | |      ||        |   |       | |||| |   || `- Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |       | |||| |   |`- Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| |   `* Re: Joy of this, Joy of thatRobert Riches
 | |      ||        |   |       | |||| `- Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | |||`* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | ||`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | `* Re: Joy of this, Joy of thatD
 | |      ||        |   |       `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |   `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      |`* Re: Joy of this, Joy of thatvallor
 | |      `* Re: Joy of this, Joy of thatD
 | `- Re: Joy of this, Joy of thatRich
 +* Re: Joy of this, Joy of thatJohn Ames
 `- Re: Joy of this, Joy of thatrbowman

Pages:12345678910111213141516171819202122232425262728293031323334
Subject: Re: Joy of this, Joy of that
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Tue, 26 Nov 2024 21:36 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Tue, 26 Nov 2024 21:36:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vi5f1r$3k9sn$6@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
<vhptgf$1614q$1@dont-email.me> <Iq40P.70904$EQue.62359@fx13.iad>
<slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
<mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me>
<wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me>
<wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me>
<wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me>
<wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me>
<wwved2x1y57.fsf@LkoBDZeT.terraraq.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 26 Nov 2024 22:36:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="884e8e3d13bad04345a336fccab9cba8";
logging-data="3811223"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1bfXix8Xt5zLgqjoYCnYB"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:aIbTSwhH9oJ4MzbEvlWfwunW168=
View all headers

On Tue, 26 Nov 2024 21:30:12 +0000, Richard Kettlewell wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
>> On Tue, 26 Nov 2024 08:32:32 +0000, Richard Kettlewell wrote:
>>
>>>> The examples show that freeing the same pointer twice can be detected
>>>> reliably.
>>>
>>> They do no such thing.
>>
>> free(p);
>> printf("%s(): returned from first free() call\n", __func__);
>>
>> free(p);
>> printf("%s(): returned from second free() call\n", __func__);
>>
>> Is that or is that not freeing the same pointer twice?
>
> Obviously you are not arguing in good faith.

Is this some special meaning of “they do no such thing” that is private to
you?

Subject: Re: Joy of this, Joy of that
From: Louis Krupp
Newsgroups: comp.os.linux.misc
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Wed, 27 Nov 2024 00:55 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: lkrupp@invalid.pssw.com.invalid (Louis Krupp)
Subject: Re: Joy of this, Joy of that
Newsgroups: comp.os.linux.misc
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
<vhptgf$1614q$1@dont-email.me> <Iq40P.70904$EQue.62359@fx13.iad>
<slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
<mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me>
<wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me>
<wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me>
<wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me>
<wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me>
Content-Language: en-US
In-Reply-To: <vi5e6t$3k9sn$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 34
Message-ID: <O5u1P.72795$OVd1.12914@fx10.iad>
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Wed, 27 Nov 2024 00:55:10 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Tue, 26 Nov 2024 17:55:10 -0700
X-Received-Bytes: 2608
View all headers

On 11/26/2024 2:22 PM, Lawrence D'Oliveiro wrote:
> On Tue, 26 Nov 2024 08:32:32 +0000, Richard Kettlewell wrote:
>
>>> The examples show that freeing the same pointer twice can be
>>> detected reliably.
>> They do no such thing.
> free(p);
> printf("%s(): returned from first free() call\n", __func__);
>
> free(p);
> printf("%s(): returned from second free() call\n", __func__);
>
> Is that or is that not freeing the same pointer twice?

In the example in the man page, if the two free() calls are back to back
with no intervening malloc() calls, the double free() is detected. I
tried adding a malloc(1000) call in the middle:

    free(p);
    printf("%s(): returned from first free() call\n", __func__);

    malloc(1000);
    printf("%s(): returned from second malloc(1000) call\n", __func__);

    free(p);
    printf("%s(): returned from second free() call\n", __func__);

and the program ran to completion with no apparent problem.

The compiler does what it can and glibc does what it can, but C is C and
the heap is what it is, and no, I don't know how this would work in Rust.

Louis

Subject: Re: Joy of this, Joy of that
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 27 Nov 2024 01:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 01:38:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 76
Message-ID: <vi5t77$3medq$2@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me> <vhvdqu$28p7r$7@dont-email.me> <vhvm34$2aerk$2@dont-email.me> <1b166410-ecc1-f9e5-7218-cde9618f4686@example.net> <lqi4odFdu06U3@mid.individual.net> <77840736-c143-e896-5da0-d0afae4915ed@example.net> <vi1p3r$2oh05$7@dont-email.me> <2118139f-4451-560b-5094-a3d61c05f0d3@example.net> <lqkh38Fpp09U2@mid.individual.net> <vi47lr$3cj2g$1@dont-email.me> <vi4hok$3f6em$1@dont-email.me> <lqmk0jF5lsrU1@mid.individual.net> <7bbb95df-167e-6e29-642e-884cd1d92c5b@example.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Nov 2024 02:38:47 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d88ef50c19d7644f1fb81fb65f6f024b";
logging-data="3881402"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nR0Ob9bTg4uxF3PTBmMoP"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:oAL3lofbyreoNQJT+vE1gDLg/z4=
View all headers

D <nospam@example.net> wrote:
>
>
> On Tue, 26 Nov 2024, rbowman wrote:
>
>> On Tue, 26 Nov 2024 13:17:08 -0000 (UTC), Rich wrote:
>>
>>> Yep, exactly. If they can be given instructions that match their "lego
>>> brick set" they can snap something together. Ask them to do anything
>>> that requires creativity or research and understanding, and you get back
>>> a turd that has had hours of polishing applied.
>>
>> The holy grail for management is a design methodology that gets adequate
>> results from a workforce of varying aptitudes. Particularly for larger
>> corporations you'll get a normal distribution, a few very good, a few
>> completely useless, and a lot of mediocrity. That's what you have to work
>> with.
>>
>> What I've seen over the years is a company will luck out, get a better
>> than average distribution, and achieve success. Whatever they're doing is
>> taken as an example of the right way and copied mechanically. Top down
>> structured programming, agile, devops, and so forth have their day.
>>
>> TI lucked out in the '70s and used something they called 'matrix
>> management' that became the new Wunderkind. The '80s brought 'In Search of
>> Excellence'.
>>
>> https://en.wikipedia.org/wiki/In_Search_of_Excellence
>>
>> Good money was made from book sales and training sessions from independent
>> snake oil salesmen preaching the gospel. The company I worked for had one
>> of the sessions. Not too many of the 'excellent' corporations are around
>> today.
>>
>> About 10 years ago the company I now work for had a 'pair programming'
>> session. That was hilarious. The 'experts' were only familiar with Apple
>> machines and other than the one they brought there wasn't an Apple in the
>> building. Having been through required attendance things before my team
>> carefully stayed to the back of the room where we could slink away and get
>> back to business.
>>
>> I'm sure the next methodology will wrap itself around AI, spin off
>> training companies, and mostly fail to deliver on the promises.
>>
>>
>
> Ahh... and today you have agile snakeoil salesmen! I heard a story from
> the girlfriend of one of my consultants. Her company, a computer game
> company, hired an "agile coach" who was workshopping away like a madman.
>
> One programmer said... "but this agile thing, it seems to me like it will
> become less efficient and more work, that's bad", the snakeoil salesman
> responded "I hear you and appreciate your concern, but if agile makes
> things worse, you're not doing it right, and that's why we are here"! ;)

“It is difficult to get a man to understand something, when his salary
depends on his not understanding it.” -- Upton Sinclair

https://www.goodreads.com/quotes/21810-it-is-difficult-to-get-a-man-to-understand-something

Agile, at least to the extent I've seen it being actually practiced so
far, is of little benefit to the actual programmers, and adds burden
(more daily meetings for the 'scrum' and sprint periodic meetings for
the finale, retro, planning, etc. meetings).

The one thing it does provide is give management more frequent feedback
that "something's happening" so they can feel cozy that their budget
funds have been used sensibly (i.e., CYA for managers).

But given that most 'enterprise' execution of 'agile' tends to, in the
limit, approach an "agile waterfall" type of arrangement, the
'wonderful promise' of agile of quick turnaround for bug fixes and more
speedy accumulation of incrememtal improvements that deploy every
sprint tends to get lost in the surrounding bureaucracy tarpit that
holds everything else back.

Subject: Re: Joy of this, Joy of that
From: rbowman
Newsgroups: comp.os.linux.misc
Date: Wed, 27 Nov 2024 01:40 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: 27 Nov 2024 01:40:37 GMT
Lines: 24
Message-ID: <lqnbklF92ekU1@mid.individual.net>
References: <vhigot$1uakf$1@dont-email.me> <vhsdhp$1m6qu$2@dont-email.me>
<X4KcnQQzFNko49_6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhvdmo$2900d$3@dont-email.me> <vhvdqu$28p7r$7@dont-email.me>
<vhvm34$2aerk$2@dont-email.me>
<1b166410-ecc1-f9e5-7218-cde9618f4686@example.net>
<lqi4odFdu06U3@mid.individual.net>
<77840736-c143-e896-5da0-d0afae4915ed@example.net>
<vi1p3r$2oh05$7@dont-email.me>
<2118139f-4451-560b-5094-a3d61c05f0d3@example.net>
<lqkh38Fpp09U2@mid.individual.net> <vi47lr$3cj2g$1@dont-email.me>
<vi4hok$3f6em$1@dont-email.me> <lqmk0jF5lsrU1@mid.individual.net>
<7bbb95df-167e-6e29-642e-884cd1d92c5b@example.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net CPCPM9rpHJzJdGWnjbzPbQ3ptCnSjMuRJkdOFj/CXkEMOX4Xmc
Cancel-Lock: sha1:iEaYEP4evk/rkDrX9OLYojHmn18= sha256:ksIXmE+pB75opn5UAgJ75BfR/pICVEas+yr0Iuc+sAs=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Tue, 26 Nov 2024 21:58:45 +0100, D wrote:

> Ahh... and today you have agile snakeoil salesmen! I heard a story from
> the girlfriend of one of my consultants. Her company, a computer game
> company, hired an "agile coach" who was workshopping away like a madman.

Right... I wonder if they even believe in the snake oil.We had a police
chief who was a pretty nice guy but had a weakness for traveling medicine
shows that would teach the officers about gang violence and so forth. Even
the low lifes in town knew the 'gangs' were bored 12 year olds with spray
cans that would last 4 seconds in Compton but he lapped it up.

Then the Hells Angels came for vacation and he went off the deep end. The
Angels were better behaved than when the BMW riders came to town but he
imported cops from another state to deal with the potential bloody
violence. The violence turned out to be the out of state cops arresting
college kids who were protesting the over the top treatment of the bikers.

City council went ballistic when they got the bill and it turned out it's
against state law to import cops, something that goes back to the copper
mines and Pinkertons, so the chief was fired.

I'm sure the snake oil salesmen took the show to some other town. The
agile people probably use the same model.

Subject: Re: Joy of this, Joy of that
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 27 Nov 2024 01:48 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 01:48:27 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <vi5tpb$3medq$3@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me> <slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid> <mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me> <wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me> <wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me> <wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me> <wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me> <O5u1P.72795$OVd1.12914@fx10.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Nov 2024 02:48:28 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d88ef50c19d7644f1fb81fb65f6f024b";
logging-data="3881402"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KniySeLtNX0XACgpzRjuE"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:AG9t7TGU6z46QHGFXPKY/yljt74=
View all headers

Louis Krupp <lkrupp@invalid.pssw.com.invalid> wrote:
> On 11/26/2024 2:22 PM, Lawrence D'Oliveiro wrote:
>> On Tue, 26 Nov 2024 08:32:32 +0000, Richard Kettlewell wrote:
>>
>>>> The examples show that freeing the same pointer twice can be
>>>> detected reliably.
>>> They do no such thing.
>> free(p);
>> printf("%s(): returned from first free() call\n", __func__);
>>
>> free(p);
>> printf("%s(): returned from second free() call\n", __func__);
>>
>> Is that or is that not freeing the same pointer twice?
>
> In the example in the man page, if the two free() calls are back to
> back with no intervening malloc() calls, the double free() is
> detected. I tried adding a malloc(1000) call in the middle:
>
>     free(p);
>     printf("%s(): returned from first free() call\n", __func__);
>
>     malloc(1000);
>     printf("%s(): returned from second malloc(1000) call\n", __func__);
>
>     free(p);
>     printf("%s(): returned from second free() call\n", __func__);
>
> and the program ran to completion with no apparent problem.
>
> The compiler does what it can and glibc does what it can, but C is C
> and the heap is what it is, and no, I don't know how this would work
> in Rust.

Which was exactly Richard K's point to Lawrence. It shows that one
simple pattern is detected, but does not support that *all* possible
usage patterns are detected.

In fact, for at least the free() manpage on my Slackware system, it
states this:

The free() function frees the memory space pointed to by ptr, which
must have been returned by a previous call to malloc(), calloc(), or
realloc(). Otherwise, or if free(ptr) has already been called
before, undefined behavior occurs. If ptr is NULL, no operation is
performed.

The paragraph above explicitly states that a second free(ptr) to a ptr
that was already freed, is undefined. And with "undefined" we enter
that wonderful world of "almost anything at all can occur now".

The only two guarantees given in that paragraph are:

1) if ptr was returned by one of the malloc's, the space referenced by
ptr is deallocated (albeit only for the first call of free(ptr), per
the second sentence);
and
2) if ptr is NULL, nothing occurs.

Subject: Re: Joy of this, Joy of that
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 27 Nov 2024 04:39 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 04:39:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <vi67qk$3s5m0$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
<vhptgf$1614q$1@dont-email.me> <Iq40P.70904$EQue.62359@fx13.iad>
<slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
<mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me>
<wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me>
<wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me>
<wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me>
<wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me>
<O5u1P.72795$OVd1.12914@fx10.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Nov 2024 05:39:48 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a54ef93815f5ae2493f406172a94d729";
logging-data="4069056"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uTSr+GXdz06ysGUgQPvb8"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:r39KM5oWltN/r4EVJdVbuIOTlWs=
View all headers

On Tue, 26 Nov 2024 17:55:10 -0700, Louis Krupp wrote:

> In the example in the man page, if the two free() calls are back to back
> with no intervening malloc() calls, the double free() is detected. I
> tried adding a malloc(1000) call in the middle:
>
>     free(p);
>     printf("%s(): returned from first free() call\n", __func__);
>
>     malloc(1000);
>     printf("%s(): returned from second malloc(1000) call\n", __func__);
>
>     free(p);
>     printf("%s(): returned from second free() call\n", __func__);
>
> and the program ran to completion with no apparent problem.

I wonder if alternative memory allocators might not do better.
jemalloc, for example
<https://github.com/jemalloc/jemalloc/wiki/Use-Case%3A-Find-a-memory-corruption-bug>.

Subject: Re: Joy of this, Joy of that
From: Louis Krupp
Newsgroups: comp.os.linux.misc
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Wed, 27 Nov 2024 05:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!news-out.netnews.com!s1-1.netnews.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: lkrupp@invalid.pssw.com.invalid (Louis Krupp)
Subject: Re: Joy of this, Joy of that
Newsgroups: comp.os.linux.misc
References: <vhigot$1uakf$1@dont-email.me> <6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com> <20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me> <vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net> <vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk> <vhptgf$1614q$1@dont-email.me> <Iq40P.70904$EQue.62359@fx13.iad> <slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid> <mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me> <wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me> <wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me> <wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me> <wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me> <O5u1P.72795$OVd1.12914@fx10.iad> <vi67qk$3s5m0$1@dont-email.me>
Content-Language: en-US
In-Reply-To: <vi67qk$3s5m0$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 49
Message-ID: <Hfy1P.72802$OVd1.66703@fx10.iad>
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Wed, 27 Nov 2024 05:38:47 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Tue, 26 Nov 2024 22:38:48 -0700
X-Received-Bytes: 3192
View all headers

On 11/26/2024 9:39 PM, Lawrence D'Oliveiro wrote:
> On Tue, 26 Nov 2024 17:55:10 -0700, Louis Krupp wrote:
>
>> In the example in the man page, if the two free() calls are back to back
>> with no intervening malloc() calls, the double free() is detected. I
>> tried adding a malloc(1000) call in the middle:
>>
>>     free(p);
>>     printf("%s(): returned from first free() call\n", __func__);
>>
>>     malloc(1000);
>>     printf("%s(): returned from second malloc(1000) call\n", __func__);
>>
>>     free(p);
>>     printf("%s(): returned from second free() call\n", __func__);
>>
>> and the program ran to completion with no apparent problem.
> I wonder if alternative memory allocators might not do better.
> jemalloc, for example
> <https://github.com/jemalloc/jemalloc/wiki/Use-Case%3A-Find-a-memory-corruption-bug>.
As far as I can tell, the distributed version of jemalloc isn't
configured with the --enable-debug or --enable-fill options, either or
both of which might -- or might not -- help detect problems like this.
In my personal opinion, relying on any library to catch raw pointer
errors at runtime is probably not the way to go. It might be better to
(1) never define an uninitialized pointer, and (2) wrap free() in
function that looked like this (and never use free() by itself):

===
void my_free(void **pp)
{     free(*pp);
    *pp = NULL;
}

....
char *p = NULL;
....
    p = malloc(...);
....
    my_free(&p);
....
===

At this point, it might be easier to code in C++ (using smart pointers)
or Rust (Rust is supposed to be good at this sort of thing).

Louis

Subject: Re: Joy of this, Joy of that
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Wed, 27 Nov 2024 06:39 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 27 Nov 2024 06:39:35 +0000
Subject: Re: Joy of this, Joy of that
Newsgroups: comp.os.linux.misc
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<vhl090$5ghq$1@dont-email.me>
<w4adnUM659THQqP6nZ2dnZfqnPednZ2d@earthlink.com>
<vhndam$ljks$1@dont-email.me> <871pz4osys.fsf@comcast.net.invalid>
<vhp646$12c7u$1@dont-email.me>
<pgidnQQYp91K_dz6nZ2dnZfqnPqdnZ2d@earthlink.com>
<vhsdhp$1m6qu$2@dont-email.me>
<X4KcnQQzFNko49_6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhvdmo$2900d$3@dont-email.me> <vhvdqu$28p7r$7@dont-email.me>
<vhvm34$2aerk$2@dont-email.me>
<1b166410-ecc1-f9e5-7218-cde9618f4686@example.net>
<lqi4odFdu06U3@mid.individual.net>
<77840736-c143-e896-5da0-d0afae4915ed@example.net>
<vi1p3r$2oh05$7@dont-email.me> <vi2rd9$318ah$5@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Wed, 27 Nov 2024 01:39:34 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vi2rd9$318ah$5@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <8xidnV6HZos6I9v6nZ2dnZfqnPadnZ2d@earthlink.com>
Lines: 26
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-4N1Q3NRFInjOJGvL8IkIt8xK4RDY+mW765bGHdQMpljpQBFl67VHu4oEXUtOvhx3sXJ/YJ8rjbkbYBB!4jPa6GmaIMh09OXNda0ItuLxe/aMnYkCXFfXR2G6exFLDoavV7ISta2x8IjrpLzhnrehouRf+Prg!zp20bkcy/53FQgyFqltj
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/25/24 4:49 PM, Lawrence D'Oliveiro wrote:
> On Mon, 25 Nov 2024 12:04:11 +0000, The Natural Philosopher wrote:
>
>> The problem with Python is it seems to be the new BASIC.
>
> No, it is not. It is a far superior basis on which to build on than BASIC
> ever was.
>
>> An entry point for PWCP People Who Cant Program.
>
> There is a “new BASIC” that fits that description: it’s PHP.

Ummmmmm ... CAN use it for general programming ... but
it's not super-pleasant :-)

Good old BASIC worked well, was fairly easy to read and
understand and once you could structure stuff nicely ...
really nothing *wrong* with it other than being old
and unfashionable.

Try : https://www.freebasic.net/

Python is "better" - but not THAT much better. It has
become totally ubiquitous so there's really no avoiding
the lang.

Subject: Re: Joy of this, Joy of that
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Wed, 27 Nov 2024 06:58 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-3.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 27 Nov 2024 06:58:32 +0000
Subject: Re: Joy of this, Joy of that
Newsgroups: comp.os.linux.misc
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
<LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhoeap$r8gq$2@dont-email.me> <vhpmq3$14s79$2@dont-email.me>
<vhq1f7$16bou$1@dont-email.me> <vhqm4g$1aarf$1@dont-email.me>
<vhr2r7$1cdln$1@dont-email.me> <vhr8hh$1ddh7$2@dont-email.me>
<vhr9u1$1dh3s$1@dont-email.me> <vhrbsr$1dqca$2@dont-email.me>
<vhs3ji$1kb5c$1@dont-email.me> <vhtht6$1s5d5$5@dont-email.me>
<vhtplb$1tioh$1@dont-email.me> <lqfq99F2ek8U1@mid.individual.net>
<qaWcnZSF3q3zW976nZ2dnZfqn_WdnZ2d@earthlink.com>
<vi0gqv$2f1do$4@dont-email.me>
<wfCdnZC3ltuegdn6nZ2dnZfqnPcAAAAA@earthlink.com>
<e154b857-0230-db09-669d-4d4e33aaee03@example.net>
<FeScnawtnN_xpNj6nZ2dnZfqn_udnZ2d@earthlink.com>
<eebc5913-6252-d802-c591-f85692dfb1d4@example.net>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Wed, 27 Nov 2024 01:58:31 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <eebc5913-6252-d802-c591-f85692dfb1d4@example.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <I6ucnU1SQc6FXtv6nZ2dnZfqnPednZ2d@earthlink.com>
Lines: 64
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-I9gauOhasyTC4MQ9dlWUDQNcUXTWIrCly7vqMX4pghuyc3CgGJ1Nt38STy2ZnkcODm2HPd2M17tIe6p!r+DRLFeulFq3Jiek9oGusYDQuKqXXG7PETj5Y9FUcibKCJ5IFrHU1HK9soXbA80scsKCeUnR9duy!DwLpBHtysqWRij/SWxYP
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/26/24 4:12 AM, D wrote:
>
>
> On Mon, 25 Nov 2024, 186282@ud0s4.net wrote:
>
>> On 11/25/24 4:56 AM, D wrote:
>>>
>>>
>>> On Mon, 25 Nov 2024, 186282@ud0s4.net wrote:
>>>
>>>> On 11/24/24 7:36 PM, Lawrence D'Oliveiro wrote:
>>>>> On Sun, 24 Nov 2024 19:35:57 -0500, 186282@ud0s4.net wrote:
>>>>>
>>>>>> Do kinda pref "{ }" or "begin end" over the dangling depth thing ...
>>>>>> get six or eight levels into something and it's a total bitch to spot
>>>>>> what's inside what without using comments.
>>>>>
>>>>> So use the comments. That’s what I do.
>>>>
>>>>  Only good way ...
>>>>
>>>>  Not a killer, but kinda annoying. The eye doesn't
>>>>  spot indents nearly was well as hard delimiters.
>>>>
>>>
>>> You can have indents _and_ delimiters for the ultimate in eye
>>> spotting capability! ;)
>>
>>  As I said to Larry, I almost always use just 2-space
>>  indents so deeply-nested stuff doesn't tend to run
>>  off the page margin. Object langs make this even worse
>>  with all the something.something.something.something
>>  sorts of lines.
>>
>>  SOME of the IDEs for Python KINDA help, can spot
>>  nestings fairly well, but I mostly just use nano
>>  in one terminal and do test runs from another.
>>  Something like PyCharm or Visual are kinda overkill
>>  most of the time.
>>
>
> I use four, but since worked as a systems administrator (or what today
> be called "devops") I never wrote any programs large enough, or
> complicated enough, to run out of line space.

My last big Python app was about 450 lines of code - and
it had LOTS of option switches (TOO many!). Things got
nested really deep sometimes.

Shrank that to about 250 lines of Pascal (the re-think
plus leaving out the options even I never used).

> This is what I do not like about power shell. Some of the commands are
> way too long to type. I like ls, df, du & co! It would be horrible to
> have to type list_files every time.

I kinda have to admit, or brag, that I never used PowerShell.

But yea, shortish generally IS a lot better. Longish is
one reason I hate JS, and then there was COBOL :-)

Haven't done a COBOL app for a long time ... I'll have
to do something ... found a COBOL IDE of sorts somewhere ...
ah, OpenCobolIDE (a PyPy pgm).

Subject: Re: Joy of this, Joy of that
From: D
Newsgroups: comp.os.linux.misc
Organization: i2pn2 (i2pn.org)
Date: Wed, 27 Nov 2024 09:10 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.quux.org!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: nospam@example.net (D)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 10:10:20 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <60d86bc0-f359-6883-20bd-166325a9e19a@example.net>
References: <vhigot$1uakf$1@dont-email.me> <vhsdhp$1m6qu$2@dont-email.me> <X4KcnQQzFNko49_6nZ2dnZfqnPWdnZ2d@earthlink.com> <vhvdmo$2900d$3@dont-email.me> <vhvdqu$28p7r$7@dont-email.me> <vhvm34$2aerk$2@dont-email.me> <1b166410-ecc1-f9e5-7218-cde9618f4686@example.net>
<lqi4odFdu06U3@mid.individual.net> <77840736-c143-e896-5da0-d0afae4915ed@example.net> <vi1p3r$2oh05$7@dont-email.me> <2118139f-4451-560b-5094-a3d61c05f0d3@example.net> <lqkh38Fpp09U2@mid.individual.net> <vi47lr$3cj2g$1@dont-email.me> <vi4hok$3f6em$1@dont-email.me>
<lqmk0jF5lsrU1@mid.individual.net> <7bbb95df-167e-6e29-642e-884cd1d92c5b@example.net> <lqnbklF92ekU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: i2pn2.org;
logging-data="136989"; mail-complaints-to="usenet@i2pn2.org";
posting-account="w/4CleFT0XZ6XfSuRJzIySLIA6ECskkHxKUAYDZM66M";
X-Spam-Checker-Version: SpamAssassin 4.0.0
In-Reply-To: <lqnbklF92ekU1@mid.individual.net>
View all headers

On Wed, 27 Nov 2024, rbowman wrote:

> On Tue, 26 Nov 2024 21:58:45 +0100, D wrote:
>
>> Ahh... and today you have agile snakeoil salesmen! I heard a story from
>> the girlfriend of one of my consultants. Her company, a computer game
>> company, hired an "agile coach" who was workshopping away like a madman.
>
> Right... I wonder if they even believe in the snake oil.We had a police
> chief who was a pretty nice guy but had a weakness for traveling medicine
> shows that would teach the officers about gang violence and so forth. Even
> the low lifes in town knew the 'gangs' were bored 12 year olds with spray
> cans that would last 4 seconds in Compton but he lapped it up.
>
> Then the Hells Angels came for vacation and he went off the deep end. The
> Angels were better behaved than when the BMW riders came to town but he
> imported cops from another state to deal with the potential bloody
> violence. The violence turned out to be the out of state cops arresting
> college kids who were protesting the over the top treatment of the bikers.
>
> City council went ballistic when they got the bill and it turned out it's
> against state law to import cops, something that goes back to the copper
> mines and Pinkertons, so the chief was fired.
>
> I'm sure the snake oil salesmen took the show to some other town. The
> agile people probably use the same model.
>

Next up... AI snakeoil salesmen! I saw in the swedish mainstream news,
that ex BP chairman Carl-Henrik Svanbergs has been the government
AI-commissioner.

He is now saying that only the government can make sweden a leading
AI-nation. Therefore the government must create a program educating the
population at large in Chat GPT, and it must "kickstart innovation".

I find this hilarious since the Northvolt battery factory is filing for
chapter 11 and the governments retirement funds invested some hundreds of
millions of dollars in this green bubble. Now they will probably invite
Microsoft to become swedens "AI" partner, teaching the population about
Chat GPT, and probably a government requirement in all tenders for end
user software must be that it has Chat GPT.

Nothing like the government when it comes to inviting the latest snakeoil
salesmen! =)

Subject: Re: Joy of this, Joy of that
From: D
Newsgroups: comp.os.linux.misc
Organization: i2pn2 (i2pn.org)
Date: Wed, 27 Nov 2024 09:12 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.quux.org!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: nospam@example.net (D)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 10:12:06 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <c3e5d0c1-c345-3533-a50d-9f6500f8cd84@example.net>
References: <vhigot$1uakf$1@dont-email.me> <6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com> <20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me> <vhmprp$iaf1$1@dont-email.me> <LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com> <vhoeap$r8gq$2@dont-email.me>
<vhpmq3$14s79$2@dont-email.me> <vhq1f7$16bou$1@dont-email.me> <vhqm4g$1aarf$1@dont-email.me> <vhr2r7$1cdln$1@dont-email.me> <vhr8hh$1ddh7$2@dont-email.me> <vhr9u1$1dh3s$1@dont-email.me> <vhrbsr$1dqca$2@dont-email.me> <vhs3ji$1kb5c$1@dont-email.me>
<vhtht6$1s5d5$5@dont-email.me> <vhtplb$1tioh$1@dont-email.me> <lqfq99F2ek8U1@mid.individual.net> <qaWcnZSF3q3zW976nZ2dnZfqn_WdnZ2d@earthlink.com> <vi0gqv$2f1do$4@dont-email.me> <wfCdnZC3ltuegdn6nZ2dnZfqnPcAAAAA@earthlink.com> <e154b857-0230-db09-669d-4d4e33aaee03@example.net>
<FeScnawtnN_xpNj6nZ2dnZfqn_udnZ2d@earthlink.com> <eebc5913-6252-d802-c591-f85692dfb1d4@example.net> <I6ucnU1SQc6FXtv6nZ2dnZfqnPednZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="8323328-2116573338-1732698728=:16130"
Injection-Info: i2pn2.org;
logging-data="137367"; mail-complaints-to="usenet@i2pn2.org";
posting-account="w/4CleFT0XZ6XfSuRJzIySLIA6ECskkHxKUAYDZM66M";
X-Spam-Checker-Version: SpamAssassin 4.0.0
In-Reply-To: <I6ucnU1SQc6FXtv6nZ2dnZfqnPednZ2d@earthlink.com>
View all headers

On Wed, 27 Nov 2024, 186282@ud0s4.net wrote:

> On 11/26/24 4:12 AM, D wrote:
>>
>>
>> On Mon, 25 Nov 2024, 186282@ud0s4.net wrote:
>>
>>> On 11/25/24 4:56 AM, D wrote:
>>>>
>>>>
>>>> On Mon, 25 Nov 2024, 186282@ud0s4.net wrote:
>>>>
>>>>> On 11/24/24 7:36 PM, Lawrence D'Oliveiro wrote:
>>>>>> On Sun, 24 Nov 2024 19:35:57 -0500, 186282@ud0s4.net wrote:
>>>>>>
>>>>>>> Do kinda pref "{ }" or "begin end" over the dangling depth thing ...
>>>>>>> get six or eight levels into something and it's a total bitch to spot
>>>>>>> what's inside what without using comments.
>>>>>>
>>>>>> So use the comments. That’s what I do.
>>>>>
>>>>>  Only good way ...
>>>>>
>>>>>  Not a killer, but kinda annoying. The eye doesn't
>>>>>  spot indents nearly was well as hard delimiters.
>>>>>
>>>>
>>>> You can have indents _and_ delimiters for the ultimate in eye spotting
>>>> capability! ;)
>>>
>>>  As I said to Larry, I almost always use just 2-space
>>>  indents so deeply-nested stuff doesn't tend to run
>>>  off the page margin. Object langs make this even worse
>>>  with all the something.something.something.something
>>>  sorts of lines.
>>>
>>>  SOME of the IDEs for Python KINDA help, can spot
>>>  nestings fairly well, but I mostly just use nano
>>>  in one terminal and do test runs from another.
>>>  Something like PyCharm or Visual are kinda overkill
>>>  most of the time.
>>>
>>
>> I use four, but since worked as a systems administrator (or what today be
>> called "devops") I never wrote any programs large enough, or complicated
>> enough, to run out of line space.
>
> My last big Python app was about 450 lines of code - and
> it had LOTS of option switches (TOO many!). Things got
> nested really deep sometimes.
>
> Shrank that to about 250 lines of Pascal (the re-think
> plus leaving out the options even I never used).
>
>> This is what I do not like about power shell. Some of the commands are way
>> too long to type. I like ls, df, du & co! It would be horrible to have to
>> type list_files every time.
>
> I kinda have to admit, or brag, that I never used PowerShell.
>
> But yea, shortish generally IS a lot better. Longish is
> one reason I hate JS, and then there was COBOL :-)
>
> Haven't done a COBOL app for a long time ... I'll have
> to do something ... found a COBOL IDE of sorts somewhere ...
> ah, OpenCobolIDE (a PyPy pgm).
>

Ahh yes... forgot about javascript. It makes me cry when I see it. =(

Note that the 250 lines of pascal could be reduced further to 1 line if
you find out the true name of god and use that instead!

Subject: Re: Joy of this, Joy of that
From: Pancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 27 Nov 2024 09:27 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 09:27:35 +0000
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <vi6om7$3u8li$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
<vhptgf$1614q$1@dont-email.me> <Iq40P.70904$EQue.62359@fx13.iad>
<slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
<mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me>
<wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me>
<wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me>
<wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me>
<wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me>
<O5u1P.72795$OVd1.12914@fx10.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Nov 2024 10:27:36 +0100 (CET)
Injection-Info: dont-email.me; posting-host="22ccd1bdc78e6e91a1073b67cec8f442";
logging-data="4137650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19t4NG6mq9SSL7YBdqtLu5CzHv6mwCITHI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:IgKsAD9R6WSQlCs3i7amb1DA7Do=
In-Reply-To: <O5u1P.72795$OVd1.12914@fx10.iad>
Content-Language: en-GB
View all headers

On 11/27/24 00:55, Louis Krupp wrote:
> On 11/26/2024 2:22 PM, Lawrence D'Oliveiro wrote:
>> On Tue, 26 Nov 2024 08:32:32 +0000, Richard Kettlewell wrote:
>>
>>>> The examples show that freeing the same pointer twice can be
>>>> detected reliably.
>>> They do no such thing.
>> free(p);
>> printf("%s(): returned from first free() call\n", __func__);
>>
>> free(p);
>> printf("%s(): returned from second free() call\n", __func__);
>>
>> Is that or is that not freeing the same pointer twice?
>
> In the example in the man page, if the two free() calls are back to back
> with no intervening malloc() calls, the double free() is detected. I
> tried adding a malloc(1000) call in the middle:
>
>     free(p);
>     printf("%s(): returned from first free() call\n", __func__);
>
>     malloc(1000);
>     printf("%s(): returned from second malloc(1000) call\n", __func__);
>
>     free(p);
>     printf("%s(): returned from second free() call\n", __func__);
>
> and the program ran to completion with no apparent problem.
>

Yes, possibly this malloc reassigned the same address as the unseen
original malloc. In general, without fat pointers, it is hard to see how
free could detect that memory had been reassigned.

It is interesting to know that unoptimised compilations try to spot
double free, but only a little interesting. I remember we ran a tool
called Purify to spot this type of error, amongst other errors.
Presumably that injected additional code to check reliably.

Subject: Re: Joy of this, Joy of that
From: Pancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 27 Nov 2024 09:34 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 09:34:10 +0000
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vi6p2i$3u8li$2@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me> <vhsdhp$1m6qu$2@dont-email.me>
<X4KcnQQzFNko49_6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhvdmo$2900d$3@dont-email.me> <vhvdqu$28p7r$7@dont-email.me>
<vhvm34$2aerk$2@dont-email.me>
<1b166410-ecc1-f9e5-7218-cde9618f4686@example.net>
<lqi4odFdu06U3@mid.individual.net>
<77840736-c143-e896-5da0-d0afae4915ed@example.net>
<vi1p3r$2oh05$7@dont-email.me>
<2118139f-4451-560b-5094-a3d61c05f0d3@example.net>
<lqkh38Fpp09U2@mid.individual.net> <vi47lr$3cj2g$1@dont-email.me>
<vi4hok$3f6em$1@dont-email.me> <vi4l5c$3fned$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 27 Nov 2024 10:34:10 +0100 (CET)
Injection-Info: dont-email.me; posting-host="22ccd1bdc78e6e91a1073b67cec8f442";
logging-data="4137650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hQanah2c8WhyQ1rWr9qiAiOoMzrxJh2I="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:DyhwuhdRFYQn+GgwS8oOw81zEBw=
In-Reply-To: <vi4l5c$3fned$3@dont-email.me>
Content-Language: en-GB
View all headers

On 11/26/24 14:15, Chris Ahlstrom wrote:
> Rich wrote this post while blinking in Morse code:
>
>> Pancho <Pancho.Jones@proton.me> wrote:
>>>
>>> <snip>
>>>
>>> The fundamental characteristic of a good programmer is to be able to
>>> deliver an application that is useful. Everything else is secondary.
>
> Nah, the application must also be maintainable.
>

The need for maintainability is a consequence of people wanting to use a
program. Even useful programs, may never need to be maintained.

Additionally, too much concentration on maintainability in development
can delay a project and cause cancellation before delivery.

Subject: Re: Joy of this, Joy of that
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Wed, 27 Nov 2024 11:58 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 11:58:35 +0000
Organization: A little, after lunch
Lines: 81
Message-ID: <vi71hb$3vogk$10@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me> <vhsdhp$1m6qu$2@dont-email.me>
<X4KcnQQzFNko49_6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhvdmo$2900d$3@dont-email.me> <vhvdqu$28p7r$7@dont-email.me>
<vhvm34$2aerk$2@dont-email.me>
<1b166410-ecc1-f9e5-7218-cde9618f4686@example.net>
<lqi4odFdu06U3@mid.individual.net>
<77840736-c143-e896-5da0-d0afae4915ed@example.net>
<vi1p3r$2oh05$7@dont-email.me>
<2118139f-4451-560b-5094-a3d61c05f0d3@example.net>
<lqkh38Fpp09U2@mid.individual.net> <vi47lr$3cj2g$1@dont-email.me>
<vi4hok$3f6em$1@dont-email.me> <lqmk0jF5lsrU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 27 Nov 2024 12:58:35 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d3a623bf95e4349e30bbb37a7e6182dd";
logging-data="4186644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sRjwWTFh0QgWKQMMoExrd+qtWbEpDLC0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ol7XBxmRBgFtOgPZZnnHEDZh5Ro=
In-Reply-To: <lqmk0jF5lsrU1@mid.individual.net>
Content-Language: en-GB
View all headers

On 26/11/2024 18:57, rbowman wrote:
> On Tue, 26 Nov 2024 13:17:08 -0000 (UTC), Rich wrote:
>
>> Yep, exactly. If they can be given instructions that match their "lego
>> brick set" they can snap something together. Ask them to do anything
>> that requires creativity or research and understanding, and you get back
>> a turd that has had hours of polishing applied.
>
> The holy grail for management is a design methodology that gets adequate
> results from a workforce of varying aptitudes. Particularly for larger
> corporations you'll get a normal distribution, a few very good, a few
> completely useless, and a lot of mediocrity. That's what you have to work
> with.
>

I've encountered that in my time in mil spec aerospace.
A very few people analysed the project and broke it down in to circuit
board specs.

(Even down to a board the sized of a paperback with gold plated edge
connector containing 6 resistors two capacitors and an 8 pin IC)

Then a selection of random monkeys who could solder fucked around with
random components *until it met the specification*.

And the whole thing was a closed feedback loop. You went round and round
until the whole bloody thing either met the spec, or ran out of
government budget,

> What I've seen over the years is a company will luck out, get a better
> than average distribution, and achieve success. Whatever they're doing is
> taken as an example of the right way and copied mechanically. Top down
> structured programming, agile, devops, and so forth have their day.
>

Indeed. At top management level, one does not care how they did it, only
that they did.

> TI lucked out in the '70s and used something they called 'matrix
> management' that became the new Wunderkind. The '80s brought 'In Search of
> Excellence'.
>
> https://en.wikipedia.org/wiki/In_Search_of_Excellence
>
> Good money was made from book sales and training sessions from independent
> snake oil salesmen preaching the gospel. The company I worked for had one
> of the sessions. Not too many of the 'excellent' corporations are around
> today.
>
I was surprised to discover that what I did naturally - coming in in the
morning and looking around to see who looked miserable and asking them
what was wrong, and then trying to sort it out, was actually known as
'management by walking about'

> About 10 years ago the company I now work for had a 'pair programming'
> session. That was hilarious. The 'experts' were only familiar with Apple
> machines and other than the one they brought there wasn't an Apple in the
> building. Having been through required attendance things before my team
> carefully stayed to the back of the room where we could slink away and get
> back to business.
>
> I'm sure the next methodology will wrap itself around AI, spin off
> training companies, and mostly fail to deliver on the promises.
>
Nothing is worse than a CompSci graduate trying to introduce a whole new
language based on its elegance, expect a MBA (Mostly bloody arseholes)
trying to implement the latest fashionable management theory with no
idea as to why it is fashionable, where it might fit, or what good it
might do if any.

--
"What do you think about Gay Marriage?"
"I don't."
"Don't what?"
"Think about Gay Marriage."

Subject: Re: Joy of this, Joy of that
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Wed, 27 Nov 2024 12:05 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 12:05:02 +0000
Organization: A little, after lunch
Lines: 31
Message-ID: <vi71te$3vogk$11@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
<mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me>
<wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me>
<wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me>
<wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me>
<wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me>
<O5u1P.72795$OVd1.12914@fx10.iad> <vi5tpb$3medq$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Nov 2024 13:05:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d3a623bf95e4349e30bbb37a7e6182dd";
logging-data="4186644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VN8pFXKDOKBiIVJyQI99zkB/5IAK8h2I="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:WBfmm1IRPmixraDOJJn/Qp8v6kY=
Content-Language: en-GB
In-Reply-To: <vi5tpb$3medq$3@dont-email.me>
View all headers

On 27/11/2024 01:48, Rich wrote:
> The only two guarantees given in that paragraph are:
>
> 1) if ptr was returned by one of the malloc's, the space referenced by
> ptr is deallocated (albeit only for the first call of free(ptr), per
> the second sentence);
> and
> 2) if ptr is NULL, nothing occurs.

Exactly. The result of anything else is implementation dependent on the
library.

One might write a free that says 'look at our list of allocated blocks,
compare with the pointer and if no match do nothing'

Or one that says 'look at our list of allocated block compare with the
pointer and if no match, segfault'

I am not au fait with the internal of 'free()' so I cannot comment as to
why the first is not always the case.

--
“People believe certain stories because everyone important tells them,
and people tell those stories because everyone important believes them.
Indeed, when a conventional wisdom is at its fullest strength, one’s
agreement with that conventional wisdom becomes almost a litmus test of
one’s suitability to be taken seriously.”

Paul Krugman

Subject: Re: Joy of this, Joy of that
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 27 Nov 2024 16:33 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 16:33:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <vi7hl6$2snk$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me> <mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me> <wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me> <wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me> <wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me> <wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me> <O5u1P.72795$OVd1.12914@fx10.iad> <vi5tpb$3medq$3@dont-email.me> <vi71te$3vogk$11@dont-email.me>
Injection-Date: Wed, 27 Nov 2024 17:33:43 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d88ef50c19d7644f1fb81fb65f6f024b";
logging-data="94964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tz9qrVF/MslKR5eTl0V2t"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:dNMJ52bOVBgGBUJz5pT9cW53agU=
View all headers

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 27/11/2024 01:48, Rich wrote:
>> The only two guarantees given in that paragraph are:
>>
>> 1) if ptr was returned by one of the malloc's, the space referenced by
>> ptr is deallocated (albeit only for the first call of free(ptr), per
>> the second sentence);
>> and
>> 2) if ptr is NULL, nothing occurs.
>
> Exactly. The result of anything else is implementation dependent on the
> library.
>
> One might write a free that says 'look at our list of allocated blocks,
> compare with the pointer and if no match do nothing'
>
> Or one that says 'look at our list of allocated block compare with the
> pointer and if no match, segfault'
>
> I am not au fait with the internal of 'free()' so I cannot comment as to
> why the first is not always the case.

I can hazzard a guess. The time taken to perform the search, or the
effort needed to maintain an "index structure" to perform an optimized
search, plus the time for the optimized search, was felt to be
excessive and wasteful when the "spec" says "don't ever do this".

Subject: Re: Joy of this, Joy of that
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Wed, 27 Nov 2024 17:20 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 17:20:44 +0000
Organization: A little, after lunch
Lines: 45
Message-ID: <vi7kdc$3793$7@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me> <mcf0P.211278$pZ%.68099@fx16.iad>
<vhs153$1k6ft$3@dont-email.me> <wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk>
<vhtide$1s5d5$8@dont-email.me> <wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk>
<vi01qi$2cic3$1@dont-email.me> <wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk>
<vi2rat$318ah$4@dont-email.me> <wwviksav1i7.fsf@LkoBDZeT.terraraq.uk>
<vi5e6t$3k9sn$1@dont-email.me> <O5u1P.72795$OVd1.12914@fx10.iad>
<vi5tpb$3medq$3@dont-email.me> <vi71te$3vogk$11@dont-email.me>
<vi7hl6$2snk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 27 Nov 2024 18:20:45 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d3a623bf95e4349e30bbb37a7e6182dd";
logging-data="105763"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5KoWnt2yuGEvADOnXBziIz4VOscjlAFc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:t2jeDr349VQITkk44MVN38FXj3Y=
Content-Language: en-GB
In-Reply-To: <vi7hl6$2snk$1@dont-email.me>
View all headers

On 27/11/2024 16:33, Rich wrote:
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> On 27/11/2024 01:48, Rich wrote:
>>> The only two guarantees given in that paragraph are:
>>>
>>> 1) if ptr was returned by one of the malloc's, the space referenced by
>>> ptr is deallocated (albeit only for the first call of free(ptr), per
>>> the second sentence);
>>> and
>>> 2) if ptr is NULL, nothing occurs.
>>
>> Exactly. The result of anything else is implementation dependent on the
>> library.
>>
>> One might write a free that says 'look at our list of allocated blocks,
>> compare with the pointer and if no match do nothing'
>>
>> Or one that says 'look at our list of allocated block compare with the
>> pointer and if no match, segfault'
>>
>> I am not au fait with the internal of 'free()' so I cannot comment as to
>> why the first is not always the case.
>
> I can hazzard a guess. The time taken to perform the search, or the
> effort needed to maintain an "index structure" to perform an optimized
> search, plus the time for the optimized search, was felt to be
> excessive and wasteful when the "spec" says "don't ever do this".
>

Look I don't know how memory allocation and de allocation is done
but my instinct would be to hold a long list of pointers to allocated
blocks. Possibly in order of the allocated addresses, which would make
allocating a new block a case of finding the first gap in the list that
is [required blocksize] and inserting a new list element, and de
allocation a question of searching the list for a matching allocation,
and deleting it from the list.

It would be trivial to get to the end of the list and discover that that
was the end, and, with no match found simply ignore the free call

--
Climate Change: Socialism wearing a lab coat.

Subject: Re: Joy of this, Joy of that
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc
Organization: terraraq NNTP server
Date: Wed, 27 Nov 2024 18:32 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 18:32:25 +0000
Organization: terraraq NNTP server
Message-ID: <wwvmshkle86.fsf@LkoBDZeT.terraraq.uk>
References: <vhigot$1uakf$1@dont-email.me>
<slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
<mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me>
<wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me>
<wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me>
<wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me>
<wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me>
<O5u1P.72795$OVd1.12914@fx10.iad> <vi5tpb$3medq$3@dont-email.me>
<vi71te$3vogk$11@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="29230"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:e/xvm7/ZyVBTHgCtiTTzhVqNgOw=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
View all headers

The Natural Philosopher <tnp@invalid.invalid> writes:
> On 27/11/2024 01:48, Rich wrote:
>> The only two guarantees given in that paragraph are:
>> 1) if ptr was returned by one of the malloc's, the space referenced
>> by
>> ptr is deallocated (albeit only for the first call of free(ptr), per
>> the second sentence);
>> and
>> 2) if ptr is NULL, nothing occurs.
>
> Exactly. The result of anything else is implementation dependent on
> the library.
>
> One might write a free that says 'look at our list of allocated
> blocks, compare with the pointer and if no match do nothing'
>
> Or one that says 'look at our list of allocated block compare with
> the pointer and if no match, segfault'
>
> I am not au fait with the internal of 'free()' so I cannot comment as
> to why the first is not always the case.

You can absolutely write an allocator that does that if you want. You’ll
pay for it in performance and memory usage, but it might well be
worthwhile in a given application.

However, it doesn’t fully solve the problem. Suppose the sequence of
operations (with lots going on between) happens to look like this:

int *p = malloc(xxx);
// ...
free(p);
// ...
int *q = malloc(yyy);
// ...
free(p); // double free of p
// ...
*q = 1;

If p!=q then a tracking allocator like you envisage would spot the
error. But if it happens that p=q (which is entirely possible) then the
tracking allocator won’t notice the problem. The program will start to
misbehave seriously when the it access the (now freed) memory pointed to
be q.

Nulling out pointers after freeing them, as suggested elsewhere helps,
but that depends on perfect play by human programmers, not something you
want to rely on.

To go further you need to track not just the status of each allocation
but the provenance of the pointers to. valgrind does that (and a lot
more) but the performance penalty means it’s only practical to use for
testing and debugging.

--
https://www.greenend.org.uk/rjk/

Subject: Re: Joy of this, Joy of that
From: rbowman
Newsgroups: comp.os.linux.misc
Date: Wed, 27 Nov 2024 18:51 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: 27 Nov 2024 18:51:19 GMT
Lines: 11
Message-ID: <lqp816Fid9aU2@mid.individual.net>
References: <vhigot$1uakf$1@dont-email.me>
<slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
<mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me>
<wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me>
<wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me>
<wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me>
<wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me>
<O5u1P.72795$OVd1.12914@fx10.iad> <vi5tpb$3medq$3@dont-email.me>
<vi71te$3vogk$11@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net YSnsuRwUzq9sbiw0D98MFgnUVDQ5CZcg6V78MYBXjSQUlvlvbc
Cancel-Lock: sha1:sLQZn78F4Fgx4R6i6InA52UwHHs= sha256:mPL0fJcJa88oIBRzhLLodPYl5NAnGrr7MEzDV62Y0I4=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Wed, 27 Nov 2024 12:05:02 +0000, The Natural Philosopher wrote:

> Or one that says 'look at our list of allocated block compare with the
> pointer and if no match, segfault'

https://elinux.org/Electric_Fence

I often use efence as a quick check. valgrind is more comprehensive but
when you run the programs with gdb any questionable access drops you into
the debugger then and there.

Subject: Re: Joy of this, Joy of that
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 27 Nov 2024 18:58 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 18:58:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <vi7q5f$4jlo$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me> <wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me> <wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me> <wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me> <wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me> <O5u1P.72795$OVd1.12914@fx10.iad> <vi5tpb$3medq$3@dont-email.me> <vi71te$3vogk$11@dont-email.me> <vi7hl6$2snk$1@dont-email.me> <vi7kdc$3793$7@dont-email.me>
Injection-Date: Wed, 27 Nov 2024 19:58:55 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d88ef50c19d7644f1fb81fb65f6f024b";
logging-data="151224"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IwUcX0fhxUZw1Z/ngnZdt"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:MyS7EOcBSGhrPAlO7T9yJDsFUCI=
View all headers

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 27/11/2024 16:33, Rich wrote:
>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>> On 27/11/2024 01:48, Rich wrote:
>>>> The only two guarantees given in that paragraph are:
>>>>
>>>> 1) if ptr was returned by one of the malloc's, the space referenced by
>>>> ptr is deallocated (albeit only for the first call of free(ptr), per
>>>> the second sentence);
>>>> and
>>>> 2) if ptr is NULL, nothing occurs.
>>>
>>> Exactly. The result of anything else is implementation dependent on the
>>> library.
>>>
>>> One might write a free that says 'look at our list of allocated blocks,
>>> compare with the pointer and if no match do nothing'
>>>
>>> Or one that says 'look at our list of allocated block compare with the
>>> pointer and if no match, segfault'
>>>
>>> I am not au fait with the internal of 'free()' so I cannot comment as to
>>> why the first is not always the case.
>>
>> I can hazzard a guess. The time taken to perform the search, or the
>> effort needed to maintain an "index structure" to perform an optimized
>> search, plus the time for the optimized search, was felt to be
>> excessive and wasteful when the "spec" says "don't ever do this".
>>
>
> Look I don't know how memory allocation and de allocation is done
> but my instinct would be to hold a long list of pointers to allocated
> blocks. Possibly in order of the allocated addresses, which would make
> allocating a new block a case of finding the first gap in the list that
> is [required blocksize] and inserting a new list element, and de
> allocation a question of searching the list for a matching allocation,
> and deleting it from the list.
>
> It would be trivial to get to the end of the list and discover that that
> was the end, and, with no match found simply ignore the free call

Yes, but now you burden /every/ free(ptr) call with an O(N) linear
search of all allocated blocks to determine if "ptr" has been
previously freed. With today's CPU's one could be excused in thinking
"not such a big deal". In the days of a PDP-11 or VAX-11/780 CPU
performance levels, doing an O(N) linear search, on every call to free,
to catch something the programmer was never supposed to do in the first
place, was likely viewed as too much overhead.

Subject: Re: Joy of this, Joy of that
From: rbowman
Newsgroups: comp.os.linux.misc
Date: Wed, 27 Nov 2024 19:06 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: 27 Nov 2024 19:06:02 GMT
Lines: 15
Message-ID: <lqp8sqFin9jU1@mid.individual.net>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
<LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhoeap$r8gq$2@dont-email.me> <vhpmq3$14s79$2@dont-email.me>
<vhq1f7$16bou$1@dont-email.me> <vhqm4g$1aarf$1@dont-email.me>
<vhr2r7$1cdln$1@dont-email.me> <vhr8hh$1ddh7$2@dont-email.me>
<vhr9u1$1dh3s$1@dont-email.me> <vhrbsr$1dqca$2@dont-email.me>
<vhs3ji$1kb5c$1@dont-email.me> <vhtht6$1s5d5$5@dont-email.me>
<vhtplb$1tioh$1@dont-email.me> <lqfq99F2ek8U1@mid.individual.net>
<qaWcnZSF3q3zW976nZ2dnZfqn_WdnZ2d@earthlink.com>
<vi0gqv$2f1do$4@dont-email.me>
<wfCdnZC3ltuegdn6nZ2dnZfqnPcAAAAA@earthlink.com>
<e154b857-0230-db09-669d-4d4e33aaee03@example.net>
<FeScnawtnN_xpNj6nZ2dnZfqn_udnZ2d@earthlink.com>
<eebc5913-6252-d802-c591-f85692dfb1d4@example.net>
<I6ucnU1SQc6FXtv6nZ2dnZfqnPednZ2d@earthlink.com>
<c3e5d0c1-c345-3533-a50d-9f6500f8cd84@example.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net N/KR+/HdJRVSfEVnHN/5IwpFmItSjYuiInpkpbYAKSC73UXUqm
Cancel-Lock: sha1:hhffV57NNWjM3TNHQvLE8ek/Fv0= sha256:J8mASXcEfpmjZoMs6SCyouQkRL6G+xYHwgjE+E4C5ls=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Wed, 27 Nov 2024 10:12:06 +0100, D wrote:

> Ahh yes... forgot about javascript. It makes me cry when I see it. =(

Apropos:

https://www.infoworld.com/article/3612364/uspto-petitioned-to-cancel-
oracles-javascript-trademark.html

Oracle is doing their usual dog in the manger tactic with ECMAScript.
They acquired the trademark from Sun and never had a part in it. I wonder
if Eich wakes up at 3 AM thinking about what he created? He wasn't happy
with the name in the first place.

Subject: Re: Joy of this, Joy of that
From: rbowman
Newsgroups: comp.os.linux.misc
Date: Wed, 27 Nov 2024 19:12 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: 27 Nov 2024 19:12:28 GMT
Lines: 14
Message-ID: <lqp98rFin9jU2@mid.individual.net>
References: <vhigot$1uakf$1@dont-email.me> <vhsdhp$1m6qu$2@dont-email.me>
<X4KcnQQzFNko49_6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhvdmo$2900d$3@dont-email.me> <vhvdqu$28p7r$7@dont-email.me>
<vhvm34$2aerk$2@dont-email.me>
<1b166410-ecc1-f9e5-7218-cde9618f4686@example.net>
<lqi4odFdu06U3@mid.individual.net>
<77840736-c143-e896-5da0-d0afae4915ed@example.net>
<vi1p3r$2oh05$7@dont-email.me>
<2118139f-4451-560b-5094-a3d61c05f0d3@example.net>
<lqkh38Fpp09U2@mid.individual.net> <vi47lr$3cj2g$1@dont-email.me>
<vi4hok$3f6em$1@dont-email.me> <lqmk0jF5lsrU1@mid.individual.net>
<vi71hb$3vogk$10@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net WD985ymCezyef4pewZE3Bw9ji4uFCxEwg8jY3HrjZI38/R4MdS
Cancel-Lock: sha1:yIVQYFwqylYiXXVorePi2kAfD+Q= sha256:xRPB+w0NqihckVb+d/0g5sU4SoSwTejapqxPMGoc4f0=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Wed, 27 Nov 2024 11:58:35 +0000, The Natural Philosopher wrote:

> I've encountered that in my time in mil spec aerospace.
> A very few people analysed the project and broke it down in to circuit
> board specs.

I worked on one DoD project in my career. I got bored and wandered off
after 6 months of wrangling about the spec. About a year later I talked to
one of the programmers who had stayed and asked if they'd written any code
yet. "Nope."

So much blood, sweat, tears, and ego involvement is involved in specs like
that it will be implemented even if it becomes apparent it isn't going to
work. Fiascos like the F-35 don't surprise me at all.

Subject: Re: Joy of this, Joy of that
From: D
Newsgroups: comp.os.linux.misc
Organization: i2pn2 (i2pn.org)
Date: Wed, 27 Nov 2024 20:26 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: nospam@example.net (D)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 21:26:38 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <1fad115c-5a36-7747-363b-3dcdfe0ea098@example.net>
References: <vhigot$1uakf$1@dont-email.me> <vhlium$93kn$1@dont-email.me> <vhmprp$iaf1$1@dont-email.me> <LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com> <vhoeap$r8gq$2@dont-email.me> <vhpmq3$14s79$2@dont-email.me> <vhq1f7$16bou$1@dont-email.me>
<vhqm4g$1aarf$1@dont-email.me> <vhr2r7$1cdln$1@dont-email.me> <vhr8hh$1ddh7$2@dont-email.me> <vhr9u1$1dh3s$1@dont-email.me> <vhrbsr$1dqca$2@dont-email.me> <vhs3ji$1kb5c$1@dont-email.me> <vhtht6$1s5d5$5@dont-email.me> <vhtplb$1tioh$1@dont-email.me>
<lqfq99F2ek8U1@mid.individual.net> <qaWcnZSF3q3zW976nZ2dnZfqn_WdnZ2d@earthlink.com> <vi0gqv$2f1do$4@dont-email.me> <wfCdnZC3ltuegdn6nZ2dnZfqnPcAAAAA@earthlink.com> <e154b857-0230-db09-669d-4d4e33aaee03@example.net> <FeScnawtnN_xpNj6nZ2dnZfqn_udnZ2d@earthlink.com>
<eebc5913-6252-d802-c591-f85692dfb1d4@example.net> <I6ucnU1SQc6FXtv6nZ2dnZfqnPednZ2d@earthlink.com> <c3e5d0c1-c345-3533-a50d-9f6500f8cd84@example.net> <lqp8sqFin9jU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: i2pn2.org;
logging-data="211619"; mail-complaints-to="usenet@i2pn2.org";
posting-account="w/4CleFT0XZ6XfSuRJzIySLIA6ECskkHxKUAYDZM66M";
X-Spam-Checker-Version: SpamAssassin 4.0.0
In-Reply-To: <lqp8sqFin9jU1@mid.individual.net>
View all headers

On Wed, 27 Nov 2024, rbowman wrote:

> On Wed, 27 Nov 2024 10:12:06 +0100, D wrote:
>
>> Ahh yes... forgot about javascript. It makes me cry when I see it. =(
>
> Apropos:
>
> https://www.infoworld.com/article/3612364/uspto-petitioned-to-cancel-
> oracles-javascript-trademark.html
>
> Oracle is doing their usual dog in the manger tactic with ECMAScript.
> They acquired the trademark from Sun and never had a part in it. I wonder
> if Eich wakes up at 3 AM thinking about what he created? He wasn't happy
> with the name in the first place.

Ahh Oracle... a perfect example of what the maffia would look like if they
were a corporation. ;)

Subject: Re: Joy of this, Joy of that
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 27 Nov 2024 22:06 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 22:06:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <vi854f$6ct6$5@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
<vhptgf$1614q$1@dont-email.me> <Iq40P.70904$EQue.62359@fx13.iad>
<slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
<mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me>
<wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk> <vhtide$1s5d5$8@dont-email.me>
<wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> <vi01qi$2cic3$1@dont-email.me>
<wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk> <vi2rat$318ah$4@dont-email.me>
<wwviksav1i7.fsf@LkoBDZeT.terraraq.uk> <vi5e6t$3k9sn$1@dont-email.me>
<O5u1P.72795$OVd1.12914@fx10.iad> <vi6om7$3u8li$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Nov 2024 23:06:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a54ef93815f5ae2493f406172a94d729";
logging-data="209830"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BGG1b7p27KfrLt2v/SMmf"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:y3gbDU81hWYkCmOMs/HkNMmk3uo=
View all headers

On Wed, 27 Nov 2024 09:27:35 +0000, Pancho wrote:

> I remember we ran a tool
> called Purify to spot this type of error, amongst other errors.
> Presumably that injected additional code to check reliably.

As I understand it, Valgrind does it on your executable without source
code changes.

Subject: Re: Joy of this, Joy of that
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 27 Nov 2024 22:11 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Wed, 27 Nov 2024 22:11:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vi85e7$6ct6$6@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me> <mcf0P.211278$pZ%.68099@fx16.iad>
<vhs153$1k6ft$3@dont-email.me> <wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk>
<vhtide$1s5d5$8@dont-email.me> <wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk>
<vi01qi$2cic3$1@dont-email.me> <wwvmshnlmhm.fsf@LkoBDZeT.terraraq.uk>
<vi2rat$318ah$4@dont-email.me> <wwviksav1i7.fsf@LkoBDZeT.terraraq.uk>
<vi5e6t$3k9sn$1@dont-email.me> <O5u1P.72795$OVd1.12914@fx10.iad>
<vi5tpb$3medq$3@dont-email.me> <vi71te$3vogk$11@dont-email.me>
<vi7hl6$2snk$1@dont-email.me> <vi7kdc$3793$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Nov 2024 23:11:19 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a54ef93815f5ae2493f406172a94d729";
logging-data="209830"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18P6WLzabwZJ6vxIYgNf+Di"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:vvX3NhmUNd2dQ7q/RXbL1CBXI1s=
View all headers

On Wed, 27 Nov 2024 17:20:44 +0000, The Natural Philosopher wrote:

> ... my instinct would be to hold a long list of pointers to allocated
> blocks.

Actually you want a list of free blocks. Structures that include allocated
blocks would be for consistency-checking purposes.

Then you have to decide on what to do if an allocation request doesn’t
exactly match the size of an available free block: do you do “first-fit”
(allocate part of the first block that’s big enough, and return the
remainder to the free list) or “best-fit” (allocate part of the smallest
available block that’s big enough, and return any leftover to the free
list)? The latter might minimize fragmentation, but take more work.

Then you might have “lookaside lists” for common block sizes, to speed up
allocations of those sizes.

Then you realize that having a single list becomes a bottleneck in a
multithreaded program, so you really need multiple free lists. Then you
have to watch out for certain lists shrinking while others grow, and
figure out how to rebalance them once in a while.

There’s a whole lot more to the issue, but you start to get the idea.

Pages:12345678910111213141516171819202122232425262728293031323334

rocksolid light 0.9.8
clearnet tor