News for hackers. Stuff that matters.
Re:A Simple Entity Component System (2019) by brochington on Wednesday August 31, 2022 @04:26PM (#32667891)
I would love to see some exploration of the ECS pattern being used for web development. A couple years ago I wrote an experiment[0] using ECS with Web Components to make a simple calculator, and... it was actually pretty nice. ECS does a great job of flattening nested structures, and would be really curious if this would improve things like prop drilling in React.

0: https://brochington.github.io/ecstatic-doc-site/docs/example...

Re:A Simple Entity Component System (2019) by ummonk on Wednesday August 31, 2022 @06:35PM (#32669221)
Fundamentally, UI is nested. The framework has to reflect this and make UI components composable in a bested way or you’ll drive developers crazy.

What I do wonder about is being able to use a data oriented system that does reflect this neat ability. E.g. if the data in an ECS system is viewed as a simplified relational database, what would happen if we replaced it with a simplified graph database?

Re:A Simple Entity Component System (2019) by nine_k on Thursday September 01, 2022 @12:52AM (#32672149)
Isn't a graph of objects a simplified graph database?

Trees are not arbitrary graphs; a tree-based database may have nicer propertied than a web of objects, while allowing to describe nesting in a natural way.