Our great sponsors
-
Magic Enum C++
Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
There are already several working, well-known and used hacks mechanisms available to reflect on enums. For example, magic enum, wise enum, Boost.Describe, and so on.
-
https://embark.dev/ is a major player in the rust ecosystem right now. They look like they are aiming for more of a startup feel rather than an indie one.
-
Sonar
Write Clean C++ Code. Always.. Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
-
My little toy engine I made had code for this. I had to rely on gnu extensions, but it worked ok. Then I would define them in lua from the c++ code so I could use them easily. https://github.com/floomby/Equinox-Engine/blob/main/enum_helper.hpp
-
On the Rust front, the ecosystem is still in its infancy but rapidly growing. r/rust_gamedev would be a good place to go to see at a glance what the current state of things is.
-
libCat
🐈⬛ A runtime for C++23 w/out libC or POSIX. Smaller binaries, only arena allocators, SIMD, stronger type safety than STL, and value-based errors!
Introducing malloc() and pthreads makes a large difference in binary size, from what I've been able to tell. Those come out of libC and POSIX, technically, but you need them to use a real STL (except for pthreads on Windows). My bigger concern is the invisible overhead that they introduce more than the binary size, which is why I'm working on technology to program C++ without them.
-
There are already several working, well-known and used hacks mechanisms available to reflect on enums. For example, magic enum, wise enum, Boost.Describe, and so on.
Related posts
- Counting the number of fields in an aggregate in C++20
- Best format for high-performance Serde?
- Convert a base-64 encoded, serialised, Rust struct to a Python class
- orjson: Fast, correct Python JSON lib (supports dataclasses, datetimes, numpy)
- Advice on build system approach choice for a Rust + Fortran project?