C++ Middleware Writer
Magic Enum C++
C++ Middleware Writer | Magic Enum C++ | |
---|---|---|
98 | 44 | |
60 | 4,424 | |
- | - | |
8.5 | 8.1 | |
29 days ago | 5 days ago | |
C++ | C++ | |
BSD license | MIT License |
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.
C++ Middleware Writer
-
C++ exams to practice
I use unique_ptr, but not as much as I used to. I've never used shared_ptr. This is my library that uses some C++ 2020 and 2017 features.
-
What led you to use Linux as your daily driver?
I started with Linux in the late 90s. I switched to FreeBSD around 2013 and returned to Linux a couple of years ago. Io_uring was the main reason I had to come back. At first I ported the back tier of my code generator back to Linux and then I ported the middle tier from being POSIX based to Linux.
-
Simpletonian approach to services?
Are there others that minimize multithreading and opt for multi-processing with single threaded processes? Call me a simpleton, but this approach eliminates some of the most difficult bugs by design. Here's an example of one of my single-threaded servers. The network io is asynchronous, but the file io is synchronous. Thanks
-
Ask for info: Sample open source program offer command line interface handling
I've been working on this program for 13 years now. At one point it had 7 global variables and none of them were const. Now it has 4 global variables and 2 of them are const.
-
Would std::construct_at be better here?
in one of my programs. I'm thinking about changing it to:
- C++ code generator to help build distributed systems
-
Version 1.15 of the C++ Middleware Writer
It's a merger of services and code generation: an on-line code generator that outputs low-level messaging and serialization code based on high-level input. It's implemented as a 3-tier system and uses output from the code generator in each tier. There's also a traditional library that's part of the repo.
Support for more data types for message lengths. Previously message lengths were always 4 bytes. I used this, for example, to reduce the size of the type used for message lengths between the front and middle tiers of the CMW from 4 bytes to 2 bytes.
-
295 pages on Initialization in Modern C++, a new cool book!
More concretely, I use it to generate code that's used in each of the tiers mentioned above. The link is to one example of that.
- Why is you SaaS not growing faster?
Magic Enum C++
-
What C++ library do you wish existed but hasn’t been created yet?
I'm not sure this is quite what you're asking for, but this library has been super helpful to me in the past : https://github.com/Neargye/magic_enum
- Usable Magic Enums for C++
-
Fully Permissive License C++ Logger For Embedded System
Also, a shoutout to Magic Enum: https://github.com/Neargye/magic_enum
- Favorite Ways of Stringifying Enums
-
enum_name (yet another enum to/from string conversion utility >=C++11)
What does this have to offer over magic_enum?
-
quill v2.7.0 released - Asynchronous Low Latency C++ Logging Library
But it's a hack, and I prefer not to use hacks in production, because of their significant limitations:
-
Enums print numbers instead of words
You can either write a to string(view) function for your enum or use https://github.com/Neargye/magic_enum
-
Enums with methods
Why reinvent the wheel? magic_enum
-
Error: Boost bimap can't convert const CompatibleKey to Key&
Also if you want to convert enum members to string representation I suggest you just use magic_enum instead, much smaller dependency.
-
Macro to write enum and converter from and to string
Magic Enum provides that.
What are some alternatives?
stm32-hal - This library provides access to STM32 peripherals in Rust.
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
dyno - Runtime polymorphism done right
Protobuf - Protocol Buffers - Google's data interchange format
dockcross - Cross compiling toolchains in Docker images
cereal - A C++11 library for serialization
go - The Go programming language
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
amp-embedded-infra-lib - amp-embedded-infra-lib is a set of C++ libraries and headers that provide heap-less, STL like, infrastructure for embedded software development
Boost.Serialization - Boost.org serialization module
budgie-desktop - I Tawt I Taw A Purdy Desktop
pfr - std::tuple like methods for user defined types without any macro or boilerplate code