News for hackers. Stuff that matters.
Re:Jsonifier, The Fastest and A New JSON Parsing/Serializing... by fjfaase on Tuesday November 21, 2023 @06:56AM (#38362447)
See the large number of JSON parse solutions and all the variants that there are with respect to broad properties of JSON, I wonder if it would be a good idea to implement a JSON parser generator.

In 2022, I spend some time looking at JSON parser for the ESP and I discovered that most libraries build an object structure. When processing a HTTP response, you first need to store the retrieved data into a string before it can be parsed into a tree of objects, before you can start parsing the contents of the response. This solution requires a lot of memory allocations. I started developing a solution that would be called from the HTTP request callback and immediately store the result of the response in the final a memory structures. See: https://github.com/FransFaase/ParsingJSONforHTTPClient

Re:Jsonifier, The Fastest and A New JSON Parsing/Serializing... by realtimechris on Tuesday November 21, 2023 @02:27PM (#38368674)
As you can see - the parser/serializer I've developed uses the minimal possible memory allocations. Nice parser though.
Re:Jsonifier, The Fastest and A New JSON Parsing/Serializing... by realtimechris on Tuesday November 21, 2023 @06:20AM (#38362179)
Hey everyone - so I've taken simdjson's algorithm and improved upon it by resaturating the CPU registers with data instead of only operating on 64-bytes worth of string data at a time, as well as incorporated some compile-time hashmaps for the keys of data/memory locations being parsed. Let me know what you think! Also here's some benchmarks: https://github.com/RealTimeChris/Json-Performance
Re:Jsonifier, The Fastest and A New JSON Parsing/Serializing... by lothrop on Tuesday November 21, 2023 @06:22AM (#38362193)
I know this dude.... he's a Meth Head and a Genius.
Re:Jsonifier, The Fastest and A New JSON Parsing/Serializing... by exiled1 on Thursday November 23, 2023 @09:33AM (#38393170)
Wow awesome work on this