I have been working on a small Open Source Runtime Environment which I named Perling, You maybe asking your self why I picked that name and that's actually because… hmm.
The real reason I built it was so I could learn more about Virtualization and to understand what kind of a thing JVM dose internally.
And while thinking about this I remembered that I really wanted to learn Rust. I tried 2..5 times but I couldn't really grasp that weird ownership feature.
After a while I found this amazing tutorial on one(which I really didn't expect to find). I recommend you follow it after reading this, following me on medium, Github and applauding this story. Without even knowing I went from GoLang to rust
Now onto the real part,
What I love about rust
6. Because its weird
Yes that's why I like rust, because its WEIRD you really come across a language that really changes the way you think. As I said in the above Intro the ownership feature is what makes rust WEIRD. I mean it isn't weird its different compared to todays standards.
5. Small size
When a rust executable is compared with ones from other languages its extremely small.
4. Object Oriented
Rust is a Object Oriented language but it doesn't force you to use them unlike java. The only reason I would use Rust instead of go for non performance critical software is the fact that Rust has enums, which sadly go-lang doesn't have..
3. Easy To Use
Yes you heard that right, “Easy To Use”. You might think I'm crazy, yes I do think that rust code compared to other programming languages is much more verbose. But if I get to chose between c, c++ and rust. The clear winner is rust. It gives you that control that you need and rust syntax is much more readable than c, cpp. I mean look at this.
int * getArray( ) // this is c btw
How am I suppose to know that this function returns a pointer to a array of integers, Yes I know that some one who has worked with c/cpp for a long time will be able to understand this. But much more easier if you can have clear syntax and control.
2. Libraries
Yes in rust you can just add the name and version number of the crate and your good to go. You might be asking “But Tarith every language has something similar to it.”, Yes they do but think a little bit more.. those are super abstracted languages like js, python, etc..
1. The rust libraries
Rust provides you some libraries some have to be added as a dependency, the one thing that surprised me was that it has it’s own logging library. Which I first thought was a complete library but I was wrong, What I actually needed to do was to initialize a 3rd party crate that supports rust log library. then use the error!, info! macros anywhere. Then the 3rd party crate handles the rest, This is a very clever idea and this is the number 1 thing that made me love rust.
Now you know why I like rust. Now I want to know if you liked this story if you did applause this story and don't forget to follow me on medium and GitHub and as I said at the start follow that tutorial, it was a really good one.