News for hackers. Stuff that matters.
Re:Bulk Data Structures C++ by kllrnohj on Tuesday August 20, 2019 @07:45PM (#20753381)
> Can we hide the actual memory layout without big overhead using C++ inline/template functions/classes?

Not super easily because the array type needs to know the fields of the class it's containing to do the re-write. This is where you need more substantial codegen to enter the picture. Something like the metaclasses proposal should handle it just fine. Or macros in the meantime.

Re:Bulk Data Structures C++ by gpderetta on Wednesday August 21, 2019 @04:20AM (#20755388)
I posted this elsethread: https://godbolt.org/z/rBeWOA

But yes, better reflection is needed to make it truly generic.