rapidyaml
json-c
Our great sponsors
rapidyaml | json-c | |
---|---|---|
12 | 18 | |
507 | 2,851 | |
- | 0.8% | |
5.7 | 7.1 | |
3 days ago | 26 days ago | |
C++ | C | |
MIT License | GNU General Public License v3.0 or later |
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.
rapidyaml
-
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
- Parsing can become accidentally quadratic because of sscanf
-
Accidentally quadratic: When Python is faster than C++
Leading to eye-rolling problems like these: https://github.com/biojppm/rapidyaml/issues/40
-
Hacker News top posts: Mar 1, 2021
Parsing can become accidentally quadratic because of sscanf\ (0 comments)
json-c
-
We need a JSON 2
When you say .jsonc, do you mean JSONC, JSONC, or JSONC? And have I mentioned JSON-C?
- Json-c error
-
Ask HN: Modern C Libraries
If you want a comfortable developer experience without having to "develop standard functionality," choose another language.
Otherwise: libcurl for the requests, json-c[0] for the JSON handling. SDL for window handling/events/other glue stuff. I don't know what rocksdb is but I assume it has its own C API library.
-
Why?
There’s also json-c and Hjson.
-
How can I parse JSON with C?
Look for the instructions here: https://github.com/json-c/json-c
- How to read and write to .JSON files in C
-
How to parse JSON in C ?
There are a few libraries out there for doing it. I like json-c but there are others.
-
Install Sway without sudo privilege
git clone https://github.com/json-c/json-c mkdir json-c-build cd json-c-build cmake ../json-c make And link json-c-build folder to sway's meson build file.
- Linus Torvalds on where Rust will fit into Linux
-
How a Bad Random Number Generator Froze Sway (2020)
It seems json-c uses a random number generator to get a seed that it then uses for string hashing. This is one way of protecting yourself against hash denial-of-service attacks.
https://github.com/json-c/json-c/blob/df27756491abf9ecce648c...
What are some alternatives?
cJSON - Ultralightweight JSON parser in ANSI C
Jansson - C library for encoding, decoding and manipulating JSON data
JsonCpp - A C++ library for interacting with JSON.
JSMN - Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket
json - JSON for Modern C++
libjson - a JSON parser and printer library in C. easy to integrate with any model.
yyjson - The fastest JSON library in C
parson - Lightweight JSON library written in C.
json.h - 🗄️ single header json parser for C and C++
wasm3 - 🚀 A fast WebAssembly interpreter and the most universal WASM runtime
simdjson - Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks
YAJL - A fast streaming JSON parsing library in C.