C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Fwd: Extension to runtime polymorphism proposed

From: Breno Guimarães <brenorg_at_[hidden]>
Date: Thu, 2 Apr 2026 11:41:07 -0300
I don't think anyone is in a rush. Take your time.

You can use quick bench to generate 1000 random choices in a vector and
then iterate on the vector calling your code. Then you won't have the
problem of constant propagation.

Moreover, I'm missing how the code would look like after your feature. It
doesn't need to compile but there needs to be a clear "before" and "after".

That alone would allow people to see what extra information is available
for the compiler to generate better code than before.

Em qui., 2 de abr. de 2026, 00:27, Muneem via Std-Proposals <
std-proposals_at_[hidden]> escreveu:

> The benchmarking tools that you (Breno Guimarães )
> suggested didn't work because they do compile time optimizations on the
> indexing itself (if the index can be determined at compile time), and when
> I tried to make them read the index, it didn't work as expected, hence it
> will take some time for me to write my own benchmarking code..
> To the response I got from a very senior person, I wanna say that even
> though this idea might not be within the logical framework of C++, I would
> still push for it until there is a mathematical proof to specify otherwise.
> I hope this isnt disrespect. Sorry for the delay on benchmarks too, guys; I
> was busy eating breakfast.
>
> On Thu, Apr 2, 2026 at 8:24 AM Muneem <itfllow123_at_[hidden]> wrote:
>
>> Before I add some code, I wanna specify that I know references are the
>> same as pointers,but compilers can (in theory optimize them better because
>> they are like constant pointers).
>>
>> On Thu, Apr 2, 2026 at 6:35 AM Breno Guimarães <brenorg_at_[hidden]> wrote:
>>
>>> Try adding actual code showing the problem and how it looks like with
>>> the different options you claim de be not sufficient and how the code would
>>> look like with your solutions.
>>>
>>> There are many wrong assumptions on how things work today. I honestly
>>> cannot understand what you are actually proposing.
>>>
>>> Em qua., 1 de abr. de 2026, 20:37, Muneem via Std-Proposals <
>>> std-proposals_at_[hidden]> escreveu:
>>>
>>>> This is the updated proposal
>>>>
>>>> On Thu, Apr 2, 2026 at 1:45 AM Muneem <itfllow123_at_[hidden]> wrote:
>>>>
>>>>> Ok, I will draft a format proposal that outline all the problems (a
>>>>> whole class of problems), cite all the possible solutions, and then cite
>>>>> bjarne Stroustrup quotes from his old 2013 book to back my philosophy up.
>>>>> Give me some time and thank you for your feedback ❤️❤️
>>>>>
>>>>> Regards, Muneem
>>>>>
>>>>> On Thu, 2 Apr 2026, 1:15 am Thiago Macieira via Std-Proposals, <
>>>>> std-proposals_at_[hidden]> wrote:
>>>>>
>>>>>> On Wednesday, 1 April 2026 10:52:08 Pacific Daylight Time Muneem via
>>>>>> Std-
>>>>>> Proposals wrote:
>>>>>> > Okay, I won't make the JIT part in my proposal, but just so I know,
>>>>>> you do
>>>>>> > support me if I dont? Like you will vouch for me and help me in my
>>>>>> actual
>>>>>> > formal proposal?
>>>>>>
>>>>>> I haven't understood the problem yet. You need to start the proposal
>>>>>> with the
>>>>>> problems (plural) that need solving, preferably with multiple
>>>>>> possible
>>>>>> alternatives and showing why you think your solution is best.
>>>>>>
>>>>>> --
>>>>>> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>>>>>> Principal Engineer - Intel Data Center - Platform & Sys. Eng.
>>>>>> --
>>>>>> Std-Proposals mailing list
>>>>>> Std-Proposals_at_[hidden]
>>>>>> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>>>>>>
>>>>> --
>>>> Std-Proposals mailing list
>>>> Std-Proposals_at_[hidden]
>>>> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>>>>
>>> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2026-04-02 14:41:22