r/C_Programming • • 23d ago

Flecs 4.2 is out!

https://ajmmertens.medium.com/flecs-4-2-is-out-09435e80fdd1
34 Upvotes

9 comments sorted by

2

u/8d8n4mbo28026ulk 23d ago

Such an impressive project. I've read your articles on building an ECS, though I'm still too stupid to understand them in full. Perhaps I really should try implement a toy ECS one day. May I ask how you got into this? I've collected lots of bookmarks on the topic, but I'm looking for something slower paced (i.e. a book). Thanks!

4

u/ajmmertens 22d ago

Some of the earlier blogs are a bit dense. I wrote a new one more recently which goes over ECS architecture with images: https://ajmmertens.medium.com/building-an-ecs-storage-in-pictures-642b8bfd6e04 Hopefully a bit easier to digest :)

> May I ask how you got into this?

I wrote my own ECS in 2018 as a part of a research project to see if it could be used as backend for distributed simulation software. That didn't end up going anywhere, but I did really like the approach, and then others started picking it up!

2

u/Limp-Confidence5612 22d ago

Can't even read the whole article when it starts with the claim that ecs started in 2018...

3

u/ajmmertens 22d ago

I'm not saying that :) What happened in 2018 is that suddenly everyone had heard of it because of Unity's DOTS announcement, with their "performance by default" positioning. That's what I refer to in the blog.

2

u/Irverter 22d ago

It would be good to refer to that then, instead of wording it like ECS was invented in 2018. It was already in use by games since ~1998.

1

u/ajmmertens 22d ago

I'm very much aware! I'll see if I can reword.

5

u/mojibake-dev 23d ago

The UI stuff is really interesting! I've been using clay but def going to give this a try in my next project

3

u/AdorableEgg4738 22d ago

Nice to see Flecs continuing to evolve. ECS can be a great approach for keeping game and simulation architectures modular as projects grow. I’m curious which changes in 4.2 will have the biggest impact on performance or developer experience compared with 4.1

0

u/mikeblas 22d ago

When ECS thrust itself onto the gamedev scene

Why write like this?