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

Steven Schveighoffer schveiguy at gmail.com
Tue Aug 17 01:14:54 UTC 2021


On 8/16/21 5:18 PM, Bruce Carneal wrote:
> 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.
> 

[D is for 
(de)serialization](https://dconf.org/2019/talks/schveighoffer.html)

;)

There's at least one talk about serialization in almost every dconf I think.

-Steve


More information about the Digitalmars-d mailing list