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

Bruce Carneal bcarneal at gmail.com
Mon Aug 16 21:18:42 UTC 2021


On Monday, 16 August 2021 at 16:53:54 UTC, Temtaime wrote:
> On Sunday, 15 August 2021 at 14:21:00 UTC, Stefan Koch wrote:
>> On Sunday, 15 August 2021 at 12:27:44 UTC, drug wrote:
>>> [...]
>>
>> I have to write a DIP and have it approved.
>>
>> I am already starting as this one is much simpler than the 
>> type function project.
>> Essentially the changes to the core language spec is just a 
>> few lines.
>>
>> I suspect the runtime documentation will be more challenging.
>> But for that at least I have already specified a 
>> data-structure of there is not much variability to take into 
>> account.
>>
>> I cannot give a definitive timeline but I would hope for this 
>> to go in before 2022 is over.
>
> Hello.
> Take a look at 
> https://github.com/Temtaime/utile/blob/main/source/utile/binary/tests.d :)
> Maybe someone will found this library of me useful

dlang sure seems to inspire run time serializers: 
https://code.dlang.org/search?q=serialization

My home brew serialization is not as sophisticated as what you've 
written, let alone what Stefan is doing at compile time.



More information about the Digitalmars-d mailing list