Rust (programming language): Difference between revisions

Content deleted Content added
Change developer to the Rust Project instead of the foundation
elaborate more on multi paradigm
Line 59:
}}
 
'''Rust''' is a [[Programming paradigm|multi-paradigm]], [[general-purpose programming language]] that emphasizes [[computer performance|performance]], [[type safety]], and [[Concurrency (computer science)|concurrency]]. It enforces [[memory safety]]—meaning that all [[reference (computer science)|references]] point to valid memory—without a [[garbage collection (computer science)|garbage collector]]. To simultaneously enforce memory safety and prevent [[data race]]s, its "borrow checker" tracks the [[object lifetime]] of all references in a program during [[Compilation (computing)|compilation]].
 
Rust was influenced by ideas from [[functional programming]], including [[Immutable object|immutability]], [[higher-order function]]s, and [[algebraic data type]]s. It is popular for [[systems programming]].<ref>{{Cite book |last=Eshwarla |first=Prabhu |url=https://books.google.com/books?id=eEUREAAAQBAJ |title=Practical System Programming for Rust Developers: Build fast and secure software for Linux/Unix systems with the help of practical examples |date=2020-12-24 |publisher=Packt Publishing Ltd |isbn=978-1-80056-201-1 |language=en}}</ref><ref>{{Cite book |last1=Blandy |first1=Jim |url=https://books.google.com/books?id=h8c_DwAAQBAJ |title=Programming Rust: Fast, Safe Systems Development |last2=Orendorff |first2=Jason |date=2017-11-21 |publisher=O'Reilly Media, Inc. |isbn=978-1-4919-2725-0 |language=en}}</ref><ref name="Astrophysics">{{Cite journal |last1=Blanco-Cuaresma |first1=Sergi |last2=Bolmont |first2=Emeline |date=2017-05-30 |title=What can the programming language Rust do for astrophysics? |url=https://www.cambridge.org/core/journals/proceedings-of-the-international-astronomical-union/article/what-can-the-programming-language-rust-do-for-astrophysics/B51B6DF72B7641F2352C05A502F3D881 |journal=[[Proceedings of the International Astronomical Union]] |language=en |volume=12 |issue=S325 |pages=341–344 |doi=10.1017/S1743921316013168 |arxiv=1702.02951 |bibcode=2017IAUS..325..341B |s2cid=7857871 |issn=1743-9213}}</ref> Rust does not enforce a [[programming paradigm]], but supports object oriented programming with its structs, enums, traits and methods. Functional programming is supported via immutability, pure functions, higher order functions and pattern matching.
 
Software developer Graydon Hoare created Rust as a personal project while working at [[Mozilla]] Research in 2006. Mozilla officially sponsored the project in 2009. In the years following the first stable release in May 2015, Rust was adopted by companies including [[Amazon (company)|Amazon]], [[Discord]], [[Dropbox]], [[Google]] ([[Alphabet Inc.|Alphabet]]), [[Meta Platforms|Meta]], and [[Microsoft]]. In December 2022, it became the first language other than [[C (programming language)|C]] and [[Assembly language|assembly]] to be supported in the development of the [[Linux kernel]].