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.<p>The examples aren't comparable. The equivalent would be to have Python code invoke an external function which sits in a pre-compiled .so<p>Bulk of the work is happening inside of sprintf(), why handicap C by not letting it to compile the code?<p>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.<p>Edit: I see this became #1 on HN front page today. I want to take advantage of this and say that <a href="http://mailgun.net" rel="nofollow">http://mailgun.net</a>, 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! :)