Rust (ngôn ngữ lập trình)

Rust là một ngôn ngữ lập trình đa mô hình, cấp cao, có mục đích chung. Rust có sự tập trung vào tăng cường hiệu suất, đảm bảo an toàn kiểu và khả năng xử lý đồng thời. Với Rust, an toàn bộ nhớ được thực thi một cách nghiêm ngặt - đảm bảo rằng tất cả các tham chiếu trỏ đến bộ nhớ hợp lệ - mà không cần phải sử dụng bộ thu gom rác hoặc đếm tham chiếu như trong các ngôn ngữ khác.

Rust
A capitalized letter R set into a sprocket
The official Rust logo
Mẫu hìnhMulti-paradigm: concurrent, functional, generic, imperative, structured
Thiết kế bởiGraydon Hoare
Xuất hiện lần đầu2006; 20 năm trước (2006)
Kiểm tra kiểuAffine, inferred, nominal, static, strong
Ngôn ngữ triển khaiRust
Nền tảngCross-platform[note 1]
Hệ điều hànhCross-platform[note 2]
Giấy phépMIT and Apache 2.0 (dual-licensed)[note 3]
Phần mở rộng.rs, .rlib
Websitewww.rust-lang.org
Ảnh hưởng bởi
Ảnh hưởng tới
Idris,[6] Spark,[7] Swift,[8] Project Verona,[9] Zig[10]

Chú thích

Ghi chú

  1. ^ Including build tools, host tools, and standard library support for x86-64, ARM, MIPS, RISC-V, WebAssembly, i686, AArch64, PowerPC, and s390x.[1]
  2. ^ Including Windows, Linux, macOS, FreeBSD, NetBSD, and Illumos. Host build tools on Android, iOS, Haiku, Redox, and Fuchsia are not officially shipped; these operating systems are supported as targets.[1]
  3. ^ Some third-party exceptions, including LLVM, are licensed under different open source terms.[2][3]

Tham khảo

  1. ^ a b "Platform Support". The rustc book. Truy cập ngày 27 tháng 6 năm 2022.
  2. ^ "The Rust Programming Language". The Rust Programming Language. ngày 19 tháng 10 năm 2022.
  3. ^ "Uniqueness Types". Rust Blog. Truy cập ngày 8 tháng 10 năm 2016. Those of you familiar with the Elm style may recognize that the updated --explain messages draw heavy inspiration from the Elm approach.
  4. ^ Lỗi chú thích: Thẻ <ref> không hợp lệ; không có nội dung trong ref có tên influences
  5. ^ "Uniqueness Types". Idris 1.3.3 documentation. Truy cập ngày 14 tháng 7 năm 2022. They are inspired by ... ownership types and borrowed pointers in the Rust programming language.
  6. ^ Lỗi chú thích: Thẻ <ref> không hợp lệ; không có nội dung trong ref có tên Jaloyan
  7. ^ Lỗi chú thích: Thẻ <ref> không hợp lệ; không có nội dung trong ref có tên Lattner
  8. ^ Lỗi chú thích: Thẻ <ref> không hợp lệ; không có nội dung trong ref có tên Project Verona
  9. ^ Yegulalp, Serdar (ngày 29 tháng 8 năm 2016). "New challenger joins Rust to topple C language". InfoWorld (bằng tiếng Anh). Truy cập ngày 19 tháng 10 năm 2022.