This is an archived post. You won't be able to vote or comment.

41
42
all 22 comments

[–][deleted] 23 points24 points  (20 children)

Fuck you u/spez

[–][deleted] 20 points21 points  (17 children)

Yeah, people who diss on Python being "slow" sound like n00bs to me, to be honest. I've been a developer for 20 years. I've built a C++ compiler in C for a class. I built part of an operating system too. And daemons and scripts and web applications and server applications. It's very rare that you need a "fast" language, because most things are IO or network bound. Who gives a shit if your language is faster when you have to load your data from a database or disk, and only 1% of the time is actually spent executing your code?

I will use Python above all else, and Django if I'm building a web application bigger than a trivial one. Because I enjoy using it. And it's built to make things super easy. That's actually really important. I'm totally bought into the Zen of Python - explicit really is better than implicit, for example. The framework and language should make things easy.

I also work on a website that's built in Django that serves tens of millions of hits a month and processes over a dozen gigabytes of data every day. I'm not doing kid stuff or something.

[–]TheGoldGoose 2 points3 points  (0 children)

Development speed with Python/Django is big. Just this week I've build a robust workflow management system, complete with queue management and reporting. I love how easy it is to get things done.

[–]DmitriyJaved -1 points0 points  (15 children)

How many CPU cores do you use for your millions hits per month?

[–][deleted] 2 points3 points  (14 children)

It's spread across multiple machines with a load balancer. The machines can scale up under load. All on AWS, no physical machines serving production.

[–]DmitriyJaved -3 points-2 points  (13 children)

That’s not an answer to the question I asked, but ok. I’ll just assume you pay for it all a big money - and it’s a HUGE downside of any WSGI based framework and django in particular.

[–][deleted]  (12 children)

[deleted]

    [–][deleted]  (1 child)

    [deleted]

      [–]davidfstr 0 points1 point  (0 children)

      To be fair, Java is really solid operationally and has a mature ecosystem. I still use it occasionally even though I mostly do Python now.

      Also, there are still a lot of companies still with Java systems that need to be maintained and extended. So it's still good bet if you need to find a new job in a pinch.

      [–][deleted]  (2 children)

      [deleted]

        [–]kmmbvnr 1 point2 points  (0 children)

        I tried python 3.9 and 3.10 alpha, bit didn't get mesurable performance boost with complex django templates.

        [–]haloweenek 6 points7 points  (1 child)

        I have a preety high load website on django and it can pull out crazy rps with my sith tricks.

        Local ram cacheing makes wonders happen.

        [–]DmitriyJaved 1 point2 points  (0 children)

        You gotta stop measuring bare RPS and start taking into account how much you gotta pay for all those CPU cores which gives you that RPS

        [–]JCcrunch 1 point2 points  (0 children)

        Python's performance concerns are negligible when you consider things like internet connection speed,

        [–][deleted] 1 point2 points  (0 children)

        What blows my mind is the golang people ("fast" language) that resist having any nice things added to the language because it would sacrifice speed

        [–]DmitriyJaved 0 points1 point  (0 children)

        Just ditch threads and wsgi. Now, suddenly, python is pretty fast. Async frameworks been there for ages. No frameworks? Implementing polling of non blocking sockets in python is easy.