Skip to main navigation menu Skip to main content Skip to site footer

Electrotechnical and Computer Engineering

Vol. 37 No. 11 (2022): Proceedings of Faculty of Technical Sciences

OWNERSHIP APPROACH IN MEMORY MANAGEMENT AND ITS USE IN RUST PROGRAMMING LANGUAGE

  • Uroš Jakovljević
DOI:
https://doi.org/10.24867/20BE29Jakovljevic
Submitted
November 6, 2022
Published
2022-11-06

Abstract

This paper describes main principles and ideas of ownership approach in memory management and how they are implemented in Rust programming language, in order to solve memory problems. It has been analyzed how memory guarantees it provides affect its usability and capabilities. The unsafe part of programming language and its possibilities were also analyzed, as well as how programmers use them.

References

[1] E. Alhazmi, A. Aljubairy, F. Alhazmi, „Memory Management via Ownership Concept Rust and Swift: Experimental Study“, IJCA, vol. 183(22), pp. 1-10, April 2022.
[2] Rust documentation, Ownership, https://doc.rust-lang.org/book/ch04-01-what-is-ownership.html (pristupljeno 10.09.2022.)
[3] W. Bugden, A. Alahmar, „Rust: The Programming Language for Safety and Performance“, IGSCONG'22, Turska, Jun 2022.
[4] Rust documentation, Option type, https://doc.rust-lang.org/std/option/ (pristupljeno 10.09.2022.)
[5] Rust documentation, Unsafe Rust, https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html (pristupljeno 10.09.2022.)
[6] V. Astrauskas, C. Matheja, F. Poli, P. Müller, A. Summers, „How do programmers use unsafe rust?“, PACMPL, vol. 4, pp. 1-27, Jun 2020.
[7] The Rust community’s crate registry, https://crates.io/ (pristupljeno 10.09.2022.)