Skip to content
Snippets Groups Projects
Commit 01262e96 authored by Jonas Johan Solsvik's avatar Jonas Johan Solsvik
Browse files

add some Rust strengths and weaknesses

parent 11c18fe1
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,8 @@ NOTE: We're interested in the 'HOW' and the 'WHY/WHY NOT' in the report.
**Group:** 23, Identity Wallet, DID CLI
**Students**: Jonas Johan Solsvik
**Repo Implementation**: https://github.com/DIN-Foundation/bcs-ntnu-2021
**Repo Thesis**: https://github.com/Arxcis/thesis-NTNU
**Repo Bachelor Implementation**: https://github.com/DIN-Foundation/bcs-ntnu-2021
**Repo Bachelor Thesis**: https://github.com/Arxcis/thesis-NTNU
## 1 Group discussion
......@@ -15,8 +15,23 @@ NOTE: We're interested in the 'HOW' and the 'WHY/WHY NOT' in the report.
### 1.1 Strengths and weaknesses of Rust
#### Strengths
- Catches errors at compile-time:
* Type errors
* Memory leak errors
* Index out-of bounds errors
* Null pointer errors
* Which is good because catching errors as early as possible saves development time, and increases iteration speed. A bug found at run-time is considered 10x more costly to fix, than a bug at compile-time.
- Fast - Fast because Rust enables low-level programming. Does not have a JIT. Is compiled instead of interpreted.
- Modern language - Language made to run on modern hardware, with modern language features. A new generation of programmers expects modern features from a language. Rust makes it easier to convince young programmers to get started with low-level programming.
- Young community - A new generation of programmers are developing Rust. Also good innovation, and longevity.
- Endorsed by industry - Linux, Mozilla, Microsoft. This is a strength because it ensures that Rust will be supported with money, resources, people for the forseeable future.
- Strong documentation - I am thinking about you Rust Book - https://doc.rust-lang.org/book/
#### Weaknesses
- Slow compilation time. 3-4 seconds for debug-build, on a 1000 LOC project. This is a weakness because it slows down iteration-speed.
- Verbose syntax - If a developer is used to a higher-level interpreted language the Rust syntax may be annyoingly verbose. This may scare developers away from Rust.
### 1.2 How we controlled process and communication systems during development
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment