مایکروسافت به دنبال استفاده از Rust در کدهای ویندوز
مشکلات عدیده مدیریت حافظه در C، مایکروسافت را به استفاده از Rust ترغیب کرده است.
![](https://www.bigdata.ir/wp-content/plugins/lazy-load/images/1x1.trans.gif)
مایکروسافت که یکی از عظیم ترین مخازن کدهای زبان c دنیا را در اختیار دارد، در حال جایگزینی تدریجی کدهای سی ویندوز و سایر محصولات اصلی خود با زبان Rust است.
دلیل اصلی این موضوع هم مشکلات عدیده ای است که بحث مدیریت حافظه در c به مایکروسافت تحمیل کرده است و تعداد بالای باگهایی که به این دلیل در بروزرسانی های محصولات مایکروسافت باید رفع شوند. زبان Rust که بسیار شبیه به زبان c و زبانی سطح پایین (مناسب برای کارهای سیستمی و سیستم عامل) است، گزینه اول مایکروسافت برای تغییر کدها و بازنویسی برخی از اصلی ترین ماژولهای ویندوز بوده است.
هر چند برخی قابلیت های زبان c هنوز در Rust وجود ندارد اما مهندسین مایکروسافت و اینتل به دنبال گسترش امکانات و بهبود کامپایلر این زبان هستند. در چند سال آینده، شاهد گسترش این زبان سریع و محبوب خواهیم بود و اگر به دنبال یاد گرفتن زبانی برای انجام کارهای سیستمی هستید، بهتر است به جای C از زبان Rust استفاده کنید.
Jay Oster, Architect at PubNub: “Beyond safety and performance, we have:
– generics;
– traits;
– algebraic types;
– functional and imperative paradigms;
– perhaps the world’s best dependency management and build tool, which has practically solved the ‘dependency hell’ problem;
– fantastic support for inline documentation, tests, and benchmarks;
– a large and growing ecosystem of libraries, abstractions, and tools;
– procedural macros;
– FFI interoperability with existing code;
– support for dozens of platforms (with more on the way!);
-and a developer experience that is just wholesome and unquestionably satisfying.
Rust is the only language that ticks all the boxes:
– Memory safe
– Type safe
– Data race-free
– Ahead-of-time compiled
– Built on and encourages zero-cost abstractions
– Minimal runtime (no stop-the-world garbage collection, no JIT compiler, no VM)
– Low memory footprint (programs run in resource constrained-environments like small microcontrollers)
– Targets bare-metal (e.g. write an OS kernel or device driver; use Rust as a ‘high level assembler’)”
لازم به ذکر است که زبان Rust برای پنجمین سال پیاپی، محبوبترین زبان برنامهنویسی (Most Loved) در بین پاسخ دهندگان نظرسنجی سالیانه سایت StackOverflow
بوده است.
![](https://www.bigdata.ir/wp-content/plugins/lazy-load/images/1x1.trans.gif)
دلایل این محبوبیت را در این نوشتار، میتوانید بررسی کنید و اگر قصد مرور امکانات این زبان ویادگیری سریع آنرا دارید از لینک زیر استفاده کنید :
![A half-hour to learn Rust - fasterthanli.me](https://www.bigdata.ir/wp-content/plugins/lazy-load/images/1x1.trans.gif)
A half-hour to learn Rust – fasterthanli.me
In order to increase fluency in a programming language, one has to read a lot of it. But how can you read a lot of it if you don’t know what it means? In this article, instead o…
https://fasterthanli.me/articles/a-half-hour-to-learn-rust