Rust Adventures — A Java programmer understanding Rust Ownership
Hi there folks!
As you know I’m learning Rust as a 2020 goal and today I decided to learn more about the key feature of the language: Ownership.
Beginning
My career up until now was based solely under Java stacks, so I summed up some experience with Java, Javascript and their libraries. For a long time I heard of the trails of people from C and C++ used to have managing the memory allocation of their programs and how the Garbage Collector saved the day.
The other side of the coin is that I always heard about the low-level languages programmers how the Virtual Machines languages had a poor performance.
For some times when I was writing programs that needed to have a high performance I wanted to use low level language and for the most trivial programs I was just happy to do not have to worry about memory management and for concurrency… well it’s a pain doesn’t matter from where you came if you works with a pre 2010 language.
So for some time the principals solutions we had were:
1 — Low level programming languages with the difficult of memory allocation.
2 — VM languages with GC that removed the memory problem but it had a cost over performance.