Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

All language designers are arrogant. Goes with the territory... -- Larry Wall


devel / comp.lang.c++ / Re: "Functional exception-less error handling with C++23

SubjectAuthor
* Re: "Functional exception-less error handling with C++23Muttley
+* Re: "Functional exception-less error handling with C++23David Brown
|`* Re: "Functional exception-less error handling with C++23Muttley
| `- Re: "Functional exception-less error handling with C++23David Brown
`* Re: "Functional exception-less error handling with C++23Mr Flibble
 +* Re: "Functional exception-less error handling with C++23Malcolm McLean
 |`* Re: "Functional exception-less error handling with C++23Mr Flibble
 | `* Re: "Functional exception-less error handling with C++23Malcolm McLean
 |  +- Re: "Functional exception-less error handling with C++23Mr Flibble
 |  `* Re: "Functional exception-less error handling with C++23Chris M. Thomasson
 |   `* Re: "Functional exception-less error handling with C++23Muttley
 |    `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |     `* Re: "Functional exception-less error handling with C++23Muttley
 |      `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |       `* Re: "Functional exception-less error handling with C++23Muttley
 |        +- Re: "Functional exception-less error handling with C++23Muttley
 |        `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |         +- Re: "Functional exception-less error handling with C++23Bonita Montero
 |         `* Re: "Functional exception-less error handling with C++23Muttley
 |          +* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |`* Re: "Functional exception-less error handling with C++23Muttley
 |          | `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |  `* Re: "Functional exception-less error handling with C++23Muttley
 |          |   +* Re: "Functional exception-less error handling with C++23Malcolm McLean
 |          |   |`- Re: "Functional exception-less error handling with C++23Chris M. Thomasson
 |          |   `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |    `* Re: "Functional exception-less error handling with C++23Muttley
 |          |     `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |      `* Re: "Functional exception-less error handling with C++23Muttley
 |          |       `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |        `* Re: "Functional exception-less error handling with C++23Muttley
 |          |         `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |          `* Re: "Functional exception-less error handling with C++23Muttley
 |          |           +* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |           |`* Re: "Functional exception-less error handling with C++23Muttley
 |          |           | `- Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |           `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |            `* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |             `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |              `* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |               +* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |               |`* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |               | `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |               |  `- Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |               `* Re: "Functional exception-less error handling with C++23Keith Thompson
 |          |                +- Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |                `* Re: "Functional exception-less error handling with C++23David Brown
 |          |                 `* Re: "Functional exception-less error handling with C++23Muttley
 |          |                  `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                   +* Re: "Functional exception-less error handling with C++23Muttley
 |          |                   |`* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                   | `- Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                   `* Re: "Functional exception-less error handling with C++23David Brown
 |          |                    +* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                    |`* Re: "Functional exception-less error handling with C++23David Brown
 |          |                    | `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                    |  `* Re: "Functional exception-less error handling with C++23Vir Campestris
 |          |                    |   +- Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |                    |   `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                    |    +* Re: "Functional exception-less error handling with C++23Chris M. Thomasson
 |          |                    |    |`* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                    |    | `* Re: "Functional exception-less error handling with C++23Chris M. Thomasson
 |          |                    |    |  `- Re: "Functional exception-less error handling with C++23Chris M. Thomasson
 |          |                    |    `* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |                    |     `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                    |      `* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |                    |       `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                    |        `* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |                    |         `* Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                    |          `* Re: "Functional exception-less error handling with C++23Vir Campestris
 |          |                    |           +- Re: "Functional exception-less error handling with C++23Richard Damon
 |          |                    |           +* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |          |                    |           |+- Re: "Functional exception-less error handling with C++23Muttley
 |          |                    |           |`- Re: "Functional exception-less error handling with C++23Vir Campestris
 |          |                    |           `- Re: "Functional exception-less error handling with C++23Bonita Montero
 |          |                    `- Re: "Functional exception-less error handling with C++23Muttley
 |          `* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |           +- Re: "Functional exception-less error handling with C++23Muttley
 |           `* Re: "Functional exception-less error handling with C++23Muttley
 |            `* Re: "Functional exception-less error handling with C++23Scott Lurndal
 |             `- Re: "Functional exception-less error handling with C++23Muttley
 `* Re: "Functional exception-less error handling with C++23Muttley
  +- Re: "Functional exception-less error handling with C++23Öö Tiib
  `- Re: "Functional exception-less error handling with C++23Mr Flibble

Pages:1234
Re: "Functional exception-less error handling with C++23

<u3dv1h$asfe$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=86&group=comp.lang.c%2B%2B#86

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Tue, 9 May 2023 17:14:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <u3dv1h$asfe$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com> <ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com> <175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com> <2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com> <u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me> <u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me> <u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me> <u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<q1v6M.539027$Olad.29733@fx35.iad>
Injection-Date: Tue, 9 May 2023 17:14:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f4abde31a142c822785904edf044297a";
logging-data="356846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hiqNIwyrJETHoFFsW5Wfi"
Cancel-Lock: sha1:cqz+VfWP+/l6c9k7vw9P/Gre+yk=
 by: Mutt...@dastardlyhq.com - Tue, 9 May 2023 17:14 UTC

On Tue, 09 May 2023 17:03:18 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:
>Muttley@dastardlyhq.com writes:
>>On Tue, 9 May 2023 18:17:57 +0200
>>Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>Am 09.05.2023 um 18:14 schrieb Muttley@dastardlyhq.com:
>>>
>>>> You'd still need to write your own allocator (which in turn would need
>>>realloc
>>>> internally so defeating the point) because the STL doesn't do reallocation,
>
>>>...
>>>
>>>A realloc() is the same as a further malloc(), copy and then free()
>>>of the old block. There's no difference if the container does that
>>>manually.
>>
>>No, it absolutely is not the same as that. It first inspects the current
>memory
>>block to see if it can be extended.
>
>Which is almost _never_ in the real world unless you're using
>a buddy allocator, which is wasteful of virtual address space
>(and if not paged, memory as well).

fenris$ cat t.c
#include <stdio.h>
#include <stdlib.h>

int main()
{ char *m = (char *)malloc(10000);
printf("%p\n",m);
printf("%p\n",(char *)realloc(m,10100));
return 0;
} fenris$ cc t.c; a.out
0x7fe976808800
0x7fe976808800
fenris$ uname -a
Darwin fenris 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023;
root:xnu-8792.81.3~2/RELEASE_X86_64 x86_64

HTH

Re: "Functional exception-less error handling with C++23

<4wv6M.17856$i7t3.9722@fx08.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=87&group=comp.lang.c%2B%2B#87

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx08.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: "Functional exception-less error handling with C++23
Newsgroups: comp.lang.c++
References: <u1pli1$6mq8$1@dont-email.me> <175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com> <2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com> <u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me> <u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me> <u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me> <u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me> <q1v6M.539027$Olad.29733@fx35.iad> <u3dv1h$asfe$1@dont-email.me>
Lines: 46
Message-ID: <4wv6M.17856$i7t3.9722@fx08.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 09 May 2023 17:36:00 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 09 May 2023 17:36:00 GMT
X-Received-Bytes: 2579
 by: Scott Lurndal - Tue, 9 May 2023 17:36 UTC

Muttley@dastardlyhq.com writes:
>On Tue, 09 May 2023 17:03:18 GMT
>scott@slp53.sl.home (Scott Lurndal) wrote:
>>Muttley@dastardlyhq.com writes:
>>>On Tue, 9 May 2023 18:17:57 +0200
>>>Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>>Am 09.05.2023 um 18:14 schrieb Muttley@dastardlyhq.com:
>>>>
>>>>> You'd still need to write your own allocator (which in turn would need
>>>>realloc
>>>>> internally so defeating the point) because the STL doesn't do reallocation,
>>
>>>>...
>>>>
>>>>A realloc() is the same as a further malloc(), copy and then free()
>>>>of the old block. There's no difference if the container does that
>>>>manually.
>>>
>>>No, it absolutely is not the same as that. It first inspects the current
>>memory
>>>block to see if it can be extended.
>>
>>Which is almost _never_ in the real world unless you're using
>>a buddy allocator, which is wasteful of virtual address space
>>(and if not paged, memory as well).
>
>fenris$ cat t.c
>#include <stdio.h>
>#include <stdlib.h>
>
>int main()
>{
> char *m = (char *)malloc(10000);
> printf("%p\n",m);
> printf("%p\n",(char *)realloc(m,10100));
> return 0;
>}
>fenris$ cc t.c; a.out
>0x7fe976808800
>0x7fe976808800
>fenris$ uname -a
>Darwin fenris 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023;
> root:xnu-8792.81.3~2/RELEASE_X86_64 x86_64

Now try it after the app has been running for some time
doing thousands of allocations (e.g. for std::string).

Re: "Functional exception-less error handling with C++23

<u3e0jh$b2gg$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=88&group=comp.lang.c%2B%2B#88

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Tue, 9 May 2023 19:41:05 +0200
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <u3e0jh$b2gg$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 9 May 2023 17:41:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="78575890c9ca26ab31e96e404032bd83";
logging-data="363024"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194gfKQAFdWeR2xLxeFs+JPvrhSst8Dq3U="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:AiRge3ltrm0irmyjl0Ey6bRbY1A=
In-Reply-To: <u3dupo$arh5$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Tue, 9 May 2023 17:41 UTC

Am 09.05.2023 um 19:10 schrieb Muttley@dastardlyhq.com:

> FFS, do try and keep up. Thats why I said you'd have to write your own.

Have a look at modern allocators like mimalloc, TCMalloc or jemalloc.
With that there's no in-place reallocation.

Re: "Functional exception-less error handling with C++23

<175d954d8fd1e4ff$31$565070$7aa12caf@news.newsdemon.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=89&group=comp.lang.c%2B%2B#89

  copy link   Newsgroups: comp.lang.c++
Date: Tue, 9 May 2023 21:59:56 +0100
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0
Subject: Re: "Functional exception-less error handling with C++23
Content-Language: en-US
Newsgroups: comp.lang.c++
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me> <u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me> <175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com> <u3cvq9$76a6$1@dont-email.me>
From: flibb...@reddwarf.jmc.corp (Mr Flibble)
In-Reply-To: <u3cvq9$76a6$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 25
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.newsdemon.com!not-for-mail
Nntp-Posting-Date: Tue, 09 May 2023 20:59:56 +0000
Organization: NewsDemon - www.newsdemon.com
X-Complaints-To: abuse@newsdemon.com
Message-Id: <175d954d8fd1e4ff$31$565070$7aa12caf@news.newsdemon.com>
X-Received-Bytes: 2191
 by: Mr Flibble - Tue, 9 May 2023 20:59 UTC

On 09/05/2023 9:21 am, Muttley@dastardlyhq.com wrote:
> On Mon, 8 May 2023 18:26:16 +0100
> Mr Flibble <flibble2@reddwarf.jmc.corp> wrote:
>> On 08/05/2023 4:49 pm, Muttley@dastardlyhq.com wrote:
>>> On Thu, 20 Apr 2023 16:59:59 +0200
>>> David Brown <david.brown@hesbynett.no> wrote:
>>>> If the data is big enough that you don't want it in your local frame,
>>>> you'll likely be using some kind of ownership class to handle the
>>>> resource and heap management in a clean RAII manner.
>>>
>>> ie globals in disguise. Which is fine, but don't pretend its some profoundly
>>> new paradigm.
>>
>> Globals in disguise? You really are a clueless idiot, nearly as bad as
>> Bonita.
>
> If the ownership object/singleton is available to the rest of the program and
> not just the function/object in question then its a global. I'm not sure what
> the issue is.

The "singleton" provides the resource allocation *service* however the
ownership object is the RAII class which is *not* available to the rest
of the program so it bares no resemblance whatsoever to a global variable.

/Flibble

Re: "Functional exception-less error handling with C++23

<u3fjqu$kg1u$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=90&group=comp.lang.c%2B%2B#90

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Wed, 10 May 2023 08:15:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u3fjqu$kg1u$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com> <2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com> <u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me> <u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me> <u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me> <u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me> <q1v6M.539027$Olad.29733@fx35.iad> <u3dv1h$asfe$1@dont-email.me> <4wv6M.17856$i7t3.9722@fx08.iad>
Injection-Date: Wed, 10 May 2023 08:15:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="be409db5a47fd854899ca88bc9730439";
logging-data="671806"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YrAhiDRgS6FIKiE7YTWnN"
Cancel-Lock: sha1:kohifFu5Nmzc5mWGraoRjrVQCDg=
 by: Mutt...@dastardlyhq.com - Wed, 10 May 2023 08:15 UTC

On Tue, 09 May 2023 17:36:00 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:
>Muttley@dastardlyhq.com writes:
>>int main()
>>{
>> char *m = (char *)malloc(10000);
>> printf("%p\n",m);
>> printf("%p\n",(char *)realloc(m,10100));
>> return 0;
>>}
>>fenris$ cc t.c; a.out
>>0x7fe976808800
>>0x7fe976808800
>>fenris$ uname -a
>>Darwin fenris 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST
>2023;
>> root:xnu-8792.81.3~2/RELEASE_X86_64 x86_64
>
>Now try it after the app has been running for some time
>doing thousands of allocations (e.g. for std::string).

So from "never" to after thousands of allocations. Goalpost moving, much?

Obviously if memory becomes fragmented then its less likely to happen but
the fact that it can happen at all means efficiency gains so whats your issue
with it?

Re: "Functional exception-less error handling with C++23

<u3fjsc$kg7j$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=91&group=comp.lang.c%2B%2B#91

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Wed, 10 May 2023 08:16:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <u3fjsc$kg7j$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me>
Injection-Date: Wed, 10 May 2023 08:16:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="be409db5a47fd854899ca88bc9730439";
logging-data="671987"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18h6O1ik+LuDCIeqQkKlTds"
Cancel-Lock: sha1:oGYvuKazS7+Ks2/gu1G9PT06dNk=
 by: Mutt...@dastardlyhq.com - Wed, 10 May 2023 08:16 UTC

On Tue, 9 May 2023 19:41:05 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 09.05.2023 um 19:10 schrieb Muttley@dastardlyhq.com:
>
>> FFS, do try and keep up. Thats why I said you'd have to write your own.
>
>Have a look at modern allocators like mimalloc, TCMalloc or jemalloc.
>With that there's no in-place reallocation.

How is that an advantage?

Re: "Functional exception-less error handling with C++23

<28c52894-7ea6-4b96-a6ff-1a0b306e8cc9n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=92&group=comp.lang.c%2B%2B#92

  copy link   Newsgroups: comp.lang.c++
X-Received: by 2002:a05:620a:2a07:b0:759:2fe:9931 with SMTP id o7-20020a05620a2a0700b0075902fe9931mr16517qkp.15.1683709659210;
Wed, 10 May 2023 02:07:39 -0700 (PDT)
X-Received: by 2002:a05:620a:3943:b0:754:fdbf:cb31 with SMTP id
qs3-20020a05620a394300b00754fdbfcb31mr5098449qkn.14.1683709659039; Wed, 10
May 2023 02:07:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c++
Date: Wed, 10 May 2023 02:07:38 -0700 (PDT)
In-Reply-To: <u3fjsc$kg7j$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:bc2b:6cc9:35ac:2ea6;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:bc2b:6cc9:35ac:2ea6
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com> <ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com> <2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <28c52894-7ea6-4b96-a6ff-1a0b306e8cc9n@googlegroups.com>
Subject: Re: "Functional exception-less error handling with C++23
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Wed, 10 May 2023 09:07:39 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 14
 by: Malcolm McLean - Wed, 10 May 2023 09:07 UTC

On Wednesday, 10 May 2023 at 09:16:31 UTC+1, Mut...@dastardlyhq.com wrote:
> On Tue, 9 May 2023 19:41:05 +0200
> Bonita Montero <Bonita....@gmail.com> wrote:
> >Am 09.05.2023 um 19:10 schrieb Mut...@dastardlyhq.com:
> >
> >> FFS, do try and keep up. Thats why I said you'd have to write your own.
> >
> >Have a look at modern allocators like mimalloc, TCMalloc or jemalloc.
> >With that there's no in-place reallocation.
> How is that an advantage?
>
It's not. It's just that the more modern allocator has some advantages over the
standard "free list and control block" allocator. But it doesn't have the advantage that
allocations can sometimes be extended cheaply. People must have found that, for
real programs, this is a price worth paying.

Re: "Functional exception-less error handling with C++23

<u3g0ac$m15t$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=93&group=comp.lang.c%2B%2B#93

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Wed, 10 May 2023 13:48:28 +0200
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <u3g0ac$m15t$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 May 2023 11:48:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0ffcf188667ba5c170a0505e35a0cbbb";
logging-data="722109"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9wrh/0np+AOygBRw703ZMVxKWSdE35wc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:fo2he7xFKhYDav0nwM4PiX7NSEw=
Content-Language: de-DE
In-Reply-To: <u3fjsc$kg7j$1@dont-email.me>
 by: Bonita Montero - Wed, 10 May 2023 11:48 UTC

Am 10.05.2023 um 10:16 schrieb Muttley@dastardlyhq.com:

> How is that an advantage?

It's not a disadvantage.

Re: "Functional exception-less error handling with C++23

<u3gbaf$n8j4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=94&group=comp.lang.c%2B%2B#94

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Wed, 10 May 2023 14:56:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <u3gbaf$n8j4$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<u3g0ac$m15t$1@dont-email.me>
Injection-Date: Wed, 10 May 2023 14:56:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="be409db5a47fd854899ca88bc9730439";
logging-data="762468"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rVwrsjNGULLudKKxcuGSe"
Cancel-Lock: sha1:Y3MCBFY8XQZl0E2Cs9FkSkdeD9w=
 by: Mutt...@dastardlyhq.com - Wed, 10 May 2023 14:56 UTC

On Wed, 10 May 2023 13:48:28 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 10.05.2023 um 10:16 schrieb Muttley@dastardlyhq.com:
>
>> How is that an advantage?
>
>It's not a disadvantage.

Yes, it is.

Re: "Functional exception-less error handling with C++23

<u3gbpp$n9hc$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=95&group=comp.lang.c%2B%2B#95

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Wed, 10 May 2023 17:04:25 +0200
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <u3gbpp$n9hc$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 May 2023 15:04:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0ffcf188667ba5c170a0505e35a0cbbb";
logging-data="763436"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+27fJQFvOvTPglMVl+TpRH1Ju6QCrLHvo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:br+rF+YVLFsQnIH7isW9ssEuD7E=
In-Reply-To: <u3gbaf$n8j4$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 10 May 2023 15:04 UTC

Am 10.05.2023 um 16:56 schrieb Muttley@dastardlyhq.com:

>> It's not a disadvantage.

> Yes, it is.

It's almost never a disadvantage, even more with C++23. With C++23
the allocator has an allocation_result which returns the actual size
of the assigned block, i.e. the allocation can return a larger size
than actually allocated.
With mimalloc, jemalloc and TCMalloc the requested is rounded up to
size has a power of two up to two pages. So there might be a small
advantage if the intial capacity of a vector or basic_string is ac-
tually slightly higher than requested.
With allocations beyond that size the allocation size is rounded up
to the next page size. That might also give a slight advantage but
this becomes smaller as long as the container becomes since the
"blend" is half the size of a page independently of the requested
allocation size.

Re: "Functional exception-less error handling with C++23

<u3gf3f$nng5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=96&group=comp.lang.c%2B%2B#96

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Wed, 10 May 2023 16:00:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u3gf3f$nng5$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me>
<u3gbpp$n9hc$1@dont-email.me>
Injection-Date: Wed, 10 May 2023 16:00:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="be409db5a47fd854899ca88bc9730439";
logging-data="777733"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HQqDT7LH5pTcBVpq6q4BN"
Cancel-Lock: sha1:1+zL+SQi5JZXjxdhOxvwzp74/8Q=
 by: Mutt...@dastardlyhq.com - Wed, 10 May 2023 16:00 UTC

On Wed, 10 May 2023 17:04:25 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 10.05.2023 um 16:56 schrieb Muttley@dastardlyhq.com:
>
>>> It's not a disadvantage.
>
>> Yes, it is.
>
>It's almost never a disadvantage, even more with C++23. With C++23
>the allocator has an allocation_result which returns the actual size
>of the assigned block, i.e. the allocation can return a larger size
>than actually allocated.
>With mimalloc, jemalloc and TCMalloc the requested is rounded up to
>size has a power of two up to two pages. So there might be a small

So they waste memory. Any idiot can write those sort of allocators. realloc()
is more closely integrated with the OS.

>to the next page size. That might also give a slight advantage but
>this becomes smaller as long as the container becomes since the
>"blend" is half the size of a page independently of the requested
>allocation size.

Sounds like a dumb way to do things unless you're writing an DBMS that will
be allocating huge amounts of memory on the fly. Or java, which just grabs
as much memory as it can on startup up to a specified limit.

Re: "Functional exception-less error handling with C++23

<u3gg60$nqig$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=97&group=comp.lang.c%2B%2B#97

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Wed, 10 May 2023 18:19:12 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <u3gg60$nqig$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me>
<u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 May 2023 16:19:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0ffcf188667ba5c170a0505e35a0cbbb";
logging-data="780880"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GqctfxuCkz1/hfxHeatv/mU+bz/nF/WE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:v6AsVqRn5CayNG8Rdy6llarGTuI=
In-Reply-To: <u3gf3f$nng5$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 10 May 2023 16:19 UTC

Am 10.05.2023 um 18:00 schrieb Muttley@dastardlyhq.com:

> So they waste memory. ...

A slight amount because the internal fragmentation is not much.

> Sounds like a dumb way to do things unless you're writing an DBMS that will
> be allocating huge amounts of memory on the fly. ...

There's no perfect memory allocator. The three mentioned allocators
currently make the best compromise between blend and performance.

Re: "Functional exception-less error handling with C++23

<u3gr5c$pe3s$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=98&group=comp.lang.c%2B%2B#98

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Wed, 10 May 2023 12:26:34 -0700
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <u3gr5c$pe3s$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<28c52894-7ea6-4b96-a6ff-1a0b306e8cc9n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 May 2023 19:26:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f9cfd6c024244da403a34ae241bdde4c";
logging-data="833660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AcnbcGr8h0vv+YmE6GGIyZy3pKDRiVJk="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:hTMLEHdPMK7zswcjZ00Q+Nr213E=
Content-Language: en-US
In-Reply-To: <28c52894-7ea6-4b96-a6ff-1a0b306e8cc9n@googlegroups.com>
 by: Chris M. Thomasson - Wed, 10 May 2023 19:26 UTC

On 5/10/2023 2:07 AM, Malcolm McLean wrote:
> On Wednesday, 10 May 2023 at 09:16:31 UTC+1, Mut...@dastardlyhq.com wrote:
>> On Tue, 9 May 2023 19:41:05 +0200
>> Bonita Montero <Bonita....@gmail.com> wrote:
>>> Am 09.05.2023 um 19:10 schrieb Mut...@dastardlyhq.com:
>>>
>>>> FFS, do try and keep up. Thats why I said you'd have to write your own.
>>>
>>> Have a look at modern allocators like mimalloc, TCMalloc or jemalloc.
>>> With that there's no in-place reallocation.
>> How is that an advantage?
>>
> It's not. It's just that the more modern allocator has some advantages over the
> standard "free list and control block" allocator. But it doesn't have the advantage that
> allocations can sometimes be extended cheaply. People must have found that, for
> real programs, this is a price worth paying.

There is a way to implement realloc in a per-thread allocator but the
problem is that the sizes tend to be rather small to be able to do it
in-place. Its a tradeoff. So making a per-thread allocator generic is
not exactly "easy"...

Usually, at least in my per-thread allocators, we don't need to keep any
meta-data on a per-allocation basis. Instead we over allocate a super
block and aligned it on a large boundary. So, lets say we need to free a
block contained in said super block. We round the address down to the
large boundary. Then we can easily find a header structure to link the
freed block into a LIFO list. This means that the smallest a block can
be is sizeof(void*). There is no meta data that tells one how large a
block is. The requirement that a block be at least the size of a pointer
is to be able to use that space to be able to link it into the LIFO
contained in the header.

Re: "Functional exception-less error handling with C++23

<u3i82f$11o9e$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=99&group=comp.lang.c%2B%2B#99

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Thu, 11 May 2023 08:13:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <u3i82f$11o9e$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me>
<u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me>
<u3gg60$nqig$1@dont-email.me>
Injection-Date: Thu, 11 May 2023 08:13:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4be049f50e85baf058b61c30b34be151";
logging-data="1106222"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cgP24ZaCWXzbOz3MFFw+J"
Cancel-Lock: sha1:y48lQNVbCmeCl8Ksly5LBiFeiv4=
 by: Mutt...@dastardlyhq.com - Thu, 11 May 2023 08:13 UTC

On Wed, 10 May 2023 18:19:12 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 10.05.2023 um 18:00 schrieb Muttley@dastardlyhq.com:
>
>> So they waste memory. ...
>
>A slight amount because the internal fragmentation is not much.
>
>> Sounds like a dumb way to do things unless you're writing an DBMS that will
>> be allocating huge amounts of memory on the fly. ...
>
>There's no perfect memory allocator. The three mentioned allocators
>currently make the best compromise between blend and performance.

Well thats your opinion. You may be right for some systems but I suspect
for common OS's with good memory management like Windows, Linux, MacOS etc
realloc() works quite nicely. If it was useless it wouldn't exist in the
first place.

Re: "Functional exception-less error handling with C++23

<u3ikdl$1371m$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=100&group=comp.lang.c%2B%2B#100

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Thu, 11 May 2023 13:43:49 +0200
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <u3ikdl$1371m$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me>
<u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me>
<u3gg60$nqig$1@dont-email.me> <u3i82f$11o9e$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 11 May 2023 11:43:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9adff08fce388bba8da8c08ae2f72f19";
logging-data="1154102"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LF+A01cJyKj6IFNUh/U8ZUUBZZ7Vj7b0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:1e3XgAzUE1UbcHxNXh9zi3zvIEE=
Content-Language: de-DE
In-Reply-To: <u3i82f$11o9e$1@dont-email.me>
 by: Bonita Montero - Thu, 11 May 2023 11:43 UTC

Am 11.05.2023 um 10:13 schrieb Muttley@dastardlyhq.com:

> Well thats your opinion. ...

It's not my opition but all modern and performant memory allocators
are built nearly in the same way.

Re: "Functional exception-less error handling with C++23

<u3ir3a$140to$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=101&group=comp.lang.c%2B%2B#101

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Thu, 11 May 2023 13:37:46 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <u3ir3a$140to$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me>
<u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me>
<u3gg60$nqig$1@dont-email.me> <u3i82f$11o9e$1@dont-email.me>
<u3ikdl$1371m$1@dont-email.me>
Injection-Date: Thu, 11 May 2023 13:37:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4be049f50e85baf058b61c30b34be151";
logging-data="1180600"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eY6jt1REPP+SKAWlI8A+w"
Cancel-Lock: sha1:ZuZBPW2pTYMb7KABtMmqkBvUvLU=
 by: Mutt...@dastardlyhq.com - Thu, 11 May 2023 13:37 UTC

On Thu, 11 May 2023 13:43:49 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
>Am 11.05.2023 um 10:13 schrieb Muttley@dastardlyhq.com:
>
> > Well thats your opinion. ...
>
>It's not my opition but all modern and performant memory allocators
>are built nearly in the same way.

So what? They're all lowest common denominator. If you think allocating a
large number of unneeded pages and then managing the memory themselves
potentially causing page swapping slowdowns instead of simply extending the
current reserved segment is a good idea then there's a bridge for sale with
your name on it.

As I said, the only time its a good idea is if you know beforehand you're going
to need that memory very soon anyway such as in a DBMS.

Re: "Functional exception-less error handling with C++23

<vo87M.1724718$t5W7.77396@fx13.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=102&group=comp.lang.c%2B%2B#102

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx13.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: "Functional exception-less error handling with C++23
Newsgroups: comp.lang.c++
References: <u1pli1$6mq8$1@dont-email.me> <u3drh5$ael1$1@dont-email.me> <u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me> <u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me> <u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me> <u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me> <u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me> <u3gg60$nqig$1@dont-email.me> <u3i82f$11o9e$1@dont-email.me> <u3ikdl$1371m$1@dont-email.me> <u3ir3a$140to$1@dont-email.me>
Lines: 27
Message-ID: <vo87M.1724718$t5W7.77396@fx13.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 11 May 2023 16:06:51 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 11 May 2023 16:06:51 GMT
X-Received-Bytes: 2274
 by: Scott Lurndal - Thu, 11 May 2023 16:06 UTC

Muttley@dastardlyhq.com writes:
>On Thu, 11 May 2023 13:43:49 +0200
>Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>Am 11.05.2023 um 10:13 schrieb Muttley@dastardlyhq.com:
>>
>> > Well thats your opinion. ...
>>
>>It's not my opition but all modern and performant memory allocators
>>are built nearly in the same way.
>
>So what? They're all lowest common denominator. If you think allocating a
>large number of unneeded pages and then managing the memory themselves
>potentially causing page swapping slowdowns instead of simply extending the
>current reserved segment is a good idea then there's a bridge for sale with
>your name on it.
>
>As I said, the only time its a good idea is if you know beforehand you're going
>to need that memory very soon anyway such as in a DBMS.

I spent a fair amount of time in the Oracle RDBMS internals. They
never used realloc. Or malloc, for that matter.

The shared pools were using shmat (and later mmap) for allocation
and as soon as large pages (4MB on 32-bit, 2MB/1GB on 64-bit) were
available, they used mmap to allocate (the large pages, due to
alignment constraints in the MMU/TLB were statically reserved
when the system booted to ensure contiguity).

Re: "Functional exception-less error handling with C++23

<u3j5c9$156v1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=103&group=comp.lang.c%2B%2B#103

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.swapon.de!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Thu, 11 May 2023 18:33:12 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <u3j5c9$156v1$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u1qt0r$h625$1@dont-email.me>
<u1rk1f$l0f7$1@dont-email.me> <u3b5m1$3tr4o$1@dont-email.me>
<175d3b105d57808b$80$2186$faa1aca7@news.newsdemon.com>
<ea067fd1-e6df-4e6b-a5ff-3be2b0984500n@googlegroups.com>
<175d3cd00dbb8d6e$1$2480680$baa1eca3@news.newsdemon.com>
<2c26c134-809f-49ed-a5fd-839c2d775579n@googlegroups.com>
<u3bp66$3vrge$1@dont-email.me> <u3cvvk$76qa$1@dont-email.me>
<u3di97$99q0$1@dont-email.me> <u3dq0m$a8cj$1@dont-email.me>
<u3dq61$a8t0$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me>
<u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me>
<u3gg60$nqig$1@dont-email.me> <u3i82f$11o9e$1@dont-email.me>
<u3ikdl$1371m$1@dont-email.me> <u3ir3a$140to$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 11 May 2023 16:33:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9adff08fce388bba8da8c08ae2f72f19";
logging-data="1219553"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ARBdv/Ny42I4/cnW0Tfw4vOVXA+G8LAE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:+EkrRapVGr/e4Nx4avutEcod1/E=
Content-Language: de-DE
In-Reply-To: <u3ir3a$140to$1@dont-email.me>
 by: Bonita Montero - Thu, 11 May 2023 16:33 UTC

Am 11.05.2023 um 15:37 schrieb Muttley@dastardlyhq.com:

> So what? They're all lowest common denominator.

It is currently the best compromise between memory consumption and
performance. This cannot be supported on systems with extremely little
RAM, but the corresponding allocators are then much slower because
there's more synchronization.

> If you think allocating a large number of unneeded pages and then
> managing the memory themselves potentially causing page swapping
> slowdowns instead of simply extending the current reserved segment
> is a good idea then there's a bridge for sale with your name on it.

If you obtain pages from the kernel under Windows, no DRAM is assigned
to them directly, but only a corresponding amount of RAM is subtracted
from the swap, so that, in the event that the page has to be swapped
later, the corresponding swap is available. The memory for each page
reserved with MEM_COMMIT is then only actually allocated when the page
is first accessed; if necessary, swapping is then carried out. Under
Linux, the whole thing goes even further, or there no swap is deducted
at all, but the first time the page is accessed, either the application
is terminated if no memory could be allocated, or another application is
terminated so that the memory can be allocated. This is called
overcommitting and Windows only does this for stacks.

Re: "Functional exception-less error handling with C++23

<5s97M.580254$5S78.208194@fx48.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=104&group=comp.lang.c%2B%2B#104

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.swapon.de!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: "Functional exception-less error handling with C++23
Newsgroups: comp.lang.c++
References: <u1pli1$6mq8$1@dont-email.me> <u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me> <u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me> <u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me> <u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me> <u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me> <u3gg60$nqig$1@dont-email.me> <u3i82f$11o9e$1@dont-email.me> <u3ikdl$1371m$1@dont-email.me> <u3ir3a$140to$1@dont-email.me> <u3j5c9$156v1$1@dont-email.me>
Lines: 32
Message-ID: <5s97M.580254$5S78.208194@fx48.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 11 May 2023 17:18:57 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 11 May 2023 17:18:57 GMT
X-Received-Bytes: 2818
 by: Scott Lurndal - Thu, 11 May 2023 17:18 UTC

Bonita Montero <Bonita.Montero@gmail.com> writes:
>Am 11.05.2023 um 15:37 schrieb Muttley@dastardlyhq.com:
>
>> So what? They're all lowest common denominator.
>
>It is currently the best compromise between memory consumption and
>performance. This cannot be supported on systems with extremely little
>RAM, but the corresponding allocators are then much slower because
>there's more synchronization.
>
>> If you think allocating a large number of unneeded pages and then
>> managing the memory themselves potentially causing page swapping
>> slowdowns instead of simply extending the current reserved segment
>> is a good idea then there's a bridge for sale with your name on it.
>
>If you obtain pages from the kernel under Windows, no DRAM is assigned
>to them directly, but only a corresponding amount of RAM is subtracted
>from the swap, so that, in the event that the page has to be swapped
>later, the corresponding swap is available. The memory for each page
>reserved with MEM_COMMIT is then only actually allocated when the page
>is first accessed; if necessary, swapping is then carried out. Under
>Linux, the whole thing goes even further, or there no swap is deducted
>at all, but the first time the page is accessed, either the application
>is terminated if no memory could be allocated, or another application is
>terminated so that the memory can be allocated. This is called
>overcommitting and Windows only does this for stacks.

Linux only overcommits if the administrator configures it to
overcommit. It is very simple to disable overcommit at boot
if necessary for the desired workload.

The idea of overcommit originated in AIX, IIRC.

Re: "Functional exception-less error handling with C++23

<u3k5jf$18pa1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=105&group=comp.lang.c%2B%2B#105

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Fri, 12 May 2023 03:43:11 +0200
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <u3k5jf$18pa1$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u3drnl$af76$1@dont-email.me>
<u3drsd$afvs$1@dont-email.me> <u3dtvl$anm0$1@dont-email.me>
<u3dupo$arh5$1@dont-email.me> <u3e0jh$b2gg$1@dont-email.me>
<u3fjsc$kg7j$1@dont-email.me> <u3g0ac$m15t$1@dont-email.me>
<u3gbaf$n8j4$1@dont-email.me> <u3gbpp$n9hc$1@dont-email.me>
<u3gf3f$nng5$1@dont-email.me> <u3gg60$nqig$1@dont-email.me>
<u3i82f$11o9e$1@dont-email.me> <u3ikdl$1371m$1@dont-email.me>
<u3ir3a$140to$1@dont-email.me> <u3j5c9$156v1$1@dont-email.me>
<5s97M.580254$5S78.208194@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 12 May 2023 01:43:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ed523acac28a6e8147cb8edf017abd0e";
logging-data="1336641"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sTShJHHib6oR65//0caChSmdO2ZSVDUM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:GTfWC4lcwMzEicz0CfI8P63tb8s=
Content-Language: de-DE
In-Reply-To: <5s97M.580254$5S78.208194@fx48.iad>
 by: Bonita Montero - Fri, 12 May 2023 01:43 UTC

Am 11.05.2023 um 19:18 schrieb Scott Lurndal:

> Linux only overcommits if the administrator configures it to
> overcommit. ...

This is the default-behaviour which is almost never changed.

Re: "Functional exception-less error handling with C++23

<u3kva5$1gjn5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=106&group=comp.lang.c%2B%2B#106

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Fri, 12 May 2023 09:01:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <u3kva5$1gjn5$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u3drh5$ael1$1@dont-email.me> <u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me> <u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me> <u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me> <u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me> <u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me> <u3gg60$nqig$1@dont-email.me> <u3i82f$11o9e$1@dont-email.me> <u3ikdl$1371m$1@dont-email.me> <u3ir3a$140to$1@dont-email.me>
<vo87M.1724718$t5W7.77396@fx13.iad>
Injection-Date: Fri, 12 May 2023 09:01:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f7fbc59e8ba47085f57d54b2e4399fc4";
logging-data="1593061"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//0utDM2Ma9LYBQT9bGvYq"
Cancel-Lock: sha1:Q4ZmjEzWbJELuhXKKyOPq42j9Wg=
 by: Mutt...@dastardlyhq.com - Fri, 12 May 2023 09:01 UTC

On Thu, 11 May 2023 16:06:51 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:
>Muttley@dastardlyhq.com writes:
>>On Thu, 11 May 2023 13:43:49 +0200
>>Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>Am 11.05.2023 um 10:13 schrieb Muttley@dastardlyhq.com:
>>>
>>> > Well thats your opinion. ...
>>>
>>>It's not my opition but all modern and performant memory allocators
>>>are built nearly in the same way.
>>
>>So what? They're all lowest common denominator. If you think allocating a
>>large number of unneeded pages and then managing the memory themselves
>>potentially causing page swapping slowdowns instead of simply extending the
>>current reserved segment is a good idea then there's a bridge for sale with
>>your name on it.
>>
>>As I said, the only time its a good idea is if you know beforehand you're
>going
>>to need that memory very soon anyway such as in a DBMS.
>
>I spent a fair amount of time in the Oracle RDBMS internals. They
>never used realloc. Or malloc, for that matter.

Doesn't surprise me, Oracle is virtually an OS in its own right. It doesn't
(or didn't) usually use any of the built in filesystems either, prefering to
be given one or more raw partitions which it then did its own thing with. On
*nix anyway, don't know about Windows.

Re: "Functional exception-less error handling with C++23

<u3kvip$1gjn7$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=107&group=comp.lang.c%2B%2B#107

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Fri, 12 May 2023 11:06:33 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <u3kvip$1gjn7$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u3drh5$ael1$1@dont-email.me>
<u3drnl$af76$1@dont-email.me> <u3drsd$afvs$1@dont-email.me>
<u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me>
<u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me>
<u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me>
<u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me>
<u3gg60$nqig$1@dont-email.me> <u3i82f$11o9e$1@dont-email.me>
<u3ikdl$1371m$1@dont-email.me> <u3ir3a$140to$1@dont-email.me>
<vo87M.1724718$t5W7.77396@fx13.iad> <u3kva5$1gjn5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 12 May 2023 09:06:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ed523acac28a6e8147cb8edf017abd0e";
logging-data="1593063"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+YcyiTg6h88XddSsvBARADzdkMvfQaliM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:URxmY6pHnDOpzgKp7qwUfCAqnzQ=
In-Reply-To: <u3kva5$1gjn5$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Fri, 12 May 2023 09:06 UTC

Am 12.05.2023 um 11:01 schrieb Muttley@dastardlyhq.com:

> Doesn't surprise me, Oracle is virtually an OS in its own right. ...

Oracle does nothing a kernel does.

> It doesn't (or didn't) usually use any of the built in filesystems
> either, prefering to be given one or more raw partitions ...

The data warehousing guide says the performance advantage of using
raw filesystems is 3% to 5% and using a normal filesytem has a lot
of advantages. I think almost any DBA choses a filesystem (I'm a
certified OCP-DBA).

Re: "Functional exception-less error handling with C++23

<a%q7M.2713031$iS99.1971483@fx16.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=108&group=comp.lang.c%2B%2B#108

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: "Functional exception-less error handling with C++23
Newsgroups: comp.lang.c++
References: <u1pli1$6mq8$1@dont-email.me> <u3dtvl$anm0$1@dont-email.me> <u3dupo$arh5$1@dont-email.me> <u3e0jh$b2gg$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me> <u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me> <u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me> <u3gg60$nqig$1@dont-email.me> <u3i82f$11o9e$1@dont-email.me> <u3ikdl$1371m$1@dont-email.me> <u3ir3a$140to$1@dont-email.me> <u3j5c9$156v1$1@dont-email.me> <5s97M.580254$5S78.208194@fx48.iad> <u3k5jf$18pa1$1@dont-email.me>
Lines: 10
Message-ID: <a%q7M.2713031$iS99.1971483@fx16.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 12 May 2023 13:16:54 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 12 May 2023 13:16:54 GMT
X-Received-Bytes: 1451
 by: Scott Lurndal - Fri, 12 May 2023 13:16 UTC

Bonita Montero <Bonita.Montero@gmail.com> writes:
>Am 11.05.2023 um 19:18 schrieb Scott Lurndal:
>
>> Linux only overcommits if the administrator configures it to
>> overcommit. ...
>
>This is the default-behaviour which is almost never changed.

And you base your opinion on what experiences, exactly?

Re: "Functional exception-less error handling with C++23

<u3lrdn$1oro8$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=109&group=comp.lang.c%2B%2B#109

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: "Functional exception-less error handling with C++23
Date: Fri, 12 May 2023 19:01:43 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <u3lrdn$1oro8$1@dont-email.me>
References: <u1pli1$6mq8$1@dont-email.me> <u3dtvl$anm0$1@dont-email.me>
<u3dupo$arh5$1@dont-email.me> <u3e0jh$b2gg$1@dont-email.me>
<u3fjsc$kg7j$1@dont-email.me> <u3g0ac$m15t$1@dont-email.me>
<u3gbaf$n8j4$1@dont-email.me> <u3gbpp$n9hc$1@dont-email.me>
<u3gf3f$nng5$1@dont-email.me> <u3gg60$nqig$1@dont-email.me>
<u3i82f$11o9e$1@dont-email.me> <u3ikdl$1371m$1@dont-email.me>
<u3ir3a$140to$1@dont-email.me> <u3j5c9$156v1$1@dont-email.me>
<5s97M.580254$5S78.208194@fx48.iad> <u3k5jf$18pa1$1@dont-email.me>
<a%q7M.2713031$iS99.1971483@fx16.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 12 May 2023 17:01:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ed523acac28a6e8147cb8edf017abd0e";
logging-data="1863432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OyhN+4ddSyx7BvuQNyRW7kaVAa8U+hVM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:Mz/JVA2TxUf7bZb+rUMG19Fh/lE=
In-Reply-To: <a%q7M.2713031$iS99.1971483@fx16.iad>
Content-Language: de-DE
 by: Bonita Montero - Fri, 12 May 2023 17:01 UTC

Am 12.05.2023 um 15:16 schrieb Scott Lurndal:
> Bonita Montero <Bonita.Montero@gmail.com> writes:
>> Am 11.05.2023 um 19:18 schrieb Scott Lurndal:
>>
>>> Linux only overcommits if the administrator configures it to
>>> overcommit. ...
>>
>> This is the default-behaviour which is almost never changed.
>
> And you base your opinion on what experiences, exactly?

It's required for forking software which is still common. Otherwise
you'd have to reserve a large amount of swap which is actually never
used.
And there's only one small discussion on Stack Exchange about that.

Re: "Functional exception-less error handling with C++23

<%6v7M.369850$b7Kc.122393@fx39.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=110&group=comp.lang.c%2B%2B#110

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx39.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: "Functional exception-less error handling with C++23
Newsgroups: comp.lang.c++
References: <u1pli1$6mq8$1@dont-email.me> <u3fjsc$kg7j$1@dont-email.me> <u3g0ac$m15t$1@dont-email.me> <u3gbaf$n8j4$1@dont-email.me> <u3gbpp$n9hc$1@dont-email.me> <u3gf3f$nng5$1@dont-email.me> <u3gg60$nqig$1@dont-email.me> <u3i82f$11o9e$1@dont-email.me> <u3ikdl$1371m$1@dont-email.me> <u3ir3a$140to$1@dont-email.me> <u3j5c9$156v1$1@dont-email.me> <5s97M.580254$5S78.208194@fx48.iad> <u3k5jf$18pa1$1@dont-email.me> <a%q7M.2713031$iS99.1971483@fx16.iad> <u3lrdn$1oro8$1@dont-email.me>
Lines: 19
Message-ID: <%6v7M.369850$b7Kc.122393@fx39.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 12 May 2023 17:58:19 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 12 May 2023 17:58:19 GMT
X-Received-Bytes: 1785
 by: Scott Lurndal - Fri, 12 May 2023 17:58 UTC

Bonita Montero <Bonita.Montero@gmail.com> writes:
>Am 12.05.2023 um 15:16 schrieb Scott Lurndal:
>> Bonita Montero <Bonita.Montero@gmail.com> writes:
>>> Am 11.05.2023 um 19:18 schrieb Scott Lurndal:
>>>
>>>> Linux only overcommits if the administrator configures it to
>>>> overcommit. ...
>>>
>>> This is the default-behaviour which is almost never changed.
>>
>> And you base your opinion on what experiences, exactly?
>
>It's required for forking software which is still common. Otherwise
>you'd have to reserve a large amount of swap which is actually never
>used.
>And there's only one small discussion on Stack Exchange about that.

Stack exchange? Not representative of production unix or linux system
operations, that's certain.


devel / comp.lang.c++ / Re: "Functional exception-less error handling with C++23

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor