12
eeee
5y

Learning Rust.

Holy brainfucking brain melt, those references, scoping and borrowing and cloning and whatnot, because there is no garbage collector, but also no direct memory management.

It's cool, but also hard for a noob coming from the JVM/Android. The compiler error messages are helpful, but I immediately found some cryptic ones that don't help me at all.

Comments
  • 2
    Ownership is a really weird thing to look at for a while. Especially lifetime epsilons.
  • 1
    I loved rust. But not much you can do with it yet. Community is still too small. I guess its on the way to replacing c but not for a while.
  • 1
    I love the look of rust and really want to get into it but the ownership/borrowing and lifetimes are making it very difficult.
  • 1
    @NonImportant- *lifetime elisions :) epsilons take me waaay back to calculus 101
  • 0
    I read that article too. Arent reference counting and. RefCells a way to get around the rust memory management and do it like python?
  • 0
    Also, rust is amazing, but getting from a hello world to juggling a web server, green threads, aws S3, gzip and json crates in order to create a service was a LOT of effort.
  • 1
    That definitely sounds like a lot of effort. I remember changing from one version of rusoto to another just to use futures. That was a LOT of effort
  • 0
    Holy shit don't get me started on rusoto. At some point the just removed the Read trait from their streams. And I had to iterate over ~2.9GB of zipped text without it somehow.
  • 0
    I also remember trying to make a docker image version bumper with git and docker but after I'd finished the git part and bumped the version i found out that git and docker couldn't work together in rust because of a limitation in libssh. I could only use one or the other.
Add Comment