Rust 用户 Rik Arends 表示新 MacBook Air 让编译 Rust 变得像写脚本语言一样轻松

2020-11-17 15:53:18 +08:00
 zckevin
Rik Arends,Rust 用户,在线多人协作 IDE Makepad 作者
https://twitter.com/rikarends
https://github.com/makepad/makepad
https://makepad.dev/

Makepad on apple M1: had to add the target in Cargo Aaan BUILDS AND RUNS in one go! Go Rust! Compiles the whole thing release in 18!!! seconds. Compare that to my mb16 i9: 37 seconds. ITS TWICE the performance of an i9 on Rust compiles.

Wow i'm massively impressed now. The M1 cuts my compiletimes in HALF. Writing makepad in Rust is now almost like scripting a webpage :)

As of today i'm now looking at compiling a full desktop IDE in release mode with all deps in 18 seconds. I think Rust is starting to look very appealing with the arrival of the M1, the disadvantage of compiled languages on that domain is shrinking.

Many webpack/TS projects take a lot longer.

Comparing TDP: The i9 is a 45W TDP, the M1 is 10W. So apple cut the power by 4,5 and increased the compile speed by 2x. I think some CPU manufacturers are having a bad day.
3913 次点击
所在节点    Apple
25 条回复
nguoidiqua
2020-11-17 16:05:52 +08:00
从此,编译也不准代表处理器真实性能了。
denvi
2020-11-17 16:08:24 +08:00
@nguoidiqua 哈哈哈
zhaidoudou123
2020-11-17 16:11:20 +08:00
@nguoidiqua #1 太草了
哈哈哈哈
Removable
2020-11-17 16:11:26 +08:00
> I think some CPU manufacturers are having a bad day
英特尔打了个喷嚏
1if5ty3
2020-11-17 16:15:18 +08:00
@nguoidiqua 晕死,隔壁还有说剪辑视频不能代表真实性能的。。。
那啥是真实性能,风扇转越快性能越高吗?
nguoidiqua
2020-11-17 16:19:39 +08:00
@1if5ty3

发热代表真实性能…
richzhu
2020-11-17 16:20:44 +08:00
@1if5ty3 听他们瞎扯,变快了就是优化啊,优化好了就行提升了性能呀
stimw
2020-11-17 16:22:15 +08:00
我纠结 air 满血版和 pro 差在哪
CommandZi
2020-11-17 16:24:50 +08:00
@Removable 暂时应该还威胁不到 Intel,因为苹果的这个 M1 并不是通用芯片,暂时也看不到苹果会开放的迹象。
Liuthx
2020-11-17 16:30:18 +08:00
@CommandZi 苹果开路之后其他厂商会迅速跟进, 高通 + 微软组合才是真正干掉 Intel 的主力, 原本高通的角色应该由华为来承担的, 可惜了.
studyro
2020-11-17 16:31:24 +08:00
AppleBench 的跑分你高兴就好;
SPEC2006 早被处理器厂商研究透了,必然专门优化过;
Cinebench 被苹果充值了吧;
视频编辑走了专用电路,通用计算应该不能打;
Xcode 编译苹果上下打通做些手脚易如反掌,性能方面没有参考价值。
CommandZi
2020-11-17 16:32:09 +08:00
@Liuthx 问题是高通的芯片能不能提供和 M1 差不多的能耗比
CommandZi
2020-11-17 16:33:09 +08:00
@Liuthx 实际上我更期待英伟达,毕竟前不久刚收了 ARM 公司
denvi
2020-11-17 16:37:14 +08:00
@CommandZi 在 pc 端,真正能背刺 intel 的是 win,看消息微软有好几个项目都在往苹果和 arm 靠…
denvi
2020-11-17 16:40:25 +08:00
@CommandZi 没完成,中国 99%不会同意
nguoidiqua
2020-11-17 16:46:42 +08:00
@CommandZi

骁龙 875+ CPU 单核大概能有 1200,多核能有 4500~5000,虽然不如 M1 但也能吊打很多垃圾 intel 处理器了。

GPU 的话,875+ GPU 性能多少还不知道,不过之前高通给微软定制的 SQ2 GPU 算力大概有 M1 80~85% 的样子,也强过之前的 intel 集显了,但 intel 也出新集显了,跟 4800U Vega 8 差不多水准,现在大家集显都差不多了。

如果高通在 875+ 的基础上面再提高点功耗,放到电脑上应该也不错了,就看微软 Windows10 的二进制转换兼容性和效率能不能做好点了。
changepc90
2020-11-17 16:51:01 +08:00
问题是 M1 编译出来的 rust 既不能放到 x86 服务器上跑,现在也没别的 arm 服务器能跑。。。
HXHL
2020-11-17 16:52:29 +08:00
@changepc90 肯定可以交叉编译,arm 能编译 x86
denvi
2020-11-17 16:52:51 +08:00
@nguoidiqua 对,全网对 rosetta 2 的讨论很少,但这也是很关键一环啊,理论上这块微软来做的话应该比苹果要有优势
aneostart173
2020-11-17 16:55:23 +08:00
@changepc90 交叉编译啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/726243

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX