glaze
json
glaze | json | |
---|---|---|
18 | 11 | |
894 | 414 | |
- | 1.0% | |
9.9 | 8.5 | |
6 days ago | 17 days ago | |
C++ | C++ | |
MIT License | Boost Software License 1.0 |
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.
glaze
- [C++20] to_tuple with compile-time names
-
More helpful reflection in Glaze for GCC and Clang (MSVC please take note)
Previously in the Glaze library, you would need to write out your key names along with the member object pointers. However, as of version 1.8.0, these key names are now optional. If the keys are not provided the member variable name will be reflected for serialization/deserialization. I'm even more excited about this reflection than the previously announced pure Clang reflection, because it works well with user customization and supports non-aggregate, non-default constructible, and non-constexpr types.
-
Efficient Versatile Encoding (EVE) - A new, extremely fast binary data format
BEVE fully supports JSON messages. The Glaze C++ JSON library allows users to use the same API to encode/decode to either JSON or EVE binary. Glaze also encodes/decodes directly into your C++ structures and standard library containers, making it easy to use without additional copies.
-
How to arrange a bunch of variables into one array of bytes in memory?
I would either look at https://github.com/eyalz800/zpp_bits or https://github.com/stephenberry/glaze. FYI, glaze both supports json and binary.
- [Cpp] Nouvelle bibliothèque JSON la plus rapide pour C ++ 20
- DynaMix 2.0.0 Released
-
Full source code of Glaze is leaked. I'm curious if someone with knowledge is able to reverse engineer this techinque for enhanced model training with minial style interference.
Glaze is a software that uses artificial intelligence to create realistic images from text descriptions. It is based on Stable Diffusion, an open source framework for image synthesis using diffusion models. Glaze claims to offer enhanced model training with minimal style interference by using a technique called ControlNet1.
-
enum_name (yet another enum to/from string conversion utility >=C++11)
I ended up adopting this approach in some test code https://godbolt.org/z/GKW8Preva when I was thinking about adding automatic enum serialization/deserialization to stephenberry/glaze. But there are too many limitations.
-
Help Needed Regarding "conversion of endianness" while binary-serializing files
Alternatively, use a preexisting library for binary serialization and deserialization. If you’re trying to serialize your own stuff, glaze is a good option since it supports both json and binary serialization/deserialization. https://github.com/stephenberry/glaze
-
Glaze JSON library version 1.0 release
This parse file has some of the chunk simd processing: https://github.com/stephenberry/glaze/blob/main/include/glaze/util/parse.hpp
json
- Upcoming talk by Bjarne Stroustrup "What is good C++ code?" Nov 15, 2022
-
New, fastest JSON library for C++20
Shouldn't your benchmark use a somewhat larger JSON? Something from https://github.com/boostorg/json/tree/develop/bench/data, for instance.
-
- Newbie: "I want to contribute to the Boost [...] It will be really helpful if any mentor can guide me [...]" - Boost Pro: "Well, the first thing you should do is STAR this repository"
The mascot for the library appears to be Jason Voorhees. Should I be concerned?
- Google Protobuf vs JSON vs [insert candidate here]
-
JSON for Modern C++ version 3.10.0
You should be able to build and include boost json as a standalone subproject in CMake if you are using C++17. (Or also possible to use as header only lib)
It gets far more complicated with C++11, since you also need a ton of other boost modules there.
For more Details you can read the Readme of it. https://github.com/boostorg/json
- Poifect: Perfect Hashing Library
-
Where had Singletons gone from game engines?
https://github.com/boostorg/json/blob/f55bd4b85edd9b9b9b2d27fb49d66a990aa89001/include/boost/json/impl/object.hpp#L39
-
Visual Studio's Natvis Debugging Framework Tutorial
I'm gonna throw this out there - Boost.JSON comes with .natvis visualizers for all of its data structures, so you can inspect all of its types in the debugger and get nice insights: https://github.com/boostorg/json/blob/932b97e5ce899f3faebb7b7ab5a68b023131b77f/include/boost/json/json.natvis
What are some alternatives?
benchmarks - Some benchmarks of different languages
simdjson - Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks
dyno - Runtime polymorphism done right
json-schema-validator - JSON schema validator for JSON for Modern C++
polytail - Rust-like trait-based polymorphism for C++
cereal - A C++11 library for serialization
AdverseCleaner - Remove adversarial noise from images
Cap'n Proto - Cap'n Proto serialization/RPC system - core tools and C++ library
te - C++17 Run-time polymorphism (type erasure) library
slang - SystemVerilog compiler and language services
mk_parse_int - String to int (in C89).
tiny-utf8 - Unicode (UTF-8) capable std::string