Shopify went back to native. I think the bigger shift is formal verification
- ID: 301bc047
- 原文链接: https://martinalderson.com/posts/shopify-native-formal-verification/
- 作者: Martin Alderson
- 日期: 2026-10-07
- 分类: coding
- 来源类型: article
- 标签: formal-verification, dafny, native-apps, coding-agents, shopify
- 质量评分: 4/5
- 抓取时间: 2026-10-08T15:41:20Z
中文导读
Martin Alderson 认为 Shopify/Coinbase 从 React Native 切回 native 的主因不是性能:agents 已把写代码成本打下一半以上,双端 native 不再是资源问题,真正变贵的是『知道代码是对的』——review、test、trust,换更快的语言帮不上忙。他推断下一波 agent 红利属于形式化验证:agent 写 Dafny,SMT solver 证明行为后编译到 C#/Go,同时拿到性能与正确性;坦白的代价是 Dafny 证明很脆,且 agent 分不清『证明错了』和『solver 放弃了』。
为什么值得关注
一条少有人连起来讲的主线:native 回归和『软件可靠性升级』是同一件事,5 分钟能看清两者为何同时发生。
关键信息
- 背景:Shopify(shopify.engineering/back-to-native)与 Coinbase 先后从 React Native 切回 native
- 论据:agents 把写代码成本降 2x+,瓶颈移到 review/test/trust
- 方案:Dafny + SMT solver 证明,再编译到 C#/Go(Cedar 是 AWS 已在用的范式)
- 代价:Dafny 证明脆,重命名变量就可能让昨天的验证超时;agent 分不清证明错误与 solver 放弃
English Summary
Martin Alderson argues Shopify's and Coinbase's switch from React Native back to native is less about performance than it looks: agents have already cut the cost of writing code by 2x or more, so dual native codebases are no longer a resource problem - what got expensive is knowing the code is right (review, test, trust), which a faster language does not help with. He predicts formal verification is the next beneficiary: agents write Dafny, an SMT solver proves behavior, and it compiles to C#/Go for both performance and correctness - with the honest caveat that Dafny proofs are brittle and agents cannot tell 'my proof is wrong' from 'the solver gave up'.
原文节选
The social media discourse is ablaze with people porting apps from slower dynamic languages to faster statically compiled languages. And we've seen both Shopify and Coinbase start switching away from React Native back to native mobile apps. What's changed, and what's next for programming ecosystems? I think the answer is less about performance than it first looks.
Why did people use cross platform frameworks?
When modern smartphones first came out, there was an explosion in native app development. Cross platform web apps on smartphones were (and to be honest, still are in many respects) limited in terms of the features and quality of UX you could deliver to users.
This involved most companies having to build totally separate app codebases, one per platform. Typically you'd have a Swift (previously Objective-C) iOS app and a Java/Kotlin Android app.
For many teams, this is a huge headache. Not only do you require ~twice the resources, building everything twice, but coordinating feature releases and maintenance gets really tricky. For example, if you do a big backend migration, you need to coordinate it across two teams, in a totally different language ecosystem. Typically one app - usually iOS - would get more attention than the other, too, with wildly diverging feature sets.
As such, there was an explosion of cross platform mobile app frameworks, with React Native becoming the most popular, though it's important to mention other ones like Flutter and Xamarin (which was rebuilt as .NET MAUI, and lost nearly all the traction it had during the post acquisition migration).
These allowed you to (mostly) write your app once, and the framework would do the job of translating it to the platform below. In general, they worked quite well, but did have performance issues (especially React Native[\[1\]](#fn1)) and a huge swath of framework bugs which were often painful to work around.
As such, many companies migrated to these frameworks. But now we see the migration being undone with the advent of coding agents.
Agents translate between platforms
As coding agents have got better and better, it's become obvious that _writing_ code is nowhere near as time consuming as it used to be. So the main objection to writing native apps - resourcing requirements - has collapsed. You can even just have one 'primary' platform and have the agent autonomously port each change to the 'secondary' platform, which works surprisingly well on more capable models.
I'd argue it isn't completely solved, given you still want to test and ensure your features are well designed for both platforms. But cross platform frameworks didn't really solve that before, and arguably agents can do a far better job of translating your requirements to each platform than a cross platform framework like React Native can.
And obviously this gives big improvements in performance of the app, plus often better access to underlying platform features (which can lag support in React Native et al).
But maybe it's not just about performance
I thought at first that really it was going to be quite clear that all software gets written in the most performant language, as advocated by DHH's
Obsidian Notes
- 内容由 martinalderson.com(opencli web read 抓取全文) 生成(opencli-first 成功)。
- 中文导读与价值判断锚定在原文全文与当日 AK-RSS 摘要上;节选仅保留正文文字。