News for hackers. Stuff that matters.
Re:JSON for Modern C++ version 3.10.0 by einpoklum on Thursday August 19, 2021 @06:54AM (#28232339)
From the repository's README:

> Speed. There are certainly faster JSON libraries out there. However, if your goal is to speed up your development by adding JSON support with a single header, then this library is the way to go.

It is essentially admitting to being slow(er). We are not supposed to pay for code modernity with performance. In fact, it should be the other way around.

Does someone know the innards of this library as opposed to, say, jsoncpp or other popular libraries, and describe the differences?

Re:JSON for Modern C++ version 3.10.0 by nlohmann on Thursday August 19, 2021 @08:07AM (#28232770)
The library aims at making anything related to JSON straightforward to implement. For some applications, this is a good compromise. The comment in the README is like the answer to a FAQ "How fast is it?"
Re:JSON for Modern C++ version 3.10.0 by einpoklum on Thursday August 19, 2021 @12:12PM (#28235662)
> This is a good compromise

You're making the false assumption that there is a compromise to be made - but there isn't. A modern JSON library should be the fastest (or about the same speed as the fastest), and vice-versa.