Live data from Hacker News

How we rolled out one of the largest Python 3 migrations

blogs.dropbox.com

11–20 of 141 posts

Re: How we rolled out one of the largest Python 3 migrations

#12

Interesting write-up, though it leaves me terrified how a relatively small, more or less single purpose application like the Dropbox client has over 1 million lines of code in Python alone.

I found the Dropbox lecture [1] at Stanford one of the most riveting things ever. There is just so much technology behind Dropbox, it is staggering.

There is a reason why it is so much better than iCloud sync, Google Drive, Box or OneDrive.

[1] https://www.youtube.com/watch?v=PE4gwstWhmc

Re: How we rolled out one of the largest Python 3 migrations

#15

I would have thought that Go would be perfect for this sort of system-level-like programming ?

Go code is about ~30% more verbose than equivalent python.

Wow, I wouldn't have expected that. Do you have a reference for the 30%? I'd like to see what is going on to cause that big of a difference.

Re: How we rolled out one of the largest Python 3 migrations

#16

Earlier quoted context omitted.

Go code is about ~30% more verbose than equivalent python.

Wow, I wouldn't have expected that. Do you have a reference for the 30%? I'd like to see what is going on to cause that big of a difference.

Every other 5 lines being the equiv of:

    if err != nil {
        ... error handling ...
    }
Python just uses exceptions, and they bubble up. No need for this excessively verbose error checking.

Re: How we rolled out one of the largest Python 3 migrations

#17

What happened to their new implementation of Python they were building? I know it was cancelled, but not really why.

Probably because it was 2.7 only, and only 10% faster on Dropbox's code.

https://blog.pyston.org/2017/01/31/pyston-0-6-1-released-and...

Re: How we rolled out one of the largest Python 3 migrations

#18

Interesting write-up, though it leaves me terrified how a relatively small, more or less single purpose application like the Dropbox client has over 1 million lines of code in Python alone.

The size of a codebase is less about its function and more about the number of people adding code to it.

Re: How we rolled out one of the largest Python 3 migrations

#20
post #16

Earlier quoted context omitted.

Wow, I wouldn't have expected that. Do you have a reference for the 30%? I'd like to see what is going on to cause that big of a difference.

Every other 5 lines being the equiv of: if err != nil { ... error handling ... } Python just uses exceptions, and they bubble up. No need for this excessively verbose error checking.

I'm not sure why it is downvoted. This is true. I write both Golang and Python as part of my day job. I love both languages, but this is definitely the truth.

Go is more verbose. It also gives you the wonder of the compiler telling you about doing stupid things. That doesn't make it a worse language.

Post reply on HN