Date: Tue, 11 Nov 2025 23:48:52 +0000
On Tue, Nov 11, 2025 at 2:34 PM Frederick Virchanza Gotham wrote:
>
> void const * __builtin_get_address_vtable(T);
I have added this new feature to the GNU g++ compiler:
https://github.com/healytpk/gcc-vptr-xor/commit/7ef4543998595be0a305283b7c06acedcdaab303
I call it 'std::get_polymorphic_facilitator' because the Standard
doesn't mandate the use of vtables. For every C++ compiler that exists
in the world right now, a "polymorphic facilitator" is synonymous with
a "vtable" -- and maybe this will always be the case. But since I've
given it the name "polymorphic_facilitator", it leaves the door open
in the future for a new way of implementing virtual functions and
dynamic typeid -- perhaps something other than a 'vtable'.
I remember I wanted this feature a few months ago to go with my
'polyhandle' idea but it's only now that I'm able to edit the GNU
compiler properly. I feel like I'm eleven again playing around with my
first Visual Basic programs . . . editing compilers really is so
much fun, I highly recommend it to anyone who wants to rekindle their
passion for programming. I learned how to edit GNU g++ from ChatGPT
Version 5 (you can get a free trial). I imagine editing clang is
similar.
>
> void const * __builtin_get_address_vtable(T);
I have added this new feature to the GNU g++ compiler:
https://github.com/healytpk/gcc-vptr-xor/commit/7ef4543998595be0a305283b7c06acedcdaab303
I call it 'std::get_polymorphic_facilitator' because the Standard
doesn't mandate the use of vtables. For every C++ compiler that exists
in the world right now, a "polymorphic facilitator" is synonymous with
a "vtable" -- and maybe this will always be the case. But since I've
given it the name "polymorphic_facilitator", it leaves the door open
in the future for a new way of implementing virtual functions and
dynamic typeid -- perhaps something other than a 'vtable'.
I remember I wanted this feature a few months ago to go with my
'polyhandle' idea but it's only now that I'm able to edit the GNU
compiler properly. I feel like I'm eleven again playing around with my
first Visual Basic programs . . . editing compilers really is so
much fun, I highly recommend it to anyone who wants to rekindle their
passion for programming. I learned how to edit GNU g++ from ChatGPT
Version 5 (you can get a free trial). I imagine editing clang is
similar.
Received on 2025-11-11 23:49:07
