You’ll be fine. You will learn the lifetime stuff and all will work out. It’s not that bad to be honest.
- 0 Posts
- 5 Comments
I mean yah. That’s what it takes. But like when I try to write code around Arc<_> the performance just tanks in highly concurrent work. Maybe it’s an OOP rust skill issue on my end. Lol.
Avoiding this leads, for me at least, to happiness and fearless, performant, concurrent work.
I’m not a huge fan of go-lang but I think they got it right with the don’t communicate by sharing memory thing.
Skill Issue.
For reals though adopting a functional style of programming makes rust extremely pleasant . It’s only when people program in object oriented styles that this gets annoying.
No loops, and no state change make rust devs happy devs.
I am going to argue Swiss type J.
It’s compact, safe, and easy to use.
Before anyone says UK I’m going to say they’re too bulky to be worth it. A usb charger for a UK plug is just so big and bulky that it’s not worth it. The Schuko plug falls into the same category.
If we are allowing future potential plugs I would argue for IEC 60906-1. It’s basically the same as Swiss type J but with very minor changes.
I mean it could be Mutex, or Rwlock or anything atomic. It’s just when I have to put stuff into an Arc<> to pass around I know trouble is coming.