在生产中使用Rust的著名公司及他们选择Rust的理由

{"type":"doc","content":[{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Rust已经悄然成为了最受欢迎的编程语言之一。作为一门新兴底层语言,Rust拥有着内存安全性机制、不亚于C语言的性能优势、出色的开发者社区等等。本文还介绍了那些正在使用Rust的著名公司以及这些公司选择Rust的原因。"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"italic"}],"text":"本文最初发表于 https:\/\/serokell.io\/("},{"type":"link","attrs":{"href":"https:\/\/serokell.io\/blog\/rust-companies","title":"xxx","type":null},"content":[{"type":"text","marks":[{"type":"italic"}],"text":"《9 Companies That Use Rust in Production》"}],"marks":[{"type":"italic"}]},{"type":"text","marks":[{"type":"italic"}],"text":"),经原作者授权,由InfoQ翻译并分享。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"你可能还不知道,Rust已经是目前最有前途且"},{"type":"link","attrs":{"href":"https:\/\/insights.stackoverflow.com\/survey\/2020#most-loved-dreaded-and-wanted","title":"","type":null},"content":[{"type":"text","text":"最受欢迎"}]},{"type":"text","text":"的编程语言之一了。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"它最初由Mozilla创建,后来被Dropbox、 Microsoft、Facebook等公司采用。Rust的主要优点是,它在保持使用JavaScript和Python等语言进行开发时所拥有的内存安全性的同时,还能够实现不亚于C的性能。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在这篇文章中,我将介绍9家使用Rust的大公司,并探究他们选择Rust的原因。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"9个Rust成功应用的案例"}]},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"Dropbox"}]},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/67\/4b\/675393f231f69540e2be785de90deb4b.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/www.dropbox.com\/","title":"","type":null},"content":[{"type":"text","text":"Dropbox"}]},{"type":"text","text":"使用Rust作为其部分文件同步引擎。由于文件同步引擎是高度并发的,所以编写、测试和调试都很困难。因此,团队选择用Rust将这部分进行了重写。当需要处理复杂的代码库和并发时,Rust的静态类型和编译时检查使它比Python等动态类型语言更具有优势。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Rust是我们团队的力量倍增器,使用Rust是我们做出的最正确的决定之一。除了性能,它的人机工程学和对准确性的保证帮助我们降低了同步的复杂性。我们可以在类型系统中对系统的复数不变量进行编码,并让编译器为我们检查它们。"},{"type":"link","attrs":{"href":"https:\/\/dropbox.tech\/infrastructure\/rewriting-the-heart-of-our-sync-engine","title":"","type":null},"content":[{"type":"text","text":"(原文)"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Dropbox的"},{"type":"link","attrs":{"href":"https:\/\/dropbox.tech\/infrastructure\/rewriting-the-heart-of-our-sync-engine","title":"","type":null},"content":[{"type":"text","text":"技术博客"}]},{"type":"text","text":"上有更多关于Rust的使用信息。"}]},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"Coursera"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/www.coursera.org\/","title":"","type":null},"content":[{"type":"text","text":"Coursera"}]},{"type":"text","text":"在他们的编程作业功能中使用了Rust,学生需要编写并运行一个计算机程序来解决一个问题。程序在Docker容器中运行、测试和分级。出于安全原因,开发团队需要对某些代码使用像Rust这样的低级语言,他们认为Rust比C更安全。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"尽管C是大家默认的低级控制编程语言,但是它对二进制文件有严格的安全性和正确性要求。我们选择了Rust,一种来自Mozilla的现代原生语言。Rust的一个重要的特点是其强大的类型系统,它完全不受某些类型安全漏洞的影响,这使它成为实现关键安全功能的极佳选择。"},{"type":"link","attrs":{"href":"https:\/\/medium.com\/coursera-engineering\/rust-docker-in-production-coursera-f7841d88e6ed","title":"","type":null},"content":[{"type":"text","text":"(原文)"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" "}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章