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.



Apple’s China Market Share Shrinks as Huawei Surges, Data Shows 

A woman walks past a logo of Apple Inc in Wuhan, Hubei province July 24, 2013. (Reuters)
A woman walks past a logo of Apple Inc in Wuhan, Hubei province July 24, 2013. (Reuters)
TT

Apple’s China Market Share Shrinks as Huawei Surges, Data Shows 

A woman walks past a logo of Apple Inc in Wuhan, Hubei province July 24, 2013. (Reuters)
A woman walks past a logo of Apple Inc in Wuhan, Hubei province July 24, 2013. (Reuters)

Apple's market share in China shrank by two percentage points in the second quarter of 2024, as the tech giant faced intensifying competition from rivals like Huawei, according to data from market research firm Canalys.

The decline underscores the difficulties the US tech giant faces in its third-largest market.

Huawei's smartphone shipments surged 41% year-on-year in the quarter, bolstered by the launch of its new Pura 70 series in April.

The Canalys data, while not providing specific shipment figures for Apple, showed that the company's market share in China dropped to 14% in the second quarter of 2024, a decrease from 16% in the same quarter of 2023.

As a result of this decline, Apple's ranking in the Chinese smartphone market fell from third to sixth place.

Overall, China's smartphone shipments rose by 10% in the quarter, Canalys said. Vivo was the top vendor with a share of 19%, followed by Oppo, Honor and Huawei with 16%, 15% and 15% respectively.

"Domestic manufacturers have demonstrated market leadership, occupying the top five positions in the mainland Chinese market for the first time in history," said Lucas Zhong, research analyst at Canalys.

"On the other hand, Apple faces growth pressure in the Chinese market and is actively focusing on optimizing channel management."

Huawei made a comeback to the high-end smartphone segment last August with the release of a device powered by a domestically-made chip, defying US sanctions that have cut off its access to the global chipset supply chain.

In an effort to boost sales, Apple has ramped up its discounting efforts this year to entice consumers. The US company launched an aggressive campaign in May, doubling the scale of an earlier promotion in February and offering price cuts of up to 2,300 yuan ($318.84) on select iPhone models.

Analysts expect Huawei's strong performance to continue throughout the year. Canadian research firm TechInsights projected earlier this year that Huawei's overall smartphone shipments in China will exceed 50 million units in 2024, with the Pura 70 series accounting for 10 million of those shipments.

That would make Huawei the No. 1 seller with a 19% market share, up from 12% in 2023, TechInsights has said.