Twitter Makes Some of its Source Code Public

Twitter app logo is seen in this illustration taken, August 22, 2022. REUTERS/Dado Ruvic/Illustration/File Photo
Twitter app logo is seen in this illustration taken, August 22, 2022. REUTERS/Dado Ruvic/Illustration/File Photo
TT

Twitter Makes Some of its Source Code Public

Twitter app logo is seen in this illustration taken, August 22, 2022. REUTERS/Dado Ruvic/Illustration/File Photo
Twitter app logo is seen in this illustration taken, August 22, 2022. REUTERS/Dado Ruvic/Illustration/File Photo

Twitter on Friday made public parts of the computer code that decides how the social media site recommends content, with its owner Elon Musk adding that the entirety of the code will be available in the next few weeks.

The announcement will allow users and programmers a peek into its workings and the ability to suggest modifications to the algorithm.

"In the coming weeks, we will open source literally everything that contributes to showing a tweet," Musk said in a tweet on Saturday.

The company said in a blog post it had uploaded the code in two repositories on code-sharing platform Github. They include the source code for many parts of Twitter, including the recommendations algorithm which controls the tweets that users see on their timeline.

The move comes at the behest of Musk, its billionaire owner, who has said code transparency would lead to higher trust among users and rapid improvements to the product.

It also serves to address common concerns among users and lawmakers, who are increasingly scrutinizing social media platforms over how algorithms select the content that users see.

Musk tweeted on Friday that third parties should be able to analyze the open-sourced code and "determine, with reasonable accuracy, what will probably be shown to users."

"No doubt, many embarrassing issues will be discovered, but we will fix them fast!" he tweeted.

According to Reuters, Musk also said Twitter will update its recommendation algorithm based on user suggestions every 24 to 48 hours.

On Friday, Musk and some Twitter employees held a session on Spaces, Twitter's audio chat feature, asking users to bring recommendations and questions about how the platform's code works.

One person questioned why Twitter's code appeared to classify users as Republicans or Democrats. A Twitter employee responded that it was an old feature that was not important to the platform's recommendation system, and the company was looking to remove it.

The repositories on Github do not include the code that powers Twitter's ad recommendations, the company said.

It also said it excluded code that would compromise user safety or privacy, as well as details that would undermine efforts to prevent child sexual abuse material on the platform.

The news also comes after parts of Twitter's source code were leaked on Github, which took down the code last week at Twitter's request.

Twitter asked the US District Court for the Northern District of California to order Github to produce "all identifying information" associated with the Github account that had posted the leaked code, according to a legal filing.



US Defends Law Forcing Sale of TikTok App

This photograph taken in Mulhouse, eastern France on October 19, 2023, shows the logo of the social media video sharing app TikTok reflected in mirrors. (AFP)
This photograph taken in Mulhouse, eastern France on October 19, 2023, shows the logo of the social media video sharing app TikTok reflected in mirrors. (AFP)
TT

US Defends Law Forcing Sale of TikTok App

This photograph taken in Mulhouse, eastern France on October 19, 2023, shows the logo of the social media video sharing app TikTok reflected in mirrors. (AFP)
This photograph taken in Mulhouse, eastern France on October 19, 2023, shows the logo of the social media video sharing app TikTok reflected in mirrors. (AFP)

The Justice Department late Friday filed its response to TikTok's civil suit aimed at derailing a law that would force the app to be sold or face a US ban.

TikTok's suit in a Washington federal court argues that the law violates First Amendment rights of free speech.

The US response counters that the law addresses national security concerns, not speech, and that TikTok's Chinese parent company ByteDance is not able to claim First Amendment rights here.

The filing details concerns that ByteDance could, and would, comply with Chinese government demands for data about US users or yield to pressure to censor or promote content on the platform, senior justice department officials said in a briefing.

"The goal of this law is to ensure that young people, old people and everyone in between is able to use the platform in a safe manner," a senior justice department official said.

"And to use it in a way confident that their data is not ultimately going back to the Chinese government and what they're watching is not being directed by or censored by the Chinese government."

The response argues that the law's focus on foreign ownership of TikTok takes it out of the realm of the First Amendment.

US intelligence agencies are concerned that China can "weaponize" mobile apps, justice department officials said.

"It's clear that the Chinese government has for years been pursuing large, structured datasets of Americans through all sorts of manner, including malicious cyber activity; including efforts to buy that data from data brokers and others, and including efforts to build sophisticated AI models that can utilize that data," a senior justice department official said.

TikTok has said the demanded divestiture is "simply not possible" -- and not on the timeline required.

The bill signed by President Joe Biden early this year set a mid-January 2025 deadline for TikTok to find a non-Chinese buyer or face a US ban.

The White House can extend the deadline by 90 days.

"For the first time in history, Congress has enacted a law that subjects a single, named speech platform to a permanent, nationwide ban, and bars every American from participating in a unique online community with more than one billion people worldwide," said the suit by TikTok and ByteDance.

- TikTok shutdown? -

ByteDance has said it has no plans to sell TikTok, leaving the lawsuit, which will likely go to the US Supreme Court, as its only option to avoid a ban.

"There is no question: the Act will force a shutdown of TikTok by January 19, 2025," the lawsuit said, "silencing (those) who use the platform to communicate in ways that cannot be replicated elsewhere."

TikTok first found itself in the crosshairs of former president Donald Trump's administration, which tried unsuccessfully to ban it.

That effort got bogged down in the courts when a federal judge temporarily blocked Trump's attempt, saying the reasons for banning the app were likely overstated and that free speech rights were in jeopardy.

The new effort signed by Biden was designed to overcome the same legal headaches, and some experts believe the US Supreme Court could be open to allowing national security considerations to outweigh free speech protection.

"We view the statute as a game changer from the arguments that were in play back in 2020," a senior justice department official said.

There are serious doubts that any buyer could emerge to purchase TikTok even if ByteDance would agree to the request.

Big tech's usual suspects, such as Facebook parent Meta or YouTube's Google, will likely be barred from snapping up TikTok over antitrust concerns, and others could not afford one of the world's most successful apps used by about 170 million people in the United States alone.