ASSESSMENT 2 FURTHER INVESTIGATION QUESTIONS WEEKS 5

pdf

School

Queensland University of Technology *

*We aren’t endorsed by this school

Course

B102

Subject

Computer Science

Date

Oct 30, 2023

Type

pdf

Pages

2

Uploaded by SargentTitanium10875

Report
ASSESSMENT 2 FURTHER INVESTIGATION QUESTIONS WEEKS 5-6 Topic 5: Languages, Libraries and Complexity Question (a) – Programming Languages Moore’s law observes that hardware performance scales at an exponential rate, doubling every two year. This rapid evolution of hardware pushes the limitation of software and thus there is a constant need to improve efficiency and reliability. The development of new programming languages that can allow for programmer to achieve this, therefore, is inevitable. One such programming language born out of necessity is Rust. Rust is a general purpose, low-level programming language with an emphasis on type safety, security and efficiency. It was initially developed to address common errors and security vulnerability faced when programming in other low-level languages like C and C++ while maintaining the efficiency and controlled offered to low-level languages (Sharma, 2023). The main design principles in designing rust to be so reliable and efficient were memory safety, concurrency and interoperability. Memory safety is the prevention of various software bugs related to accessing memory (Rina Diane Caballar, 2023). Rust implements this through its ownership rules, borrowing checkers and strict compile-time checks. These measures prevent data races and does not permit dangling pointers or null pointers (Wayner, 2022). Another important aspect of Rust’s design principle is concurrency. The memory safe nature of rust allows for safe and manageable concurrent programming through abstractions like threads and channels without data races occurring (Wayner, 2022). This enables for high levels of control over system resources while maintaining code safety. The third factor of interoperability enables Rust to integrate with other languages giving it an aspect of Universality with programs already using C or C++. As a general purpose programming language, Rust has great versatility and, while initially developed as part of Mozilla’s Servo engine, it has been adopted into projects by other companies such as Android, Discord and Figma (CodiLime, 2023). Some examples of use cases range from system programming and web development to networking and even game development (CodiLime, 2023). It’s focus on memory safety and high efficiency have made it suitable for various implementations. It is increasingly preferred over languages like C and C++ as these tend to be prone to bugs such as data races and null pointers, which are addressed by Rust’s ownership system and compile-time checks (Krzysztof Wróbel, 2023). The safety and efficiency afforded by Rust over programs like C and C++ while providing the same level of performance makes Rust a more desirable language (Krzysztof Wróbel, 2023). This is further enhanced by it’s ability to integrate with existing libraries, interacting seamlessly with other languages In conclusion, Rust’s design and implementation revolve around the increased code safety and efficiency afford to Rust that other low-level languages do not have. This has allowed it to be a reliable alternative to traditional programming languages such as C and C++.
References CodiLime. (2023, March 21). The Future of Rust: characteristics, popularity, and challenges . Medium; Medium. https://medium.com/@codilime/the-future-of-rust-characteristics-popularity-and- challenges- 7de4db5ebd67#:~:text=The%20industry%20acknowledges%20the%20potential,that%20oth er%20languages%20couldn't. Krzysztof Wróbel. (2023, March 27). Rust programming language - what is rust used for and why is so popular? - CodiLime . CodiLime; CodiLime. https://codilime.com/blog/why-is-rust- programming-language-so-popular/ Rina Diane Caballar. (2023, March 20). The Move to Memory-Safe Programming . IEEE Spectrum; IEEE Spectrum. https://spectrum.ieee.org/memory-safe-programming-languages Sharma, R. (2023, January 27). Certificado Profesional en Programación: Desarrollo Full-Stack con Mern . Emeritus Online Courses. https://emeritus.org/blog/coding-rust-programming- language/ Wayner, P. (2022, October 10). 7 reasons to love the Rust language—and 7 reasons not to . InfoWorld. https://www.infoworld.com/article/3675391/7-reasons-to-love-the-rust- language-and-7-reasons-not- to.html#:~:text=Rust%20was%20built%20to%20support,operating%20systems%20and%20n etwork%20stacks.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: ion 2 and 4 only
Q: The ionization energy of Na is ____than that of li  larger or smaller
Q: Determine whether the inver O f(x) = x² + 1 O g(x) = sin x, where -360° < x< 360° c) h(x) = -x -) d)…
Q: Indicate whether the statement is a simple statement or a compound statement. If it is a compound…
Q: 0/5 pts 3 Details The Booster Club has a goal of raising at least $300. The Club has already raised…
Q: Lower birth rates and declining family size in recent years reflect what pheno
Q: Find all values of x for which the series below converges absolutely and converges conditionally.…
Q: Are the following statements true or false? ? ✓ 1. If the augmented matrix [A [b] has a pivot…
Q: A scared elephant has a mass of 7000 kg. The mouse that frightened the elephant is 0.02 kg. The…
Q: Solid Liquid Gas As the system changes from solid --> liquid --> gas, what is the sign of deltaH and…
Q: 7. I used to run at a pace of 8.3 mi/hr. Convert that speed to kilometers per minute. a. How many…
Q: Which of the following contributed to the increased economic and military power of the a standing…
Q: Balance sheet information for parent Company and its 90%-owned subsidiary, Sub Corporation, at…
Q: To be able to better manage the length of stay (LOS) of patients undergoing laparoscopic…
Q: You have a mixture of the following compounds dissolved in diethyl ether. Which aqueous system could…
Q: explain the usage of hypnotic drugs (sleeping pills). What kinds of medicines are utilized, as well…
Q: According to Mead’s Reflected Appraisals we perceive ourselves as others see us True or false
Q: There are two incomplete-dominant alleles for petal color in a population of flowers. 36% of the…
Q: This code prints the odd numbers from 1 to 20 and the number of odd numbers. Private Sub…
Q: Suppose Z follows the standard normal distribution. Calculate the following probabilities using the…
Q: Mans Company is about to purchase the net assets of Eagle Incorporated, which has the following…
Q: 2. The diagram below represents a cell and several molecules. The number of molecules sho the…