Implementing serialisation with minmal boilerplate and template overhead using core.reflect

max haughton maxhaton at gmail.com
Tue Aug 17 14:38:41 UTC 2021


On Tuesday, 17 August 2021 at 13:52:19 UTC, russhy wrote:
> Is this runtime reflection?
>
> Will this depend on the GC? if so does it add pressure to the 
> GC?
>
> We already have compile time type introspection, i don't think 
> it's wise to move things to runtime, we have a poor GC adding 
> more pressure to it is just bad
>
> Compile time reflection already proved to be superior in heavy 
> workloads
>
> Never been a fan of runtime reflection in java/c#, not good 
> examples to follow
>
> Also if it uses the GC, i'm not sure "core" package is the go, 
> should be put on "std", or as a library imo

It's for introspecting over code at compile time, not at runtime. 
Stefan and I have been mulling over this for ages and I think we 
both think it can do more than reflection as currently know it at 
least. This let's you drink from the firehose, so to speak.


More information about the Digitalmars-d mailing list