PyPy is faster than C, again: string formatting
I love PyPy, those guys are amazing. However, every time I see "faster than C" almost always a bit of trickery/wordplay is involved.The examples aren't comparable. The equivalent would be to have Python code invoke an external function which sits in a pre-compiled .soBulk of the work is happening inside of sprintf(), why handicap C by not letting it to compile the code?The fair comparison would be to place the source of sprinf() nearby and see if C compiler inlines that call or/and unrolls the loop, otherwise it's just about packaging/linking, not really about code generation.Edit: I see this became #1 on HN front page today. I want to take advantage of this and say that http://mailgun.net, the programmable email platform, is looking for an engineer who'd find this discussion interesting. See my profile. And we're users of PyPy too! :)