this post was submitted on 27 Oct 2021
13 points (93.3% liked)

Rust Programming

8156 readers
8 users here now

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] seahorse@lemmy.ml 1 points 3 years ago (1 children)

How does Rusts features enable Lemmy development? Why not write it in Go or something similar? I'm a systems programming noob. Just want to know why you chose Rust.

[โ€“] ChinaNumberOne@lemmy.ml 4 points 3 years ago

i can't speak for the lemmy's developers but rust is basically the perfect language for backend servers

  • it's incredibly fast

  • it's incredibly safe

  • there is clippy, a incredibly powerful tool to detect common mistakes

  • statically linked libraries (bad for normal applications but ideal for servers, it's why go does it)

  • incredibly powerful pattern matching

  • very safe and easy-to-use generics

  • sanitized macros

these are just a couple of things that came to mind. for most of rust's life it was used as a language to create backend servers and dynamically link libraries so it ended up being very good for those things