Live data from Hacker News

Backend of Meta Threads is built with Python 3.10

twitter.com

21–30 of 458 posts

Re: Backend of Meta Threads is built with Python 3.10

#21

No tweaks mentioned at all inside. The title is wrong. Kinda weird to start a new project that needs to scale with Python though (I use Python most of the time).

It seems they are re-purposing Instagram's backend for this. And Instagram's backend is Python

Re: Backend of Meta Threads is built with Python 3.10

#22
post #18
post #11

Earlier quoted context omitted.

Yet here it is ... powering a global scale app. Too weak for someones hobby project, strong enough for global scale.

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

#23
post #18
post #11

Earlier quoted context omitted.

Yet here it is ... powering a global scale app. Too weak for someones hobby project, strong enough for global scale.

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 find all of those tricks in one online resource personally.

Re: Backend of Meta Threads is built with Python 3.10

#25
post #11

Earlier quoted context omitted.

Yet here it is ... powering a global scale app. Too weak for someones hobby project, strong enough for global scale.

So Google and Dropbox, who switched to Golang, are hobby projects.

Choice of language is not what makes things succeed or fail in production.

Team best practices, enforcement of coding style and technique, good project management, infrastructure, and team cohesion etc.

And weeding out bad engineers who think that "switching to a new [language|framework|religion]" will solve all problems.

10+ years ago Facebook itself did a remarkable job of scaling up, with hardly any outages, a PHP LAMP stack thingy to one of the hugest traffic websites in the world. Meanwhile back then Twitter mucked around with every novel technology they could find or invent, and had constant outages.

Also Google didn't "switch to Golang." There's plenty of C++, Java, Python there. I worked there for 10 years and encountered only a handful of Go projects. Lots of cloud services in C++.

Would I personally choose Python for a project? No, I don't like it, and I work in Rust full time because I prefer it. But if I worked at Meta / Instagram and had a team of Python engineers and existing libraries & infrastructure, this would be the right approach.

Re: Backend of Meta Threads is built with Python 3.10

#26

Ironic that a post about Threads backend is hosted on twitter.

If you want real irony here, it's this: powering an app called Threads with Python that's got a global interpreter lock which makes threading hard.

Get it? Threads, threading...? OK, I'll see myself out.

Re: Backend of Meta Threads is built with Python 3.10

#28
post #16

Ironic that a post about Threads backend is hosted on twitter.

Threads is a mobile-only app, like Instagram. You can't actually use Threads on a desktop browser, so that's probably why this is shared as a Twitter post. Even if it were a Threads post, it would not be submittable to HN.

Right. But this demonstrates why that's dumb. People can't even share press about their app without using a different product.

Edit: Someone kindly pointed out that you can see the content in the browser without an account from following a direct link. (You just can't have the app installed or it will open that and drop you on the login page.) This makes me a lot happier with the product!

Re: Backend of Meta Threads is built with Python 3.10

#29
post #13

Earlier quoted context omitted.

Why downvote this? It's a fair point.

A fair point about what? Threads is out for less than a day, I have 8 followers there so far. I originally posted this information on Mastodon, actually: https://mastodon.social/@ambv/110665808046065754 However, I have a much larger following on Twitter, so it was the tweet that got picked up by someone here on HN. We'll see how this looks like in twelve months.

A fair point that it's stupid to implement a mostly plain text publishing site that doesn't support linking to any of the text published there.

Edit: Someone kindly pointed out that you can see the content in the browser without an account from following a direct link. (You just can't have the app installed or it will open that and drop you on the login page.) This makes me a lot happier with the product!

Re: Backend of Meta Threads is built with Python 3.10

#30
post #24

Can 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.
Post reply on HN