We’ve got two parallel streams going here. One is up to chapter 10 on Traits and the other on chapter 5 on Structs & Enums.

  • How are we feeling about Rust the language?
  • Any persistent confusions or difficulties?
  • Favourite features or success stories?
  • How are we finding “The Book” in general?
    • Personally, I think it’s good but not great and am definitely reaching out for other learning experiences or materials, lately finding myself going through the Std Lib Docs a bit
    • Andy Balaam’s Rust Tutorial Series over on peertube are also good and I recently remembered to watch them as I go

Otherwise … any thoughts or requests on what else can happen here for those going through “The Book”?

  • I’m thinking of having posts on sets of chapters once the two twitch streams have gotten up to them.
  • So right now, both have gotten through the borrow checker chapter (ch 4).
  • The idea would be to have a reading club happen here too … to allow written discussion/questions here for those not able to make the streams (or who like/prefer written discussion), but also to provide a retrospective for those who’ve gone through the streams.
  • Personally, in these discussions I’d post my understanding of the topic, look back on the quizzes to see what tripped me up, or any other practical issues I ran into, and post anything else I may have found that helped me on the topic. Basically to see what I actually learned from that chapter.
  • Thoughts??
  • Another thing I can think of is challenges and exercises. I tried one a while back, but I think it was too much/long, so smaller exercises would probably work better for getting us thinking/coding in rust. AoC has come up and there are plenty of others. Would regular posts from such a thing be welcome or helpful??
  • Jayjader@jlai.luM
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 months ago
    • I like the idea of having for ex a post per chapter for discussion. It could definitely help liven up the lemmy community, and more importantly would give a chance for everyone who has gotten through the chapter in question to confront their understanding.
    • Challenges and exercises seem like a perfect complement to what’s going on so far … as long as we can find the right scope for them. I worry about how to find challenges that test our Rust skills vs overall problem-solving through programming. Maybe we could steal copy the ones from AoC, LeetCode, CodinGame, etc
    • maegul (he/they)@lemmy.mlOPM
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago
      • Do you think it would make sense to have a scheduled time or day during the week (or maybe every 2 weeks) for the post, kinda like a scheduled mega thread?
      • yea it’s challenging to get the right scope. Stealing from common sources, with maybe a bit of curation is probably best, so long as there’s some practicing happening and collaboration. Getting a running schedule for this again can help too I’d think.
      • something else to consider is that it will probably make sense, for those interested, to start digging into code bases (preferably lemmy IMO) in not too long a time. A number of collaborative things could be done here along those lines too. That is down the line though, so I’m just planting the seed (and thinking about it).

      How are you going with rust?

      • Jayjader@jlai.luM
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 months ago
        • scheduling a specific time or day seems less important to me compared to not making people wait longer than they need to, to discuss. I was thinking along the lines of “as soon as both streams have completed a chapter” + eventually “it has been at least x hours/days/weeks since the last discussion post” if we don’t want to spread the focus too thin all at once.
        • the schedule should at least force us to proactively adjust the scope of the challenges we set by acting as iterations of the project/activity/thing. We just need to pick a slightly easy challenge to start with, imo, so as to not make the first “iteration” too hard/long.
        • Digging into lemmy is definitely starting to become accessible. I don’t know if we want to try doing something collective yet or if we should leave it up to anyone who feels motivated enough to do a first foray and share their experience with us.

        Doing pretty great with rust so far on hobby projects. The read through of chapter 4 definitely feels like it helped cement some parts of lifetimes & ownership in my understanding.

        • maegul (he/they)@lemmy.mlOPM
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 months ago

          Agreed

          The read through of chapter 4 definitely feels like it helped cement some parts of lifetimes & ownership in my understanding.

          Yea I had a similar feeling. I haven’t been using rust recently (for reasons), but when I got through chapter 4 I was quite happy and somewhat comfortable to just start hacking and looking up or reading about things as I needed them, as the borrow checker definitely seems like the most opaque and painful part of the language (so far!)

      • ericjmorey@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 months ago

        I was looking for something that’s not focused on memory safety at the expense of ergonomics. I was looking at Zig but I watched an interview with Odin’s inventor. I liked how he was approaching the language development trying use what has been learned from C and C++ but not trying to be compatible with C in the way Zig is.

        The ecosystem is very immature compared to Rust and even less mature than Zig. But I want to keep with it for a bit.

        • maegul (he/they)@lemmy.mlOPM
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 months ago

          Ah right … makes sense. I don’t know how successful languages like Zig and Nim are but it’s interesting to see the energy around making a sort of modern C / C++ 2.0.

          My feeling around it all, however naive or unworkable, is always that real silver bullet is seamlessly composable features. Where in one ecosystem or “language” you can opt in to a borrow checker, or GC or ref counter or manual mem management, or dynamic or static typing etc … when and if you please. More and more new languages feels like it might be a dead end at a high level. In this respect, the “idea” of Mojo vaguely made sense to me (I never looked closely at it).

          • ericjmorey@programming.dev
            link
            fedilink
            English
            arrow-up
            2
            ·
            6 months ago

            If Mojo actually becomes libre software, I’ll start looking closer. It seems neat from a distance now, but I won’t invest energy on proprietary languages.