News for hackers. Stuff that matters.
Re:Vjson - claims to be fastest json parser written in c++ by jameskilton on Monday August 30, 2010 @09:23AM (#1646116)
I'm confused. json.cpp is pure C code with custom atoi and atof implementations. block_allocator.cpp uses malloc and free with reinterpret_cast and some STL (max and swap).

The other C++ is in main, which can of course be ignored if this is embedded into another system.

It's clean code, very easy to follow, and probably works great, but why isn't it just written purely in C? Wouldn't that be faster and smaller?

Re:Vjson - claims to be fastest json parser written in c++ by foobarbazetc on Tuesday August 31, 2010 @12:13AM (#1648417)
How about, you know, a benchmark against yajl? :)

Also, it's easy to be fast and incorrect, as the page outlines under "cons".