跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • Rust 用户 Rik Arends 表示新 MacBook Air 让编译 Rust 变得像写脚本语言一样轻松
未分類
24 11 月 2020

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

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

資深大佬 : zckevin 5

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.

大佬有話說 (25)

  • 資深大佬 : nguoidiqua

    从此,编译也不准代表处理器真实性能了。

  • 資深大佬 : denvi

    @nguoidiqua 哈哈哈

  • 資深大佬 : zhaidoudou123

    @nguoidiqua #1 太草了
    哈哈哈哈

  • 資深大佬 : Removable

    > I think some CPU manufacturers are having a bad day
    英特尔打了个喷嚏

  • 資深大佬 : 1if5ty3

    @nguoidiqua 晕死,隔壁还有说剪辑视频不能代表真实性能的。。。
    那啥是真实性能,风扇转越快性能越高吗?

  • 資深大佬 : nguoidiqua

    @1if5ty3

    发热代表真实性能…

  • 資深大佬 : richzhu

    @1if5ty3 听他们瞎扯,变快了就是优化啊,优化好了就行提升了性能呀

  • 資深大佬 : stimw

    我纠结 air 满血版和 pro 差在哪

  • 資深大佬 : CommandZi

    @Removable 暂时应该还威胁不到 Intel,因为苹果的这个 M1 并不是通用芯片,暂时也看不到苹果会开放的迹象。

  • 資深大佬 : Liuthx

    @CommandZi 苹果开路之后其他厂商会迅速跟进, 高通 + 微软组合才是真正干掉 Intel 的主力, 原本高通的角色应该由华为来承担的, 可惜了.

  • 資深大佬 : studyro

    AppleBench 的跑分你高兴就好;
    SPEC2006 早被处理器厂商研究透了,必然专门优化过;
    Cinebench 被苹果充值了吧;
    视频编辑走了专用电路,通用计算应该不能打;
    Xcode 编译苹果上下打通做些手脚易如反掌,性能方面没有参考价值。

  • 資深大佬 : CommandZi

    @Liuthx 问题是高通的芯片能不能提供和 M1 差不多的能耗比

  • 資深大佬 : CommandZi

    @Liuthx 实际上我更期待英伟达,毕竟前不久刚收了 ARM 公司

  • 資深大佬 : denvi

    @CommandZi 在 pc 端,真正能背刺 intel 的是 win,看消息微软有好几个项目都在往苹果和 arm 靠…

  • 資深大佬 : denvi

    @CommandZi 没完成,中国 99%不会同意

  • 資深大佬 : nguoidiqua

    @CommandZi

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

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

    如果高通在 875+ 的基础上面再提高点功耗,放到电脑上应该也不错了,就看微软 Windows10 的二进制转换兼容性和效率能不能做好点了。

  • 資深大佬 : changepc90

    问题是 M1 编译出来的 rust 既不能放到 x86 服务器上跑,现在也没别的 arm 服务器能跑。。。

  • 資深大佬 : HXHL

    @changepc90 肯定可以交叉编译,arm 能编译 x86

  • 資深大佬 : denvi

    @nguoidiqua 对,全网对 rosetta 2 的讨论很少,但这也是很关键一环啊,理论上这块微软来做的话应该比苹果要有优势

  • 資深大佬 : aneostart173

    @changepc90 交叉编译啊

  • 資深大佬 : changepc90

    @HXHL 还要看看交叉编译的效率了,过去从 arm 上交叉编译到 x86 不怎么多见。

  • 資深大佬 : nguoidiqua

    @denvi

    Surface Pro X 上面的二进制转换效率目前来看不如苹果的 Rosetta2,微软那个只有一半性能,苹果的能有七八成。

  • 資深大佬 : denvi

    @nguoidiqua 唔…微软真下决心做,估计还是行的,如果越来越多 x86 专业软件大玩家被拉到 arm 的阵营里,那对微软就伤筋动骨了

  • 資深大佬 : agagega

    rust 后端是 llvm 啊,交叉编译有天然优势

  • 資深大佬 : cxh116

    @denvi 你可以收台 Surface RT 来玩玩,闲鱼上面 200 左右.

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具