flecs VS Seastar

Compare flecs vs Seastar and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
flecs Seastar
48 25
5,496 8,004
- 1.4%
9.7 9.7
1 day ago 4 days ago
C C++
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

flecs

Posts with mentions or reviews of flecs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-30.
  • ECS, Finally
    4 projects | news.ycombinator.com | 30 Dec 2023
    I've also been enjoying building My First Game™ in Bevy using ECS. The community around Bevy really shines, but Flecs (https://github.com/SanderMertens/flecs) is arguably a more mature, open-source ECS implementation. You don't get to write in Rust, though, which makes it less cool in my book :)

    I'm not very proud of the code I've written because I've found writing a game to be much more confusing than building websites + backends, but, as the author notes, it certainly feels more elegant than OOP or globals given the context.

    I'm building for WASM and Bevy's parallelism isn't supported in that context (yet? https://github.com/bevyengine/bevy/issues/4078), so the performance wins are just so-so. Sharing a thread with UI rendering suuucks.

    If anyone wants to browse some code or ask questions, feel free! https://github.com/MeoMix/symbiants

  • Databases are the endgame for data-oriented design
    5 projects | /r/rust | 6 Dec 2023
    Flecs does just that: https://ajmmertens.medium.com/why-it-is-time-to-start-thinking-of-games-as-databases-e7971da33ac3
  • What's your way to create an ECS?
    1 project | /r/gamedev | 5 Nov 2023
    I'm trying to optimize my workflow as much as possible, and came across this thing called an ECS. After doing a little bit more digging I found some decent guides on how you would make one, I also found one premade called FLECS. FLECS is nice and all, but I was looking for something more simple that just has the bare bones of what I need and is also configurable. I haven't been able to really find anything like that, so I was wondering if anyone had an example of maybe their way of implementing an ECS. I know how to go about it, but I'm unsure of exactly what the code would look like.
  • Introducing Ecsact
    8 projects | dev.to | 24 Jun 2023
    Since we wanted a common game simulation that would be on both the server and the client we looked into a few libraries that would fit our ECS needs. It was decided we were going to write this common part of our game in C++, but rust was considered. C++ was a familiar language for us so naturally EnTT and flecs came up right away. I had used EnTT before, writing some small demo projects, so our choice was made based on familiarity. In order to integrate with Unity we created a small C interface to communicate between our simulation code and Unity’s C#. Here’s close to what it looked like. I removed some parts for brevity sake.
  • Prolog for future AI
    2 projects | /r/prolog | 24 Jun 2023
    Repository: https://github.com/SanderMertens/flecs
  • An in-game query engine heavily inspired by prolog
    2 projects | /r/prolog | 9 Jun 2023
    This is the project: https://github.com/SanderMertens/flecs (query engine implementation lives here: https://github.com/SanderMertens/flecs/tree/master/src/addons/rules)
  • What are the limits of blueprints?
    4 projects | /r/unrealengine | 25 May 2023
    There's also a performance question. While we can now use Blueprint nativization to convert Blueprints to C++ the result will be a fairly naive version, fast enough for most purposes but not if you're trying to push every bit of performance. This is where you're looking at making sure you're hitting things such as using the CPU cache as well as possible for an ECS system (Look at ENTT or Flecs if you want to see what they're about and why you'd want one), or a system needing to process massive amounts of data quickly such as the Voxel Plugin.
  • What's the hot tech stack these days?
    2 projects | /r/PBBG | 23 May 2023
    If I knew C++ and I'd heard about it before I started my current project, I would have been tempted to use this https://github.com/SanderMertens/flecs which can be built to WASM. Of course you still need JavaScript in the front end to link to the WASM part. I've recently been using esbuild to bundle my front end code, which does a pretty similar job to webpack, but is a bit faster.
  • Bevy and WebGPU
    8 projects | news.ycombinator.com | 18 May 2023
    When do think bevy will support entity-entity relationships ? https://github.com/bevyengine/bevy/issues/3742.

    Flecs ECS already supports this: https://github.com/SanderMertens/flecs/blob/master/docs/Rela...

  • any resources for expanding on ECS?
    4 projects | /r/gamedev | 22 Apr 2023
    For a modern engine you’re probably best looking at Unity’s DOTS. You may also want to check out some of the different open source ECS libraries such as flecs and EnTT are two popular ones for C++, but there’s lots of them. Largely you’ll see lots of different approaches taken, all with their own pros and cons. Not all of them will be performant (some focus more on the design benefits) while others will be optimised for certain use cases. What you should prioritise will depend on your specific needs.

Seastar

Posts with mentions or reviews of Seastar. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-13.
  • I want to share my latest hobby project, dbeel: A distributed thread-per-core nosql db written in rust
    3 projects | /r/rust | 13 Nov 2023
    I used glommio as the async executor (instead of something like tokio), and it is wonderful. For people wondering whether it's "good enough" or to use C++ and seastar (as I have thought about a lot before starting this project), take the leap of faith, it's fast - both in terms of run time and to code.
  • How much reason is there to be multi-threaded in the k8s environment
    2 projects | /r/scala | 4 Jul 2023
    b) It's proven now e.g Seastar, Glommio that the fastest way to run a multi-threaded application is to have one instance with one thread pinned per CPU core. Then to have fibers/lightweight threads on top handling all of the asynchronous code. Your approach of lots of instances is the slowest so there will be a ton of unnecessary thread context-switching.
  • Are You Sure You Want to Use MMAP in Your Database Management System?
    3 projects | news.ycombinator.com | 2 Jul 2023
    The most common example is DPDK [1]. It's a framework for building bespoke networking stacks that are usable from userspace, without involving the kernel.

    You'll find DPDK mentioned a lot in the networking/HPC/data center literature. An example of a backend framework that uses DPDK is the seastar framework [2]. Also, I recently stumbled upon a paper for efficient RPC networks in data centers [3].

    If you want to learn more, the p99 conference by ScyllaDB has tons of speakers talking about some interesting challenges.

    [1] https://www.dpdk.org/.

    [2] https://github.com/scylladb/seastar

    [3] https://github.com/erpc-io/eRPC

  • Why does Actix-web's handler not require Send?
    3 projects | /r/rust | 18 Jun 2023
    I assume Tokio itself, see e.g monoio or glommio, but also Seastar for C++.
  • What is DPDK library in C and how to learn it?
    1 project | /r/C_Programming | 27 Apr 2023
    https://core.dpdk.org/supported/ lists supported nics. You're best just reading material from the dpdk website for figuring out roughly what it is. It is used for a lot of different goals. For most web C++ stuff it's mainly used because you can avoid round trips of data passing through the kernel and can reference network data without tons of copying. For an example check out the SeaStar framework, https://seastar.io/, which is under the hood of ScyllaDB.
  • How Numberly Replaced Kafka with a Rust-Based ScyllaDB Shard-Aware Application
    1 project | /r/apachekafka | 17 Apr 2023
    As this is a Kafka sub, this may be a good opportunity to mention that Redpanda is based on the same framework (seastar) as Scylla. The idea of sharding work to CPU cores turns out to apply very well to the Kafka data model, too!
  • What are some C++ projects with high quality code that I can read through?
    8 projects | /r/cpp_questions | 16 Jan 2023
    Seastar which is a thread per core runtime written by the Scylla devs thats used in both Redpanda and Scylla as the underlying runtime. https://github.com/scylladb/seastar
  • Abstraction Is Expensive
    1 project | news.ycombinator.com | 7 Dec 2022
    ScyllaDB is, ironically, maybe one of the worst examples the author could have come up with for "abstraction" in the article.

    If folks aren't familiar with their work/internal tech, go check out some of their repos like Seastar. They have some of the most talented systems programmers on the planet writing thin veneers over kernel and hardware API's to squeeze every ounce out of performance.

    https://github.com/scylladb/seastar

    I know it's beside the point, but I just had to share because I thought that was funny

  • Modern JVM Multithreading • Paweł Jurczenko • Devoxx Poland 2021
    3 projects | /r/java | 28 Oct 2022
    I’ve seen frameworks for c++ (https://seastar.io/) and rust (https://github.com/actix/actix) which support what you’re describing out of the box.
  • Who is using C++ for web development?
    12 projects | /r/cpp | 4 Oct 2022
    If you're interested in scaling and asynchronous programming in c++ I highly recommend you investigate the SeaStar application framework. You wouldn't build a web service with SeaStar, rather you would build the infrastructure that you would use to build the web service on top of. https://github.com/scylladb/seastar

What are some alternatives?

When comparing flecs and Seastar you can also consider the following projects:

entt - Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more

Folly - An open-source C++ library developed and used at Facebook.

JUCE - JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.

glommio - Glommio is a thread-per-core crate that makes writing highly parallel asynchronous applications in a thread-per-core architecture easier for rustaceans.

Boost - Super-project for modularized Boost

Boost.Asio - Asio C++ Library

SDL - DEPRECATED: Official development moved to GitHub

ffead-cpp - Framework for Enterprise Application Development in c++, HTTP1/HTTP2/HTTP3 compliant, Supports multiple server backends

bevy - A refreshingly simple data-driven game engine built in Rust

Qt - Qt Base (Core, Gui, Widgets, Network, ...)