News for hackers. Stuff that matters.
Re:The data-oriented design process for game development by tyleo on Friday May 27, 2022 @08:12AM (#31528609)
Why not just write it as SoA to begin with? I think the library is cool. It’s cool that this can be done with C++ and it’s cool that someone did it. However, when considering something like this for production I always think, “folks will understand things better if they have to type it themselves and can _see_ the structure in the source code.”

Are there real production uses for this or do you consider it a toy?

Re:The data-oriented design process for game development by jcelerier on Friday May 27, 2022 @08:26AM (#31528753)
> Why not just write it as SoA to begin with?

To give my personal reason: I have absolutely never managed to find SoA style code readable at all aha

> folks will understand things better if they have to type it themselves

I guess it comes down to if you work in a top-down or bottom-up way to create an understanding of a codebase. Generally, I start by looking at the class names to get a general idea of the architecture and make some mental diagrams of it, and then I zoom in to the level of detail needed. I know other people work better by reading individual functions and working upward from there but it's definitely not my case.

Re:The data-oriented design process for game development by klik99 on Friday May 27, 2022 @08:22AM (#31528712)
I’ve been doing a lot of stuff in the UE4/5 Slate framework lately which uses a declarative construction syntax - the amount of boilerplate to enable the required declarative syntax is frustrating and would love to have it automatically done.

But truthfully I’m not a fan of doing this kind of declarative DSL within c++, it’s just not a pleasant experience and would rather use yaml/toml or embedded lua for the data driven interface

Re:The data-oriented design process for game development by dgb23 on Friday May 27, 2022 @08:22AM (#31528715)
I think that’s generally a good point. I guess the utility here is to have a clearer model of “this stuff belongs to this object”. Reminds me a bit of relational projections and views. But at the same time it goes against a principle in this paradigm, to program closer to the machine and the data layout.