Skip to content

Comment on Reddit: Lessons Learned From Scaling To 1 Billion Pageviews A Month

Comments

Recode Python functions in C

From a security standpoint, this sounds like a bad idea

By the time it hits the C code it should be sanitized, but yes, it does add some security overhead.

That's a really general statement, people write C code all of the time. You just have to be more careful. That is, you have to actually be a C programmer instead of a Python programmer cobbling together some C.

That said, reddit uses a mix of straight-C and Cython-ised Python, which is a bit like the best of both worlds.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.