Normal view

There are new articles available, click to refresh the page.
Today — 4 July 2025Main stream

用完这个 Google 相机的精神续作,我觉得手机影像本该是这样

By: 周奕旨
4 July 2025 at 17:17

六年前,当我抱着索尼相机,乘坐一架 IndiGo(靛蓝航空)的空客 320 前往印度,开启了我的摄影师之旅。

六年后的今天,手机摄影正在以非同寻常的速度覆盖传统影像的领域,相机市场的产品线逐渐收束为专业领域的趁手工具,或是时尚穿搭单品。

此时,又一个「Indigo」引起了我的注意力——Adobe 的 Project Indigo,一个完全迥异的影像 app。

它将 Google 相机那备受赞誉的计算摄影体验,原汁原味地注入了 iPhone,并由此让我得以一窥,计算摄影的极致上限,究竟有多强。

面向未来的相机 App,但是预览版

如果你一眼看过去,可能很难意识到这是一个影像 app——

Project Indigo 的应用图标完全没有任何影像元素,而是遵循 Adobe 一贯的设计方案,将名称中两个单词的首字母放在图标上,底图则是以蓝色线条框出 16 宫格。

进入 Project Indigo(后文简称为 Indigo),首先是熟悉的权限请求界面,这个影像 app 总共需要三个权限:

  • 相机控制权限
  • 相册访问权限
  • 位置信息权限

没有麦克风访问权限,说明 Project Indigo 是一个完全服务于静态影像的 app,更贴合互联网潮流的视频拍摄,并不是它的重心。

在权限申请完成后,Indigo 会为你展示这款影像 app 的主要 UI 和功能,我们快速略过,直接进入到应用的主界面。

Project Indigo 的拍摄主界面没有遵从 iOS 26 的设计,而是提供了尽可能多的信息和控件,让操作者能最大程度地掌控自己的照片效果。

从顶部开始看,这里分为图片格式、直方图与曝光参数、拍摄模式三个部分,图片格式允许你选择拍摄 JPEG 格式的照片或是 DNG+JPEG 格式。

JPEG 格式是一种常见的传播格式,适合拍摄后直接在互联网或社交媒体上发表,而后者则是一种记录了画面详细信息的 RAW 格式照片,可以提供庞大的后期空间,不适合直接传播。

顶部中间部分的直方图与曝光参数一目了然地展示了目前取景器中的曝光情况以及快门速度和感光度的组合,这个部分还可以通过滑动进入二级菜单,在这个菜单中,你可以控制一些辅助取景和拍摄的控件,比如倒计时拍摄、取景器九宫格、水平仪或是高光过曝指示器,也可以从这里进入整个 Indigo 的应用设置。

而右边则是目前的拍摄模式,Indigo 的模式设置并不复杂,只分为照片与夜景两个模式。

视线转向屏幕的下半部分,在取景框的底部,是我们熟悉的焦段选择栏,以我的 iPhone 16 Pro 为例子,Indigo 分别提供了 0.5×、1×、2×、5×、10× 这五个选项。

很显眼的是,在 2× 与 10× 这两个焦段上,标着 SR 的字样,从官方的说明书我们可以得知,SR 的全称是 Multi-frame super-resolution(多帧超分辨率技术),基于 1× 主摄的 2× 与基于 5× 的 10× 将会在这个技术的支持下获得可以媲美光学焦段的清晰度。

顾名思义,多帧超分辨率技术背后的技术原理,就是在你按下快门后,手机瞬时拍摄相当多的照片张数,然后通过一定的算法,将数十张照片融合,生成充满丰富细节和低噪点的照片。

▲ 这就很尴尬了,图片来自小红书 @KERICH诚

在实际测试中,我发现从 2× 开始,一直到 4.9×,多帧超分辨率技术都在发挥作用,而 10× 与 10× 以上也是如此。

也就是说,在 Project Indigo 中,各焦段的成像任务得到了进一步的划分:

  • 0.5×-1×:基于原生超广角镜头的数码裁切;
  • 1×-1.9×:基于原生主摄的数码裁切;
  • 2×-4.9×:基于多帧超分辨率技术的类光学裁切;
  • 5×-9.9×:基于原生 5× 长焦镜头的数码裁切;
  • 10× 与 10× 以上:基于多帧超分辨率技术的类光学裁切。

看完了让人眼花缭乱的焦段布局,我们接着将视线转向更下方,照片与夜景模式横置在焦段布局与快门键之间,在这里你可以快速切换两个模式,以应对不同的拍摄场景,不过这里与顶部右侧的模式切换出现了重复,稍微显得有些浪费 UI 位置。

再往下,就是最重要的快门,快门的左侧是相册,拍摄的照片将会归置在相册中进行后期的融合,你可以在这里看到还有几张照片正在后台融合,也可以从这里跳转到 Lightroom 中进行进一步的照片编辑;

而右侧则是进入更为专业的手动模式,在这里你可以自定义色温、对焦距离、快门速度与感光度等直接影响成片的参数。

看完了页面布局,我很好奇 Project Indigo 的实拍表现如何,看看这个着力于图像领域的老牌公司,对移动影像有着怎么样的不同理解。

先说结论,Project Indigo 主要有两方面体验完全不同于 iPhone 原生相机,在相同的硬件基础上,Project Indigo 的成像效果更为耐看,明暗过渡更符合肉眼所见,没有 iPhone 那样傻亮的感觉;

从直方图来看,Project Indigo 的像素比较集中于左半部分,成像更偏向暗调,更符合人眼的舒适区域,更激发人类的情绪共鸣,也更契合深层的艺术表达习惯。


另一个,则是 Project Indigo 的成像少了很多锐化的割裂感,但凭借相当多张数的多帧合成,锐度并没有过于衰减,放大后,画面中的物体与文字边缘依旧维持一个较为清晰的状态,保持着一定的可读性。


在光影过度自然、傻锐现象解决的同时,Project Indigo 还有一个不容易被注意到的优化——iPhone 原相机的成像在放大后很容易看见细微且密集的噪点,而 Project Indigo 则将这些底噪处理得很好,放大来看,画面依旧可以保持纯净。

综合来看,Project Indigo 在画面细节、锐度、噪点抑制和颜色表现上都非常优秀,展现出更为自然、和谐的美学倾向,也更还原肉眼所见。

可以说,Project Indigo 的首秀,就将 iPhone 目前饱受诟病的过度锐化、不自然的亮度曲线、画面细节充满底噪等问题统统解决了,甚至还拓展了 iPhone 焦段的可用边界,但我并不推荐你立马尝鲜。

原因无它,这个 app 依然存在不少问题:例如照片偶尔会在底部出现黑边、拍摄后的照片一经相册编辑就会泛紫红色,同时整个拍摄过程中的发热量和耗电量也明显高于系统原生相机。

根据 Project Indigo 的研发人员在社交媒体上的反馈,黑边与偏色问题主要源于系统适配尚未完善,属于典型的 beta 阶段 bug;

而发热和能耗则有更深层的原因——Indigo 使用了与 iPhone 完全不同的影像处理管线,所以无法调用苹果原生的 ISP,所有的多帧计算与图像融合任务,几乎都直接压在了处理器本身上,自然也就带来了更高的硬件负载。

其实这一切,Adobe 早在打开软件前就提示你了——还记得那个白色为底,排布着蓝色线框的图标吗?

这种酷似工程蓝图的设计已经直接表明 Project Indigo 尚处于专注于底层计算摄影算法和框架,以技术为第一驱动属性的试验品,而不是一个功能完善、适用于分发的完成品。

同时,Project Indigo 的出身也决定了它的使用体验肯定还不够好——这是由 Nextcam 团队在 Adobe Labs 框架下推出的一个项目,这里是 Adobe 面向未来技术的试验田与孵化器,专注于提出问题、验证思路,而不是交付终点。

▲ 这里的大多数应用,都是从 Adobe Labs 孵化的

计算摄影源流与未来

Project Indigo 的推出,虽然归功于 Adobe 这个长期耕耘在图像领域的公司,但推出 Indigo 的团队 Nextcam 中,有个名字值得留意——Marc Levoy。

如果你经历过那个国产 Android 影像尚未开卷,Google 相机大行其道的年代,那么对 Marc Levoy 这个名字可能不会陌生——早期的 Pixel 与以算法著称的 Google 相机,都是他主导下的杰作。

▲ Marc Levoy

Levoy 的理念根植于他的学术背景,一个与传统光学摄影截然不同的世界:计算机图形学。

早在博士期间,他开创的体渲染技术,就奠定了其日后工作的核心逻辑:通过计算,将一系列 2D 数据切片(如 CT 扫描)重构为一个三维整体,这与他他日后在移动摄影中实践多帧合成、重建图像核心逻辑的雏形。

在斯坦福大学任教期间,Levoy 进一步为计算摄影构建了坚实的理论基础——他与同事共同发表的《光场渲染》论文,主张相机不仅应记录光的强度,还应记录其方向,从而允许在拍摄后实现重新对焦等革命性操作。

是不是很熟悉?已经成为过去式的 Lytro 相机就是这条路径的忠实践行者。

2004 年,Levoy 在斯坦福的一门课程上重新定义并普及了「计算摄影」这个术语,从另一个角度诠释了这个词更广阔的内涵:

计算摄影技术旨在增强或扩展数码摄影的能力,其产出的是一张普通照片,但它却是传统相机无法拍摄出来的。

十年后,Levoy 正式加入 Google,带领团队主攻手机摄影,他早期的思想终于在这里得到了具象实现:通过高速连拍获取一组曝光极短的图像帧,再利用算法将其对齐、合并、降噪,最终计算出一张远超任何单帧质量的、纯净且动态范围宽广的照片。

一个计算量巨大、有些过于理想的理论,经过归纳、提炼,以普通设备可承受的算力实现,最终落在亿万用户手中,十年前的呐喊,终于传来阵阵回音。

▲ 手持 Pixel 3 的 Marc Levoy

此后的主角,就是我们熟悉的 Pixel,以及那些声名显赫的功能——首先是 HDR+,它彻底改变了手机在复杂光线下的成像表现,通过多帧合成技术,在保留高光细节的同时,也清晰呈现了暗部层次;

紧接着是人像模式,它利用算法在单颗摄像头上实现了可媲美单反相机的背景虚化效果,这正是其降维实现理念的完美体现;而夜景模式更是将这一思想推向极致,它能将多达 15 帧、每帧长达 16 秒的曝光合成为一张明亮、清晰的夜景照片,其效果在当时的移动影像领域堪称一骑绝尘。

这些立足于多帧合成技术的功能,不仅让单摄的 Pixel 力压 iPhone、三星等双摄手机,赢得了年度最佳拍照手机等无数赞誉,也让计算摄影一词,成为移动影像的制胜法宝。

多年后,当已经加入 Adobe 的 Levoy 被问及计算摄影与艺术创作的关系时,他的理念清晰且坚决:

不存在所谓「直接的摄影」,现实世界的光线动态范围远超任何传感器所能记录的极限,人眼本身也是一个自适应的感光引擎,人们看到的景象已经过大脑的主观处理,所以任何数字成像系统都必须对记录的色彩和色调进行调整,且这些调整不可避免地带有主观性。

理念落到产品上,Levoy 也毫不讳言,甚至坦诚得令人惊讶,明言在好几年的时间里,Pixel 的影像也按照他理念和美学在打造 :

我喜欢卡拉瓦乔的画作,所以 Pixel 2 到 Pixel 4 的成像风格都偏向黑暗、高对比度。

▲ 卡拉瓦乔的作品《在 Emmaus 吃晚饭》

这种理念延伸到 Levoy 的整个职业生涯,一直到他离开 Google,转身进入 Adobe,我们依旧可以在 Project Indigo 上看到这种偏向暗调的风格,与 iPhone 原相机本身着重中间调与亮部的成像策略完全不一样。

当然,这一方面是审美上的偏好,另一方面也离不开算法的要求——Project Indigo 的现有方案是通过拍摄多张微微欠曝的照片,用于保留高光细节和色彩,然后再通过多帧合成降低暗部噪点,按照这个逻辑合成的照片,本身就偏向暗调一些。

讲到这里,有心人已经可以发现一个非常长期主义的彩蛋:无论从审美上,还是从技术上,Project Indigo 都可以视作 Pixel 的精神延续,更有意思的是,这令人惊艳的 app 目前只提供 iOS 版本。

这何尝不算一种 Google 正统在苹果呢?

别让算法站在照片上邀功

变化是唯一的不变,顺境从不永恒。

计算摄影,这个曾在早期代表科技与先进的词汇,在接下来的时间里,可谓是高开低走。

在 Pixel 推出以后,Google 相机成为了 Pixel 的原生相机,并在之后的时间里逐渐不再作为单独的 app 存在,适配难度直线上升;再加上国产手机「青出于蓝」地持续进步,逐渐吸引了大家的目光并得到认可,也分散了人们对 Google 相机的关注。

▲ 从经典的「镭射眼」Pixel 8 系列开始,Pixel Camera 开始系统集成

另一边,占据手机生态半壁江山的苹果则在 iPhone 11 系列中全面引入了 Deep Fusion 技术,同样使用多帧堆叠的技术,却毁誉参半。

至于没有 Deep Fusion 的 iPhone,虽然效果自然,但的确在画质上又吃了亏,最终在后续处理器更迭中被逐渐淘汰。

▲ 大家熟悉的 Deep Fusion 来了

自那之后,计算摄影这个词开始承受越来越多负面联想——照片涂抹感严重、锐化过度、画面割裂感强,这些令人不适的观感形容词,逐渐成为它的刻板标签。

事情的转变出现在今年,在 OPPO Find X8 Ultra 上,有一个号称为摄影师准备的「大师模式」,其成像风格相比主流计算摄影更加克制与柔和:有效压低了数码锐化所带来的割裂感,同时拥有较为自然的亮度曲线。

但有点遗憾的是,在追求观感和柔和的同时,大师模式的锐度没有保持住,物体边缘清晰度下降,画质稍微欠缺些扎实。

而 Project Indigo 的路线则更为激进,它一边追求压榨性能到极致、一口气合成数十张照片的算法,一边在成片上完全去掉计算的负面影响,让计算只留在过程,最终呈现出的是一张观感自然、亮度线性、锐度在线的照片。

可以说,这是目前我见过的,将算法与成片分隔得最好的影像 app。

归根到底,我们对计算摄影的质疑,其实来自于对照片中那种明显的「被加工痕迹」的厌恶。

没错,算法的确很重要,算法也的确很努力,但人们想得到的,仅仅只是 Marc Levoy 口中那张不需要任何专业器材辅助,只需要经过计算,就能效果出乎意料的,普通的好照片。

而不是一张算法跃然纸上的邀功状。

让我有个美满旅程

#欢迎关注爱范儿官方微信公众号:爱范儿(微信号:ifanr),更多精彩内容第一时间为您奉上。

爱范儿 | 原文链接 · 查看评论 · 新浪微博


Kyiv hit by barrage of drone strikes as Putin rejects Trump's truce bid

4 July 2025 at 15:12
DSNS An elderly woman and man with ambulances and smoke in the sky behind themDSNS
The latest Russian attack broke another record with 550 missiles raining down on Ukraine overnight

A pall of acrid smoke hung over Kyiv on Friday morning following a night of intensive Russian strikes that hit almost every district of the capital, according to Ukrainian authorities.

The hours of darkness were once again punctuated by the staccato of air defence guns, buzz of drones and large explosions. Ukraine said Russia had fired a record 550 drones and 11 missiles during a long night of bombardment.

The strikes came hours after a phone call between Donald Trump and Vladimir Putin, after which the US president said he was "disappointed" that Putin was not ready to end Russia's war against Ukraine.

A woman was killed in Russia following Ukrainian drone attacks, officials said.

The acting governor of the southern Rostov region said she had been killed in a strike on village not far from the Ukrainian border.

Russia's overnight air strikes broke another record, Ukraine's air force said, with 72 of the 550 drones penetrating air defences - up from a previous record of 537 launched last Saturday night.

Air raid alerts sounded for more than eight hours as several waves of attacks struck Kyiv, the "main target of the strikes", the air force said on the messaging app Telegram.

Ukraine's foreign minister condemned "one of the worst" nights in the capital and said "Moscow must be slapped with the toughest sanctions without delay".

"Absolutely horrible and sleepless night in Kyiv. One of the worst so far," wrote Andrii Sybiha on X.

Noting that it came directly after Putin's call with Trump, Sybiha added that "[Putin] does it on purpose" and "clearly shows his disregard for the United States and everyone who has called for an end to the war".

Footage shared on social media by Ukraine's state emergency service showed firefighters battling to extinguish fires in Kyiv after Russia's large-scale overnight attack.

At least 23 people were wounded in the attacks on Kyiv, according to Ukrainian authorities, with railway infrastructure damaged and buildings and cars set ablaze across the capital.

Friday's attacks were the latest in a string of major Russian air strikes on Ukraine that have intensified in recent weeks as ceasefire talks have largely stalled.

War in Ukraine has been raging for more than three years since Russia launched its full-scale invasion in February 2022.

Following his conversation with Putin on Thursday, Trump said that "no progress" to end the fighting had been made.

"I'm very disappointed with the conversation I had today with President Putin, because I don't think he's there, and I'm very disappointed," Trump said.

"I'm just saying I don't think he's looking to stop, and that's too bad."

The Kremlin reiterated that it would continue to seek to remove "the root causes of the war in Ukraine". Putin has sought to return Ukraine to Russia's sphere of influence and said last week that "the whole of Ukraine is ours".

Meanwhile, Ukrainian President Volodymyr Zelensky said that he hoped to speak to Trump on Thursday about the supply of US weapons after a decision in Washington to halt some shipments of critical weapons to Ukraine.

Kyiv has warned that the move would impede its ability to defend Ukraine against escalating airstrikes and Russian advances on the frontlines.

Speaking to reporters, Trump said "we're giving weapons" and "we haven't" completely paused the flow of weapons. He blamed former President Joe Biden for sending "so many weapons to Ukraine that it risked weakening US defences".

Sport agent Jonathan Barnett accused of rape in US lawsuit

4 July 2025 at 16:12
Adam Fradgley - AMA/West Bromwich Albion FC via Getty Images Barnett with thinning white hair, wearing darkened glasses, a dark overcoat, white shirt and blue tie, stands in front of a microphone in 2018. Adam Fradgley - AMA/West Bromwich Albion FC via Getty Images
Barnett denies the woman's allegations that he kept her as a "sex slave"

High-profile British sports agent Jonathan Barnett has been accused of raping a woman more than 39 times, in a US lawsuit.

In a civil complaint lodged at a US district court in Los Angeles, the unnamed woman, referred to as "Jane Doe", says Mr Barnett "trafficked" her from Australia to the UK in 2017, "tortured" and kept her as a "sex slave" over a six year period.

She says Mr Barnett made "repeated threats to her life and the lives of her minor children".

The 75-year-old known for representing leading footballers including Gareth Bale and Jack Grealish, says the charges "have no basis in reality and are untrue".

"We will vigorously defend this lawsuit through the appropriate legal process. I am looking forward to being entirely vindicated and exonerated," a statement from his lawyers said.

Mr Barnett was ranked as the world's most powerful sports agent in 2019 by Forbes magazine.

The civil case was filed on Wednesday.

According to court documents, the pair first met in the 1990s through a professional athlete in London and reconnected online and then in person in 2017.

Within a matter of weeks she relocated to the UK with her teenage children - with sports agency CAA Stellar, headed by Mr Barnett, covering moving expenses.

The filing says that upon her arrival, he told her he "owned" her and raped her in a hotel room.

Mr Barnett went on to impose strict rules to obey him at all times, referring to him as "My Master" and to "never say it hurts", according to the lawsuit.

The complaint goes on to describe alleged degrading acts that included drinking urine or ingesting faeces.

The alleged torture also included the woman "tied up overnight without food or water".

She says she was "trafficked, threatened, tortured, and held" in bondage in different locations throughout the world, including Los Angeles, from 2017 to 2023.

"Realising she was powerless against a dangerous predator, Ms Doe submitted to Barnett in order to avoid being severely beaten or even killed," the lawsuit said.

"Jane Doe" is also suing Hollywood talent firm Creative Artists Agency and sports agency CAA Stellar, where Mr Barnett was executive chairman until his retirement last year.

The court documents state the CAA Stellar's parent companies, talent agencies ICM and CAA, "failed to find and/or willfully or recklessly disregarded" that substantial payments were made between 2017 and 2023, despite the woman not being an athlete or agent.

It is claimed Barnett referred to her as "slave" in emails sent from his work account.

Court documents say Mr Barnett used his "money and power to maintain coercive control" over the woman who was "in fear of her life and the lives of her children".

Lawyers for "Jane Doe" state the case is about "institutional abuse at the highest level".

They are seeking compensation on her behalf.

According to LA Times, CAA said it first heard of the woman's allegations last year when her lawyers made settlement demands - and the press inquired.

"While the complaint attempts to connect these allegations to CAA's business, Ms Doe has never been an employee, consultant, or contractor of CAA, ICM, or Stellar, nor has she ever had any business connection to CAA, ICM, or Stellar," CAA said in its statement.

"CAA takes any allegations of this nature seriously, and through counsel, promptly urged Ms Doe to contact law enforcement in the United Kingdom."

Trump gets major win now - but it comes with risks down the road

4 July 2025 at 03:09
Anthony Zurcher: Passage of megabill is big win for Trump

Donald Trump has his first major legislative victory of his second presidential term.

The "big, beautiful bill", as he calls it, is a sprawling package that includes many key pieces of his agenda – delivering on promises he made on the campaign trail.

It also, however, contains the seeds of political peril for the president and his party.

That Trump and his team were able to shepherd the legislation through Congress despite narrow majorities in both the House of Representatives and the Senate is no small achievement.

His success required him and his allies to win over budget hawks within his Republican Party who were intent on slashing government spending, as well as centrists who were wary of cuts to social programmes.

When this congressional session started in January, there were doubts about whether House Republicans could even agree to return Congressman Mike Johnson to the speaker's chair, let alone agree on major pieces of legislation.

Agree they did, however – as did Republicans in the Senate, a notoriously unwieldy chamber.

Reuters US President Donald Trump holds a fist in the airReuters

The spending package approved by lawmakers directs about $150bn (£110bn) in new spending for border security, detention centres and immigration enforcement officers. Another $150bn is allocated for military expenditures, including the president's "gold dome" missile defence programme.

The really big numbers, however, are in the tax cuts in this legislation. They amount to more than $4.5tn over 10 years.

Some of these are cuts that were first enacted in Trump's first term, and were set to expire before the bill makes them permanent. Others, like ending taxes on tips and overtime, where 2024 campaign promises that are implemented by will end in 2028.

All this adds up to massive new debt for the US. The White House contends that the tax cuts will spur economic growth that will generate sufficient new revenue, when taken alongside tariff collections.

But outside projections suggest that this legislation will add more than $3tn in new US debt.

A pair of bar charts compare the estimated increases and savings in US federal spending from Trump's budget bill. The first bar chart shows the cumulative cost increases over 10 years. It highlights tax-cut extensions (worth $4.5tn), defence (worth $150bn) and borders (worth $129bn). The bar representing tax-cut extensions is much longer than any of the bars on the bar chart that shows total savings. This second bar chart highlights Medicaid (worth $930bn in savings), green energy (worth $488bn) and food benefits (worth $287bn)

As critics like Republican Senator Rand Paul of Kentucky have pointed out, the legislation raises the amount of new debt the federal government can issue by $5tn – a step that would not be necessary if the White House truly believed their budget projections.

Paul and others like tech multibillionaire Elon Musk have warned that this massive amount of debt will be growing burden on the federal government, as interest payments crowd out other spending and drive up interest rates. A fiscal reckoning is coming, they warn.

Another senator who voted against the legislation, Thom Tillis of North Carolina, had a different warning for Trump and his party. In a fiery speech on the floor of the chamber, he accused the president of breaking a promise to those who supported him - citing the bill's cuts worth approximately $1tn to Medicaid, a government-run health insurance programme for low-income Americans.

"Republicans are about to make a mistake on healthcare and betray a promise," he said, declaring that more than 660,000 people in North Carolina would be "pushed off" Medicaid.

Watch: Trump reacts to the Senate narrowly passing his "big, beautiful" bill

A year after Trump made inroads with working-class Americans, including minority voters who traditionally have supported opposing Democrats, his legislation will cause nearly 12 million Americans to lose Medicaid coverage in the next 10 years, according to the non-partisan Congressional Budget Office.

Democrats are already preparing an onslaught of attacks against Republicans for what they say is legislation that cuts social service in order to provide tax cuts to wealthier Americans.

Although those cuts won't come into effect until after next year's congressional midterm elections, Democrats will try to remind American voters of the consequences the decisions Republicans made over the past few weeks.

Trump is preparing what should be a celebratory bill signing ceremony on 4 July - American Independence Day - and will tout his ability to govern not just through executive order, but also through enacting new law.

But the fight to define the benefits – and consequences – of this bill is just beginning.

Katy Perry and Orlando Bloom confirm split

4 July 2025 at 14:04
Reuters Katy Perry with Orlando Bloom at the Vanity Fair Oscars party. She is wearing a shoulderless silver dress, while he is wearing a traditional black and white tuxedo. Reuters
Katy Perry and Orlando Bloom have been romantically linked since 2016

Pop star Katy Perry and actor Orlando Bloom have officially confirmed they have split, US media outlets say, six years after getting engaged.

The couple have been romantically linked since 2016 and have a four-year-old daughter.

A joint statement said "representatives have confirmed that Orlando and Katy have been shifting their relationship over the past many months to focus on co-parenting," according to outlets including People magazine and USA Today.

"They will continue to be seen together as a family, as their shared priority is - and always will be - raising their daughter with love, stability and mutual respect."

The statement was being released due to the "abundance of recent interest and conversation" surrounding their relationship, it added.

The pop star, 40, and the 48-year-old actor split in 2017 but got back together shortly afterwards. They got engaged on Valentine's Day in 2019.

A year later Perry revealed she was pregnant in the music video for her single Never Worn White.

Their daughter Daisy Dove was born later that year, with Unicef announcing the news on its Instagram account. Both Perry and Bloom are goodwill ambassadors for the United Nations agency that helps children.

US singer Perry, who was previously married to Russell Brand, shot to fame in 2008 with the single I Kissed A Girl, which reached number one in the UK.

Her hits since then have included Roar, California Gurls, Firework and Never Really Over.

Bloom was previously married to Australian model Miranda Kerr, and they have a son, 14-year-old Flynn.

The British actor has starred in Pirates Of The Caribbean, The Lord of the Rings and The Hobbit.

Roadblocks replace rallies as Serbian protesters demand new elections

4 July 2025 at 14:32
Getty Images A woman in a white top and green trousers stands in front of riot police dressed in blackGetty Images

As Serbia's anti-corruption protests enter their ninth month, they show no sign of abating – and are instead changing in their leadership, composition and tactics.

At the climax of last weekend's 140,000-strong protest in Belgrade's Slavija Square the students who led the protests since November declared that they would no longer spearhead the rallies.

They had set a deadline of Saturday for the government to call for fresh elections.

When that was not met, they invited other groups to take on the protest mantle - and called for a campaign of "civil disobedience" from anyone opposed to the leadership of President Aleksandar Vucic and his long-governing Progressive Party (SNS).

Since then roadblocks have been popping up in cities across Serbia this week and people have been deploying dustbins, chairs and other improvised barriers to block junctions in major cities including Belgrade, Novi Sad and Nis. Local residents' associations - known as "citizens' assemblies" - have been heavily involved.

As soon as the police dismantle one blockade, another one pops up somewhere else.

Police crackdown triggers backlash

In recent days there have been dozens of arrests – along with complaints of excessive police force. A number of students were treated in hospital – one with a broken collarbone – after Gendarmerie members entered Belgrade University's Law Faculty on Wednesday.

Officers also arrested high school students, triggering a protest by parents in front of a central Belgrade police station until their children were released.

A striking range of voices have condemned the police conduct. Complaints by the journalists' association and the opposition Centre Party were matched by statements from the Bar Association and even Serbian Orthodox Church Archbishop Grigorije Duric. The EU, for its part, decried the "acts of hatred and violence" and called for calm.

Meanwhile, in Belgrade, the pop-up roadblocks continue – and so does the ensuing travel chaos for commuters.

One resident, while ruefully noting that she had to walk 5km (3 miles) to and from work, described the mood as more like a series of street parties than a protest.

But many observers doubt whether this approach will be any more effective than the months of rallies, faculty blockades and half-hearted general strikes.

The 2024 Novi Sad railway disaster

The protest movement started with a relatively simple purpose: to ensure accountability for last November's disaster at Novi Sad railway station, when a concrete canopy at the recently renovated facility in Serbia's second city collapsed, killing 16 people who were standing beneath it.

The outpouring of grief was instant – and the outrage swiftly followed.

Much of it has been directed at President Vucic.

A large section of Serbians have long been uneasy with his "strongman" style of leadership, since he came to power in 2012. But others have accepted his party's firm grip on state institutions and much of the media as a trade-off for strong economic growth and improvements in infrastructure.

The station disaster shattered that tacit agreement.

"We are all under the canopy" was one slogan frequently seen on banners in the early days of the protests. Others included "blood on your hands" and "corruption kills".

University students took leadership of the movement, demanding full transparency about the railway station project and the prosecution of those responsible for the disaster.

Months of protests eventually forced the resignation of Milos Vucevic as prime minister. But he was simply replaced by another Vucic appointee, Djuro Macut – and the protest movement has otherwise achieved little in terms of concrete results.

Getty Images A smashed window of the Serbian Progressive Party (SNS) office in Novi SadGetty Images
A smashed window of the Serbian Progressive Party (SNS) office in Novi Sad during this week's protests

No end in sight for protest movement

Still, the protests have now brought hundreds of thousands out into the streets and are galvanising large sections of society.

One opposition leader, Srdjan Milivojevic of the centre-left Democratic Party, compared the moment to the early 2000s, when the student-led protests against the notorious President Slobodan Milosevic "became a people's movement".

Then, a coalition of interest groups stood firm against Milosevic's attempts to manipulate the result of the September 2000 presidential election. Mass protests forced the president's resignation the following month and ushered in democracy in Serbia for the first time.

But despite efforts to invoke the "spirit of 5 October", the current situation is different. President Vucic and his party remain in a relatively comfortable position, with polls indicating that the SNS remains the most popular party.

In the aftermath of the last, big student-led rally, Mr Vucic declared that "Serbia won" in the face of an attempt to "overthrow the state".

The people blocking the roads in Serbia's cities view it differently. They are asking for change through the ballot box – even if it is far from clear who would run against the SNS. And the president insists there will be no elections before December next year.

So now it is perhaps a question of which side blinks first. And with temperatures already pushing towards 40C, it could be a simmering summer in more ways than one.

专访 Nothing 设计总监 Adam Bates:手机行业有一些共识,但我们并不在乎

By: 刘学文
4 July 2025 at 17:04

Nothing 手机并不在中国大陆地区进行销售,但它在这里仍然有不少的拥趸。大概是因为市面上已经有很多做工精湛、工艺良善的手机,也有很多性能强劲、影像出色的手机,但说到「酷」,Nothing 手机是行业里的独一份。

当手机正面都几乎一致,背面设计被「方」和「圆」两种元素统治的时候,Nothing 手机不光是能让人在机海里一眼认出,更能让人眼前一亮。

这里的「亮」是个双关,除了设计出色且出位之外,灯光效果亦是 Nothing 手机的设计重点。

▲ Nothing 设计总监 Adam Bates

Glyph 2.0 不是屏幕,是 Nothing 关于「创造力」的自留地

与 Nothing 设计总监 Adam Bates 沟通的第一个问题其实显得不太友好,对于多数看到 Nothing Phone (3) 的人来说,自然会注意到手机背部的那一块圆形的「屏幕」,但在我的印象里,前后双屏手机的销量都不算好,同时,双屏设计也没有延续下去的例子,诸如魅族 Pro 7 系列,vivo NEX 双屏版,以及小米 11 Ultra 等等。

为什么 Nothing 明知有前车之鉴的情况下,还要采用这样的设计呢?

Adam Bates 说:

我对你说的这些产品没有获得积极的市场反响一点儿也不惊讶,我们觉得这些手机没什么意思。

 

 

还有一点必须要说的是,我们不把自己和这些手机归为一类,我们不认为那是个屏幕,准确来说,那是一个 LED 灯光阵列。

 

这是 Glyph 2.0,之前的 Glyph 光效界面是以几个灯带形式,分散在 Nothing 手机背部,这次我们把灯效集中到了手机的一个区域,所以我们并不认为我们做了一个屏幕。

 

我们创造了一个灯效界面,并且它会随着 Nothing Phone (3) 面世而获得发展,因为 Nothing 社区的用户会基于这个 Glyph 2.0 界面来开发创建属于他们自己的「玩具」,有用户的参与,这个事情就会变得更有趣。

辩论这块圆形的 LED 灯光阵列是不是「屏幕」意义并不大,我们关心的事情其实和 Adam Bates 一样,就是这个东西是否有趣。

▲从左至右分别是 Phone (1)、Phone (2)、Phone (3) 的 Glyph 灯光效果, 图片来自:Design Milk

Glyph 1.0 时代,灯效跟随手机背部的灯带,以及用户设置而变化,用户可以根据灯效判断是否有重要来电,重要通知等信息。

Nothing 对于这个 Glyph 的定义是,「酷」且有用,并且不必要让人时时刻刻盯着屏幕。

Glyph 2.0 更酷更好玩,也更有用,并且一定程度上可以取代屏幕,当然前提是你不把它当作屏幕。

酷是显而易见的,相比于像素精细的 OLED 或者 LCD 材质屏幕而言,LED 灯珠构成的点阵更具有前智能时代的「数码感」,它像电子宠物机,或者俄罗斯方块,经历时代跃迁,这种怀旧的感觉反而衍生出了新鲜感。

Adam Bates 给我们介绍了 Glyph 2.0 的更多玩法:

LED 灯光阵列给我们提供了机会去做更图形化的事情,比如这里可以是个指南针,如果你想要个时钟,那这儿也可以有个时钟。我们还可以用它玩「转瓶子」的小游戏,来决定谁去买点饮料,或者做点什么事儿。

 

这里还有电量显示,秒表,以及很多很多这样有趣的小玩意儿,比如显示太阳此刻在天空的位置,以及日出和日落的时间等等。

 

Glyph 2.0 的灯效阵列想让各种灯光效果看起来统一且系统,但仍是 Glyph 一直以来的感觉。

在这个 Glyph 2.0 的基础上,Nothing 开发了一个 AIGC 技术:根据通讯录里的姓名,生成独一无二的专属的 Glyph 铃声与灯效。 Adam Bates 认为,在不需要翻转手机的情况下,用户就能根据铃声和灯效获取基本信息,从而避免过度的手机信息干扰。

Nothing 和 Android 系统的关系相当密切,Google 投资了他们,他们还收购了智能手机初创公司 Essential,不过 Nothing Phone (3) 上的 Glyph 2.0 界面更像是 Nothing 的一块自留地,它在形态和气质上区隔于 Android 系统,然后开源给 Nothing 社区的用户,让用户为 Glyph 2.0 开发更多的第三方玩法。

Adam Bates 说:

Nothing 的用户社区能让 Glyph 2.0 朝我们无法预测的方向生长。

除了灯效阵列带来的视觉,Glyph 铃声带来的听觉之外,Nothing Phone (3) 背部还有一小块按钮具有压力敏感属性,能够为 Glyph2.0 界面提供带有触感的交互。

综合起来,这就构成了 Adam Bates 和 Nothing 的真正想法:尝试创建一个新的界面和一种与技术互动的新方式,让用户自己去定义,甚至是去开发。

一切都关乎「创造力」,在智能手机行业里体量并不大的 Nothing 筛选出了有创造力和好奇心的用户群体,反过来,Nothing 也提供了这个小小舞台给这群用户来自由发挥。

手机行业有一些共识,但 Nothing 并不在乎

智能手机出现的时间太久了,以至于几年前 Nothing 进入到这个行业的时候,看好的人并不多,因为一个正处于成熟期的行业并非创业者的好选择。

当我们以商业的视角去看那些在智能手机行业激烈竞争中活下来的企业时,总会分析出一些行业共识出来,然后得出他们是尊重了行业共识所以成功的结论。

比如手机设计的趋同化就是一个行业共识,对于中国市场来说,手机要么像 iPhone,要么像华为 Mate 系列就是最具卖相的,实在不行也可以像三星 Galaxy S 系列。

Nothing Phone 自始至终都不像任何一家品牌的任何一款手机。

比如说 Nothing Phone (3) 的背部摄像头分布完全不规则,不守规矩,也不成方圆,为什么会这样?

Adam Bates 告诉爱范儿:

我当然明白大家设计越来越像的原因,不过我们是从工程的角度去思考设计问题的。作为工程师,我们思考的是如何以最佳的方式安排这些组件,从而获得最好的性能。

 

我们的出发点不是试图去复制苹果三星或者华为,所以最终我们做出了不一样的东西。

 

这几家公司有自己严格的设计准则去排布摄像头,这产生了他们产品的辨识度和消费者认知,但我们不会跟随他们,我们只是想要创造我们能力范围内最好的产品。

 

所以,我们完全不害怕偏离那些巨头品牌的做法。

「工程(engineering)」对于 Nothing 以及 Adam Bates 来说有些特别的意义。

Adam Bates 之前在戴森工作,许多知名的产品出自他的手笔,比如戴森 Supersonic 吹风机和无线吸尘器等等,戴森在业界便是以工程能力和设计水平相得益彰而出名。而 Teenager Engineering 则是以一家公司的身份,成为了 Nothing 的联合创始人,并且主导了 Nothing 第一款手机的设计,还奠定了 Nothing 产品的整体的设计风格。

以上,或许就是 Nothing 可以免于流俗,无视行业共识的底气所在。

比如行业还有个共识,就是塑料材质属于中低端手机才会用的材质,高端手机必须用玻璃和金属,所以哪一款平价手机要是用了金属边框玻璃背板,那便是发布会上值得说一嘴的存在。

Adam Bates 并不认为材质应该分高下:

我们对待材质的方式很简单,那就是在特定场景用最合适的材质。

 

比如说我们 Ear(a)耳机的设计,它的充电盒像一个透明泡泡,这个时候,使用透明塑料就非常好,这个时候塑料轻便又耐用,也不需要任何涂层,还方便塑形。

 

在 Nothing Phone (3) 的中框上,我们就用了铝合金,因为铝合金兼具了轻巧和兼顾。

 

我们很注意这样让材质出现在最适合的地方,并且,我们非常确信,只要我们坚持这么做,那么就不会担心产品看起来高端或者不高端,因为只要你用好了材质,产品质感就不言自明。

Adam Bates 还介绍了 Ear (a)上一个塑料可能胜于玻璃的小细节:在它的充电盒上盖内侧,有两个圆形凸起用来固定耳机,想要在玻璃上打磨出这样的凸起极为困难,但在塑料身上却是轻而易举。

当然,Adam Bates 这段话只说了 Nothing 材质哲学的一半:前一半是不同场景用不同材质,后一半是不同材质需要有不同的生产制造工艺。

比如透明设计是 Nothing 的招牌设计语言,但为了为了塑料具有更高的透光度,更好的耐磨性,以及更不易老化变黄,Nothing 也付出了更高的工艺成本。

我和 Adam Bates 关于反行业共识的共鸣在于如何看待手机这样的产品。

现在多数手机和 app 在产品定义的时候,出发点仿佛是「制造一个没有出口的迷宫」,想要尽可能地让用户在手机上多花时间、精力以及金钱。

优雅一点儿地说,就是提高「用户黏性」。

前面在讨论 Glyph 2.0 的时候,Adam Bates 就已经提及了设计这个界面的一个初衷:用户不必翻转手机,也能从 Glyph 2.0 界面上获得信息。

Nothing 并不想这样提高用户的黏性,Glyph 2.0 增加的 LED 灯效阵列,以及压力触感交互,实际上导向了一个产品哲思:手机和用户之间,谁是主体,谁是客体?

当我们一天盯着手机屏幕超过 8 小时,在短视频应用上不断上滑,沉醉于无尽的信息流之中,看似我们是交互的主体,但实际上很多操作并非主动,而是被设计和引导好的。

Adam Bates 希望用户在使用 Nothing 手机,尤其是和 Glyph 2.0 界面交互的时候,获得简单且愉快的体验:

我们设计 Glyph 的初衷就是想用更简洁的信息呈现事物。如果你能在手机背面看到来电,或者看到一些像通知这样的基本信息,也许你就不需要陷入手机、邮件、TikTok 等等所有这些应用的世界了。

 

我认为面对科技产品时,用户应该更有主动权和愉悦感,这就是 Nothing 试图做的事情,即在人与技术之间建立积极的关系。

「我们做了一个头戴式耳机,因为我们自己也需要它」

单纯把 Nothing 称为手机厂商或许有点偏颇,因为在他们在音频产品线上的丰富程度,不仅不输自家手机,也不输其他任何一家手机厂商的耳机线。

这次和 Nothing Phone (3) 一起发布的产品,还有一款 Nothing Headphone (1),一款旗舰头戴式耳机。

以手机厂商对于市占率和 ROI 的追求来看,做头戴式耳机不是一个好选择,因为 TWS 耳机才是市场主流,曾经尝试过头戴式耳机的华米 OV 如今并不再更新,主流手机品牌里,只有苹果的 AirPods Max 头戴式耳机仍在售。

为什么 Nothing 要做一个头戴式耳机呢?

Adam Bates 给了作为设计师角度的答案:

我们一直对音频内容感兴趣,我们的员工喜欢听音乐、播客、书籍和广播,当然看视频也需要耳机。

 

作为一个很有想法的科技公司,踏入到音频领域,做一款头戴式耳机似乎是很自然而然的一步,并且,我们真的认为我们可以给头戴式耳机领域带来一些有趣的,有价值的东西。

 

并且,我们做到了。

按照很惯性的思维,Adam Bates 提到的「有趣的东西」,应该也是给耳机装上 LED 灯效阵列,让耳机能发光能显示,再带一些交互。

但事实就是,Nothing 在 Nothing Headphone (1)上延续了透明、工程化的设计风格,不过没有任何灯光效果。

还有个问题就是,Adam Bates 说的「有价值」的东西是什么?

以及,为什么 Nothing Headphone (1) 是这个样子的?它用到了耳机设计里并不常见的圆角矩形形状,以及两个平面构成的阶梯状结构,而市面上主流的耳机线条和形状都是柔和的圆形或者椭圆形。

对于消费电子产品来说,工业设计不仅仅关乎机器外观,更关乎人机交互。明白了这一点,就明白了 Nothing Headphone (1) 的所有疑问。

Adam Bates 解释了 Nothing Headphone (1) 为什么会长这样,以及为什么没有灯光效果:

我们研究过很多友商的耳机,做成椭圆形主要是为了从侧面看起来小巧,我们则认为,从正面看上去「薄」也非常重要,所以我们决定把所有元器件分散处理排布,而不是垂直堆叠在水平方向,这样就可以塑造出正面看上去最薄的轮廓。

 

至于为什么没有灯效,因为对于我们来说,Glyph 不是一种表面装饰元素,它是手机上的新的交互界面和方式,你用手机的时候可以看到它,但你戴耳机的时候,你看不到耳机,所以耳机上的灯效元素没法给任何的信息反馈。

 

耳机的交互方式是实体的,关于触觉和听觉的。

负责 Nothing Headphone (1) 的设计师 Frank Lin 进一步解释了耳机外观设计和交互方式之间的关系:

采用矩形和平面的元素好处在于,我们可以在耳机上添加具有差异化的控制按钮。我们设计这款耳机最重要的出发点就是让用户可以方便地用实体按键和旋钮完全掌控音频内容。

 

矩形和平面的形状意味着按钮更容易被布置,定位,触及和操控。因为当你戴着耳机的时候,你的视觉不起作用,抬手就能轻松分辨每个东西的位置就显得非常重要。

Nothing Headphone (1) 有 3 个主要按钮:一个滚轮用来控制音量,一个拨片用来切歌,还有按键用来切换音频源(比如从 Spotify 听歌切到 Audible 上听书,无需拿出手机操作)。

这就为什么说工业设计师不仅要处理产品外观,更要处理人机交互,很明显,滚轮操控音量,拨片切歌是一种符合直觉的交互方式,用户触碰到按钮就知道该怎么操作,无需做「确认」的多余动作。

不少耳机采用全按键设计,比如用其中两个按键来控制音量,用户需要先确认按键的上下关系才能进一步操作增减音量。

当整个消费电子行业,尤其是手机行业,甚至是汽车行业都朝着「如无必要,勿增实体,如有需要,做个软件」的方向奔去的时候,「实体」的概念有些式微了,屏幕和图标带着触控与语音交互席卷一切。

当我问 Adam Bates 为什么在苹果和华为都浅尝压力敏感交互方式(3D Touch)又放弃之后仍然在 Nothing 背后的一小块区域做触感尝试时,他的回答或许是整个采访中最提纲挈领的:

We don’t set out to make things easy. We set out to make the best things we can.

 

我们的目标不是让事情变简单,而是创造我们所能做到的最好产品。

稳中向好。

#欢迎关注爱范儿官方微信公众号:爱范儿(微信号:ifanr),更多精彩内容第一时间为您奉上。

爱范儿 | 原文链接 · 查看评论 · 新浪微博


Lessons from his father

4 July 2025 at 16:54

In this review for the New York Review of Books, I look at two new state-of-the-art biographies of Chinese Communist Party leaders: the former party secretary, Hu Yaobang, whose firing and death led to the 1989 Tiananmen Square democracy movement, and Xi Zhongxun, father of the current leader of China. 

These two books are outstanding for their use of Chinese sources and depth of research. Hu was the most consequential leader but Xi Zhongxun is probably more important due to his son. Through their family life we gain new understanding of how Xi Jinping was raised and clues to how he rules China today. I strongly recommend both. 

The post Lessons from his father appeared first on Ian Johnson.

The nation’s cartoonists on the week in politics

4 July 2025 at 17:00
Every week political cartoonists throughout the country and across the political spectrum apply their ink-stained skills to capture the foibles, memes, hypocrisies and other head-slapping events in the world of politics. The fruits of these labors are hundreds of cartoons that entertain and enrage readers of all political stripes. Here's an offering of the best of this week's crop, picked fresh off the Toonosphere. Edited by Matt Wuerker.

Is This Really How We’re Legislating Now?

4 July 2025 at 17:01
Congress is no longer in the business of thoughtful legislating. Its role has been reduced to putting political points on the board for the president.

© Mark Peterson for The New York Times

Mike Johnson after being re-elected as speaker in January.

三大基础运营商行业短信引流内容模板申报都来了

4 July 2025 at 14:10
mytsing520: 执行时间
中国电信:2025 年 5 月 30 日,部分省份 5 月 20 日起执行
中国联通:2025 年 6 月 30 日
中国移动:2025 年 7 月 10 日

执行标准
检查行业短信内容中是否存在引流信息,在未经报备的情况下,发送引流信息将被运营商侧短信网关无差别拦截。
引流信息包括:链接、电话号码。
然而,在提交报备的情况下,依然有可能触发运营商管控拦截。

内容规则
1.未报备的内容模板:不得出现引流信息(链接、电话号码)。
2.提交报备的内容模板:一个短信子端口只能报备一个内容模板、2 个电话号码和 1 个主域名,主域名须已完成 ICP 备案,且备案信息与子端口主体资质一致。
3.要客(党政军卫教、金融机构、公益民生类)可经申报办理免限制。

审批规则
提交的申报由各运营商省公司分别审批。

法律法规依据
《通信短信息服务管理规定》

gemini-cli 费用问题

By: fredcc
4 July 2025 at 14:05
fredcc: 可能有朋友试用了最近很火的 gemini-cli ,确实很聪明,还号称免费。但随着用户增多,可能提问两三次就弹出如下提示变成 gemini-2.5-flash 这种笨蛋模型了。



这时按提示 upgrade to Standard tier 有用么,实测 gemini-code-assist 订阅与账号登录方式下的 gemini-cli 无关,不会改变只能用 flash 模型的结果



那么尝试 Gemini API Key 登录如何呢,在 https://aistudio.google.com 很方便的可以创建一个 API Key ,登录后也不会提示变成 flash 模型。
但是免费额度用完后,就是 Pay & GO 模式,按调用数量计费,价格见 https://ai.google.dev/gemini-api/docs/pricing?hl=zh-cn

总结:
谷歌目前的 Google AI Pro 订阅产品,gemini-code-assist 订阅产品,和 Gemini API 按量付费产品各自独立。然后 gemini-cli 产品与前三个又独立。免费额度现在被后台限制到不知道多少了,如果使用 API 模式。。项目 issue 里有好几个破产的老哥

相关 issue
https://github.com/google-gemini/gemini-cli/issues/3154
https://github.com/google-gemini/gemini-cli/issues/2896
https://github.com/google-gemini/gemini-cli/issues/2711

育儿补贴 3 岁前 每年 3600 你会生吗

4 July 2025 at 14:05
lervard358:
7 月 3 日,据中共中央办公厅、国务院办公厅,《育儿补贴制度实施方案》公布,自 1 月 1 日起,对 3 岁以下婴幼儿发放生育补贴。根据补贴标准,国家基础补贴为每孩每年 3600 元按年发放。2025 年 1 月 1 日前出生且未满 3 周岁的婴幼儿,按剩余月数折算发放。育儿补贴免征个人所得税,且在低保、特困等救助认定时不计入家庭收入。通过统一的育儿补贴信息管理系统或线下渠道,父母或监护人可向婴幼儿户籍所在社区申请。申请时需提供出生证明、户口簿等材料,经审核确认后发放。

如何在 M 系列的 Mac 上使用 x86 docker image 内的 lldb 调试容器内的 cpp 程序?

By: Abmcar
4 July 2025 at 13:55
Abmcar:

我在 M 系列的 Mac 上,尝试通过 Docker 运行 x86_64 (amd64) 架构的 Linux 镜像,并在容器内用 LLDB 对程序进行调试。发现无论怎么配置(比如加上 --privileged 、--cap-add=SYS_PTRACE 、--security-opt seccomp=unconfined ),LLDB 都不可用,报错结果为

error: 'A' packet returned an error: -1 

但是如果换成 aarch 的镜像就没有问题,可以正常使用 lldb ,有没有大佬知道是怎么回事?

测试用的 dockerfile

FROM --platform=linux/arm64 ubuntu:22.04
RUN apt update && apt install -y lldb clang
COPY hello.c /hello.c
RUN clang -g -o /hello /hello.c
CMD ["/bin/bash"]

FROM --platform=linux/amd64 ubuntu:22.04
RUN apt update && apt install -y lldb clang
COPY hello.c /hello.c
RUN clang -g -o /hello /hello.c
CMD ["/bin/bash"]
❌
❌