"A company’s most expensive resource is now its employee’s time. Or in other words, you. It’s more important to get stuff done then to make it go fast." Now take this sentence and apply it to the end user of your software.
Python is Slow, and I Don't Care
41–50 of 69 posts
Re: Python is Slow, and I Don't Care
#42Earlier quoted context omitted.
> almost all of YouTube was written in Python and has or is still being rewritten in C++, Java, and Go, saving XX millions of dollars per year of CPU time. If you reach YouTube scale, maybe the CPU savings > developer time. But I don't think you will reach that scale if you start with C++. Completion will outpace you in no time.
There are middle grounds between c++ and interpreted Python that have the same productivity as python and better performance.
Re: Python is Slow, and I Don't Care
#43If your reasoning is productivity above everything, therefore the only solution you can think of is Python, I call BS. As a Googler, I could relate countless stories of systems that were cobbled together in Python and then scaled up with massive investment, then later rewritten in C++ or Go, and generally ran with 100x fewer resources. Hell, from what I can tell, almost all of YouTube was written in Python and has or…
With large systems you want assurances at compile time, something that Python can't give you much of. When you have a huge system with many modules that interact in ways you can't expect anyone to map out without staring at a lot of code, it pays to have a stronger type system and fewer runtime errors.
For experimentation and small-scale work, Python's great. Single client application? Fantastic (e.g Dropbox). Giant web service or distributed application? Starts to show its ugly sides quickly.
Re: Python is Slow, and I Don't Care
#44If your reasoning is productivity above everything, therefore the only solution you can think of is Python, I call BS. As a Googler, I could relate countless stories of systems that were cobbled together in Python and then scaled up with massive investment, then later rewritten in C++ or Go, and generally ran with 100x fewer resources. Hell, from what I can tell, almost all of YouTube was written in Python and has or…
> then later rewritten in C++ or Go, and generally ran with 100x fewer resources This kind of story comes again all the time, but the most important detail is always missing: how much of that 100x can be attributed to the language, and how much can be attributed to now I know the domain better, I know where the pitfalls are, how to model the problem, and when I need to optimize ? Because arguably the second one can b…
Re: Python is Slow, and I Don't Care
#45If your reasoning is productivity above everything, therefore the only solution you can think of is Python, I call BS. As a Googler, I could relate countless stories of systems that were cobbled together in Python and then scaled up with massive investment, then later rewritten in C++ or Go, and generally ran with 100x fewer resources. Hell, from what I can tell, almost all of YouTube was written in Python and has or…
I think both are valid approaches depending on your application, available resources, nature of incentives, and the speed at which your market moves.
Re: Python is Slow, and I Don't Care
#46Earlier quoted context omitted.
There are middle grounds between c++ and interpreted Python that have the same productivity as python and better performance.
Correct. Like writting in python, but optimizing the "bottlenecks" in C/C++/Cython
Re: Python is Slow, and I Don't Care
#47If your reasoning is productivity above everything, therefore the only solution you can think of is Python, I call BS. As a Googler, I could relate countless stories of systems that were cobbled together in Python and then scaled up with massive investment, then later rewritten in C++ or Go, and generally ran with 100x fewer resources. Hell, from what I can tell, almost all of YouTube was written in Python and has or…
> then later rewritten in C++ or Go, and generally ran with 100x fewer resources This kind of story comes again all the time, but the most important detail is always missing: how much of that 100x can be attributed to the language, and how much can be attributed to now I know the domain better, I know where the pitfalls are, how to model the problem, and when I need to optimize ? Because arguably the second one can b…
Re: Python is Slow, and I Don't Care
#48Earlier quoted context omitted.
Maybe I'm daft, but I don't quite understand what your getting at.
translated: We dont care if our software runs like crap for you because our time is more important than your user experience.
I've seen this applied to the Linux kernel, where saving a few microseconds in a system call, when multiplied out to the billions of machines running Linux, saves hundreds of years of CPU time.
With that said, most services don't have as many users as Linux.
Re: Python is Slow, and I Don't Care
#49Earlier quoted context omitted.
There are middle grounds between c++ and interpreted Python that have the same productivity as python and better performance.
Correct. Like writting in python, but optimizing the "bottlenecks" in C/C++/Cython
and now you have to context switch in your head more often, and the build process is more complex, and usually there is a cost when you do the FFI.
Re: Python is Slow, and I Don't Care
#50If your reasoning is productivity above everything, therefore the only solution you can think of is Python, I call BS. As a Googler, I could relate countless stories of systems that were cobbled together in Python and then scaled up with massive investment, then later rewritten in C++ or Go, and generally ran with 100x fewer resources. Hell, from what I can tell, almost all of YouTube was written in Python and has or…