Always the same people that get their names in the news. I would say that the amount of tweaks that prop up Python is no cause for celebration.
Yet here it is ... powering a global scale app. Too weak for someones hobby project, strong enough for global scale.
Backend of Meta Threads is built with Python 3.10
61–70 of 458 posts
Re: Backend of Meta Threads is built with Python 3.10
#62Earlier quoted context omitted.
Yet here it is ... powering a global scale app. Too weak for someones hobby project, strong enough for global scale.
Off-topic: it is not yet [global scale] because it is only available in US. Here in EU, I still get “not available in your country”.
Something, something privacy regulations.
Re: Backend of Meta Threads is built with Python 3.10
#63Earlier quoted context omitted.
My few years of personal experience of using Python with even small-ish scale professional projects have been... underwhelming so far. I wonder how Meta (and Google, and all the others who write serious Python code) manage to keep things running – and I'm not talking (only) of performance, but largely of bugs. My personal suspicion is that the secret sauce is simply to have a sufficient budget to hire an army of code…
Tests is likely a large part of it. There are some great tools for code formatting, quality, and type checking. It’s a very flexible language… When people are hyper critical of Python I feel it’s typically they haven’t seen real professional Python before and just throw scripts around… if you work with some hardened Python pros you pick up the tricks really quickly and it’s very enlightening. I’ve always struggled to…
Re: Backend of Meta Threads is built with Python 3.10
#64Earlier quoted context omitted.
In short: static analysis, unit tests, staging environments, effective log aggregation. The first one is a big productivity booster as it shows you bugs before you commit them. Here's a post about this, not exactly new but still describing the general principles very well: https://instagram-engineering.com/static-analysis-at-scale-a...
I would say that those things don't really contribute to the actual runtime scalability of the application. Those things ensure that the code is at least correct for what it's supposed to do, not necessarily whether it's performant. Even the most perfectly-written Python code will still be dog-slow and require an enormous budget to actually run at scale. It's obviously fine to do that and there are many success stori…
Nah, asyncio on uvloop is plenty fast.
Re: Backend of Meta Threads is built with Python 3.10
#65Earlier quoted context omitted.
Not exactly true. They have a read-only browser view. In fact a Thread thread has already been on the front of HN. https://news.ycombinator.com/item?id=36609632
> Not exactly true. Still, mostly true.. read-only is just dumb. Nice to be back in 2008, when mobile-first turned into mobile-only. The entire point of this thread was that this is a Python/Django web app, but it's not actually a web app at all, so what's the point of pointing out any of this?
Re: Backend of Meta Threads is built with Python 3.10
#66Really, all the performance intensive parts are in various c++ aggregator and recommendation type services. But the webserver is Django, yes.
Thanks for your comment. I'm really interested in this topic. How do you know the web server is Django? I searched but couldn't find this. Why would they use Django? I did some small projects in it but I assumed it wasn't very fast and wouldn't be suitable for a big app like this. I would like to know the pros and cons. Why didn't they build up something in C++ or Rust? Won't python limit the speed of responses despi…
Re: Backend of Meta Threads is built with Python 3.10
#67Can we block Twitter links on HN? No point in supporting that user-hostile tire fire. This could have been on Mastodon.
The links are being submitted and voted on by other members of the community. I’m not sure what gives you the impression you’re in a position of authority.
Geez, it is you who is the authoritarian for coming so hard at the person who asked a pertinent question.
Geez.
Re: Backend of Meta Threads is built with Python 3.10
#68Earlier quoted context omitted.
The links are being submitted and voted on by other members of the community. I’m not sure what gives you the impression you’re in a position of authority.
Asking a question is having the impression that one is in a position of authority now?
Re: Backend of Meta Threads is built with Python 3.10
#69Earlier quoted context omitted.
My few years of personal experience of using Python with even small-ish scale professional projects have been... underwhelming so far. I wonder how Meta (and Google, and all the others who write serious Python code) manage to keep things running – and I'm not talking (only) of performance, but largely of bugs. My personal suspicion is that the secret sauce is simply to have a sufficient budget to hire an army of code…
In short: static analysis, unit tests, staging environments, effective log aggregation. The first one is a big productivity booster as it shows you bugs before you commit them. Here's a post about this, not exactly new but still describing the general principles very well: https://instagram-engineering.com/static-analysis-at-scale-a...
Re: Backend of Meta Threads is built with Python 3.10
#70Earlier quoted context omitted.
The links are being submitted and voted on by other members of the community. I’m not sure what gives you the impression you’re in a position of authority.
Asking a question is having the impression that one is in a position of authority now?