5

Use Rust they said. It will be much less hassle they said.

And now rustc just stops working in the middle of compiling. No error or anything it just doesn't want to continue compiling so I'm stuck forever on "Building ...". I thought I would never have to experience this again after deciding to pretend C++ doesn't exist but alas systems programming appears to forever be a right pain in the ass

Comments
  • 5
    I am going through a book on FP programming in C++. I am still at the point of "not seeing the value". I am forcing myself through the book and reading articles on the benefits. I am starting to see the conceptual compartmentalization. However, I still run into needing mutable state for visual and database interfaces. My mind wants to resist like crazy. It says "Why the fuck are you reading this crap?" I feel your pain in a different way.
  • 3
    @Demolishun One trick is not to think in terms of "one state that you mutate", but rather like "one state that you leave as is, but you make a copy with minor differences" and then discard the old state.

    The main advantage is that you avoid uncontrolled state merging from several sources. The disadvantage is that you now have to deal with stale data.
  • 3
    @Demolishun FP in C++ doesn't sound like a lot of fun to be quite honest
  • 1
    Protip rust fucking sucks
  • 0
    @tekashi Rust is pretty awesome. Especially when compared to my alternatives which is straight assembly (no thanks), C (yeah no) and C++ (absolutely positively not)
  • 1
    @12bitfloat sure if you like having to run 10 extra circles for everything because the compiler thinks you are a fucking idiot
  • 0
    @tekashi It's more complex sure due to the borrowing rules but it still feels amazing because all of that is you explicitely telling the compiler to make it the shit fast
Add Comment