星颖资源网

 找回密码
 立即注册
查看: 6|回复: 0

bun 用 rust 重写的 pr 已经合并

[复制链接]

2万

主题

1万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
110880
发表于 2026-5-14 19:09:26 | 显示全部楼层 |阅读模式

github.com/oven-sh/bun (https://github.com/oven-sh/bun/pull/30412)
Rewrite Bun in Rust (#30412)
main ← claude/phase-a-port
已合并 08:09AM - 14 May 26 UTC

Jarred-Sumner
+1009257-4024 (https://github.com/oven-sh/bun/pull/30412/files)
Blog post with details coming soon. It passes Bun's pre-existing test suite … (https://github.com/oven-sh/bun/pull/30412)on all platforms (and fixes several memory leaks and flaky tests), the binary size shrinks by 3 MB - 8 MB, the benchmarks are between neutral and faster - and most importantly, we now have compiler-assisted tools for catching & preventing memory bugs, which have costed the team an enormous amount of development & debugging time over the years. The codebase is otherwise largely the same. The same architecture, the same data structures. Bun still uses few 3rd party libraries. No async rust. To try this, run: ``` bun upgrade --canary ``` Please do file issues if you run into any. If this thread gets crazy I will lock it. Note: - Still some optimization work to do before this lands in non-canary version. - Still some cleanup work to do (which will come in a series of follow-up PRs)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

微信

社群

VIP

AI

顶部

QQ|本站内容来源网友投稿或网络转载,如果有侵权的内容,请联系我们删除。|小黑屋|人人为我,我为人人!| 星颖资源网

GMT+8, 2026-6-8 06:52 , Processed in 0.042729 second(s), 22 queries .

快速回复 返回顶部 返回列表