Post AcXQBKxkTPjsWNTmue by alexelcu@social.alexn.org
 (DIR) More posts by alexelcu@social.alexn.org
 (DIR) Post #AcWw9Hh2f2mvB2loJM by alexelcu@social.alexn.org
       2023-12-06T10:44:53Z
       
       0 likes, 0 repeats
       
       #Rust, surprisingly, has many simplifications vs. #Java, e.g.,‣ No `null`, just a (tagged) `Option`, with (almost) zero overhead;‣ All structs can be mutated, there is no `final` keyword, but mutation is safe, as it makes it difficult to observe an object while being mutated.‣ All code is thread-safe by default, as it makes it really difficult to share state b/w threads;‣ Baked-in RAII, no error-prone AutoCloseable;‣ No OOP. Sweet type classes and generics specialization instead.
       
 (DIR) Post #AcWxF0mCZOt6P0Tioy by laund@hachyderm.io
       2023-12-06T10:57:06Z
       
       0 likes, 0 repeats
       
       @alexelcu hmm i found shared state between threads to be relatively easy with tge std::sync primitives like Arc+rwlock or Arc+mutex
       
 (DIR) Post #AcWyWI0Js3aUi5sthQ by csaltos@mastodon.social
       2023-12-06T11:11:26Z
       
       0 likes, 0 repeats
       
       @alexelcu I miss some good OOP in Rust ... not the old fanatic OOP but at some key parts like with Scala, OOP can be very useful and powerful
       
 (DIR) Post #AcX5phCL7lGc1qhvii by infosec812@foojay.social
       2023-12-06T12:33:21Z
       
       0 likes, 0 repeats
       
       @alexelcu This sounds like what a lot of people liked about NodeJS and Python and other languages where they are now implementing types, OOP,. And all of that because it's needed for large and complex systems to help reason about the complexity. So, in about 15 years, Rust will get these features.
       
 (DIR) Post #AcX9Jp3okuUmxpmKp6 by ragb@masto.pt
       2023-12-06T13:12:25Z
       
       0 likes, 0 repeats
       
       @alexelcu with traits and their almost typeclass feelling I don’t get why one would even want OOP. But they do..
       
 (DIR) Post #AcXQBKxkTPjsWNTmue by alexelcu@social.alexn.org
       2023-12-06T16:21:24Z
       
       0 likes, 0 repeats
       
       @csaltos Indeed.