在生產中使用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":" "}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章