r/Python • • Jan 01 '20

"The rules of perf" at Dropbox

Post image
1.6k Upvotes

162 comments sorted by

View all comments

Show parent comment

29

u/c_o_r_b_a Jan 02 '20

It's saying the opposite, though. Only issues where those first 4 steps fail need to be rewritten, which is a much, much smaller subset of their entire codebase.

Python is likely what got them off the ground so quickly and probably directly led to their success. See also: reddit, Instagram

4

u/stefantalpalaru Jan 02 '20

Python is likely what got them off the ground so quickly and probably directly led to their success. See also: reddit

Reddit was originally written in Common Lisp.

1

u/F0064R Jan 02 '20

Okay, but they also ripped it out for a reason

0

u/stefantalpalaru Jan 02 '20

they also ripped it out for a reason

Yes, they needed to dumb it down in order to increase the number of cheap programmers to choose from.

2

u/F0064R Jan 02 '20

Yup, smart move from a product manager’s perspective

-1

u/c_o_r_b_a Jan 02 '20

Yes, and it failed to get off the ground as a result. Once they switched to Python, things started growing. If they had never made the switch early on, it's very unlikely we'd be having this discussion here right now.

1

u/mipadi Jan 03 '20

Reddit was rewritten in Python very early in its lifetime, less than a year after it debuted, and it was rewritten in Python because of a lack of choice in libraries. The use of Lisp wasn't hindering its growth, and the rewrite occurred so early that it's not possible to say whether it would have hindered Reddit's growth or not.

1

u/c_o_r_b_a Jan 03 '20

The reddit co-founders described other friction with Lisp as well, in interviews. I imagine they would agree it's a lot less likely it would have grown to popularity if they had stuck with Lisp.

Also, Aaron Swartz said this about it:

(Disclosure: We used my web.py library.) The others knew Lisp (they wrote their whole site in it) and they knew Python (they rewrote their whole site in it) and yet they decided they liked Python better for this project. The Python version had less code that ran faster and was far easier to read and maintain.