News for hackers. Stuff that matters.
Re:The Repeated Deaths of OOP (2015) by cout on Sunday June 06, 2021 @09:17AM (#27412954)
What would an ECS language look like? Would it differ substantially from an OO language?

ECS seems to me more like a pattern than a paradigm.

Re:The Repeated Deaths of OOP (2015) by galangalalgol on Sunday June 06, 2021 @09:44AM (#27413099)
And that pattern is easy to implement in C or fortran 77 without being unidiomatic. So I don't vthing you need anything special.

Edit: to clarify, a system can just be a function, an entity just an ID and a component should be plain old data anyway, so a struct is perfect.

Re:The Repeated Deaths of OOP (2015) by ratww on Sunday June 06, 2021 @12:32PM (#27414231)
> a system can just be a function, an entity just an ID and a component should be plain old data anyway, so a struct is perfect.

Correct. This is exactly how most ECS frameworks are implemented today (except when it's implemented in languages that doesn't have those features, of course).

Re:The Repeated Deaths of OOP (2015) by kazoomonger on Sunday June 06, 2021 @11:27PM (#27418734)
I don't think ECS as such would really make a language on its own, but languages that use traits instead of inheritance would be approximately that. Both ECS and traits eschew using the inheritance-style "is-a" thinking. ECS goes for "has-a" thinking, and traits go for "acts-as" thinking. A few popular trait-based languages that would feel comfortable to someone familiar with ECS are Rust or Go.