NBTx
yyjson
Our great sponsors
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.
NBTx
-
I made an NBT-based data format, but a little more general purpose
Because for my upcoming Minecraft clone written in C (yes, yet another Minecraft clone) I needed a binary format just like Notch's NBT, but it's very Java-oriented… Big endian only, and lacks unsigned types. So I decided to make my own format fixing that, based on NBT, and called it NBTx because it sounds cool. It's like .doc when it became .docx. My library is a fork of the cNBT library on GitHub. It's beer-ware licensed so feel free to use it in your own projects! Or better yet, contribute to improve it because currently, it is just a largely-untested adaptation of cNBT (although it is not very complex, most likely it works just fine), and seems like it needs an API to make an nbt tree from scratch. Maybe someone can make C# bindings so it can be used in Unity and reach more devs? (I stopped using Unity some time ago.) The specification is in the NBTx.txt file in the repository. Let me know what you think!
yyjson
- FLaNK Stack Weekly for 07August2023
- yyjson: A high performance C JSON library
-
Show HN: Up to 100x Faster FastAPI with simdjson and io_uring on Linux 5.19
How does yyjson[0] compare to simdjson? Their benchmarks suggest it could be a positive.
-
Why is my program segfaulting?
Also I am using these libraries: JSON: https://github.com/ibireme/yyjson Networking: https://curl.se/libcurl/
-
How to parse JSON in C ?
If you need speed, by far yyjson. But it sounds like you probably don't need speed, so the other suggestions are likely better.
What are some alternatives?
SBE - Simple Binary Encoding (SBE) - High Performance Message Codec
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/
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
cJSON - Ultralightweight JSON parser in ANSI C
JSMN - Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket
parson - Lightweight JSON library written in C.
ultrajson - Ultra fast JSON decoder and encoder written in C with Python bindings
gorilla-cli - LLMs for your CLI
Stroika - Modern C++ made easy
gravity - Gravity Programming Language
Leaf-C-Extended-Library - A simple library that supplements the simple C programming experience!
japronto - Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.