yaml-cpp
rapidyaml
yaml-cpp | rapidyaml | |
---|---|---|
12 | 13 | |
4,803 | 520 | |
- | - | |
7.1 | 8.1 | |
13 days ago | 1 day ago | |
C++ | C++ | |
MIT 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.
yaml-cpp
-
yaml-cpp VS rapidyaml - a user suggested alternative
2 projects | 5 Feb 2022
-
How do you manage third-party libraries
FetchContent_Declare(yaml-cpp GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git GIT_TAG yaml-cpp-0.7.0 GIT_SHALLOW TRUE ) set(YAML_CPP_BUILD_TESTS OFF) FetchContent_MakeAvailable(yaml-cpp)
-
Templated lambdas with unknown type during invocation
As you can see, I'm trying to coerce some YAML::Node to get some unknown type:
-
How to deal with unmaintained crates? (eg. yaml-rust)
Some context, In my day job, I'm working on a custom format that is based on yaml but extends it. We're still using C++, so we the used yaml-cpp as a base for our parser and it was great for that purpose. laying with rust on Advent of Code lately I also got sent back to reality... Not having rust enums, match, great string handling, iterators when working with my AST was hard. So I wanted to try to implement the same parser in Rust as an example to my teammates of how great rust can be.
-
Libraries
yaml-cpp
-
yaml-cpp eclipse
Hi, this is a library (https://github.com/jbeder/yaml-cpp), I tried to add it but unfortunately I can't, and I can't find any instructions.
-
Beginner: ExternalProject_Add link and include directory
cmake_minimum_required(VERSION 3.0.0) project(cmaketest VERSION 0.1.0) include(CTest) enable_testing() include(ExternalProject) ExternalProject_Add(yaml PREFIX 3rd_party GIT_REPOSITORY https://github.com/jbeder/yaml-cpp/ INSTALL_COMMAND "" ) add_executable(cmaketest main.cpp) set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) include(CPack)
-
Modern yaml library with clear docs
I've found is yaml-cpp. The API seems fine
-
I need help with list project
If you want a file format that has more readability, YAML is probably your best bet.
-
How to read from a file
Can this not be parsed as YAML? (https://github.com/jbeder/yaml-cpp)
rapidyaml
-
Faces.js, a JavaScript library for generating vector-based cartoon faces
Interesting, I hadn't come across extism before. How hard would it be to package https://github.com/biojppm/rapidyaml in this way? (And do you have a extism for dummies guide?)
-
A convenient C string API, friendly alongside classic C strings.
The inability, or brittleness, to embed NUL bytes into the string, for once. Zeroed bytes can be valid as an internal bytes of a longer encoded character. And the inefficiency of tempting every caller to rederive the string length on every use, leading to such bugs as quadratic parsing behavior with sscanf. The extra register for an explicit length is a very minute price to pay compared to that.
-
Funniest line of code you wrote while making a game?
Although you still have the other problem of sscanf, where read times can become quadratic.
-
yaml-cpp VS rapidyaml - a user suggested alternative
2 projects | 5 Feb 2022
- Since this is about json parsing and the tdarr json db can take ungodly times to load, maybe it's relevant?
- Parsing can become accidentally quadratic because of sscanf
-
"Expanded and Enhanced"
You are really simplifying that issue. A lot of it has to be how the implementation of sscanf works and it's super easy to abuse by complete accident when a lot of data needs to be read and parsed to correct values. See more here: https://github.com/biojppm/rapidyaml/issues/40
-
Accidentally quadratic: When Python is faster than C++
Leading to eye-rolling problems like these: https://github.com/biojppm/rapidyaml/issues/40
What are some alternatives?
Boost.PropertyTree - Boost.org property_tree module
wasm3 - 🚀 A fast WebAssembly interpreter and the most universal WASM runtime
ArduinoJson - 📟 JSON library for Arduino and embedded C++. Simple and efficient.
json-c - https://github.com/json-c/json-c is the official code repository for json-c. See the wiki for release tarballs for download. API docs at http://json-c.github.io/json-c/
json - JSON for Modern C++
degasolv - Democratize dependency management.
RapidJSON - A fast JSON parser/generator for C++ with both SAX/DOM style API
Vrmac - Vrmac Graphics, a cross-platform graphics library for .NET. Supports 3D, 2D, and accelerated video playback. Works on Windows 10 and Raspberry Pi4.
JsonCpp - A C++ library for interacting with JSON.
JitFromScratch - Example project from my talks in the LLVM Social Berlin and C++ User Group
JSON++ - A JSON parser in C++
ctl - The C Template Library