3 ms·
As someone who generally prefers high level languages (Ruby, Python, JS) I'm enjoying Rust because unlike C and Cpp, I don't really have to care about memory. I
by ZephyrBlu 4y ago
As someone who generally prefers high level languages (Ruby, Python, JS) I'm enjoying Rust because unlike C and Cpp, I don't really have to care about memory. I don't want to spend my time thinking about memory allocations and deallocations.
Rust lets me focus on logic like a high level language does and the compiler tells me whether what I'm doing is memory safe or not. I'm vaguely aware of copying/cloning values, but Rust is pretty performant out of the box and I don't end up doing it very often.
- ilovecaching 4y agoIf you don't need to care about vm, you probably should be using a GC language. If you do, you certainly need to understand vm.
- ZephyrBlu 4y agovm = virtual machine/memory? I'm porting this Python library to Rust: https://github.com/Blizzard/s2protocol https://github.com/Blizzard/s2protocol. For the shitty, first pass prototype code I've written so far I've seen a ~30-40x speedup compared to the Python implementation and a ~2x speedup compared to a Go implementation written by someone else: https://github.com/icza/s2prot https://github.com/icza/s2prot. That is why I chose Rust over a GC language like Go (E: I also wanted to learn it ofc). It's a lot faster out of the box, even without me having a strong understanding of memory operations.
- switchbak 4y agoVirtual memory != Memory management, your abbreviations are confusing.
- ilovecaching 4y agoSorry, I don't normally work outside of the kernel. To me vm is a common abbreviation with a well understood meaning.