home.social

#rustlings โ€” Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rustlings, aggregated by home.social.

  1. integration in ๐ŸชŸ

    asciinema.org/a/902151

    Works well with terminal text editors like :helix:

    Will be released soon โœจ๏ธ

  2. Started with the #rustlings course in @calisti 's workshop at #39c3, now halfway done thanks to sitting down together with @captain_maramo for some mutual commitment (and being able to help each other) ^-^

    Progress: [#################>----------------] 47/94

  3. So #Rustlings apparently is a rather hard term for speech to text to recognize unguided. Terms I got instead, while correcting subtitles for our meetup talk:

    - Rustlinks
    - Rustlinfs
    - Wrestling (my favorite)

    "Because I think it'd be really great to have some sort of guided wrestling in my company."

    Also, "Rust for Rustaceans" became "Rust Forestations".

    #RustLang #Rust

  4. With that, we have a new guide for "Community Exercises" โœจ

    rustlings.rust-lang.org/commun

    You can create your own exercises and let the program manage them ๐Ÿ˜ƒ

    I have heard that the community is thinking about creating some exercises for Bevy beginners ๐Ÿ˜‰

    @alice_i_cecile @chrisbiscardi

  5. Launched a new website for ๐ŸŽ‰
    rustlings.rust-lang.org

    It even has a new link ๐Ÿ”—

    What do you think? Anything missing? ๐Ÿค”

  6. Resueltos los primeros 8 mรณdulos de #Rustlings . Por hoy, un descanso de #Rustlang

  7. Detengo el proyecto #xlslang de momento, y mejor voy a resolver los problemas de #rustlings para afianzar mรกs y ojalรก entender como resolver el problema que tengo.
    #rustlang

  8. #RustLang Iโ€™m not 100% sure, but I think it was @laund who recommended #Rustlings to me (see github.com/rust-lang/rustlings). I do a few every day. Iโ€™m really enjoying them and they are very helpful and practical.

  9. In a new attempt at Rustlings this year, I wonder why I didn't learn it last year. What a wonderful language. I like it better than Golang in many places, and worlds better than PHP.

    forgejo.lukasrotermund.de/lrot

    #Rust #Rustlings

  10. Does anyone know of a rustlings-like implementation for PHP?

    #php #rustlings

  11. Learning with is awesome! It has been a long time since I had so much fun while learning something new.

  12. Started #Rustlings, a #RustLang tutorial thing (on a recommendation here). The first several exercises made me concerned that it might be stuff Iโ€™ve already learned. I checked ahead in the repo and it looks like the later stuff is appropriate for me. Tried not to spoil anything.

  13. ๐Ÿฅณ LIVE NOW @ozoned ! ๐Ÿฅณ
    Watch here: stream.ozoned.net/

    Here is a list of 4 relevant hashtags for your live stream:

    GamingOnLinux - #GamingOnLinux
    Rustlings - #Rustlings
    LinuxGamingCommunity - #LinuxGamingCommunity #owncast #livestream #stream #selfhosted

  14. @MrMST Hi! One thing that may help is to stop thinking about it as an "SDK" :)

    SDKs are usually provided by commercial vendors looking to develop their products.

    If you want to get started with Rust, I'd recommend the excellent open source package #Rustlings - rustlings.cool/

    From that link are instructions on how to get Rust installed, and the exercises are a great way to get going. I finished it and can attest it's an excellent experience!

  15. Ok here's a first question I encountered while working on the #rustlings :

    When defining a function, what does it mean to put the `mut` keyword in front of the argument's *name* vs. in front the the argument's *type*? E.g. what's the difference between the following two lines:

    ```
    fn some_function(mut some_arg: SomeType) {
    fn some_function(some_arg: mut SomeType) {
    ```

    #rust

  16. YOU GUYS!

    I've been working on it for what feels like nine forevers BUT I FINALLY FINISHED #rustlings !!!!!

    I'm SO FREAKING CHUFFED I can barely stand it :)

    Now I can finally contribute to some FLOSS #rust projects like @VeilidNetwork !

    WOOHOO!

  17. I think maybe I need to put #rustlings aside for a bit and read up a bit more.

    I'm hitting the point where I am perma-stumped on some of the exercises.

    Like, I really don't understand map_err or why I would want it. The examples aren't making much sense yet.

    Not giving up, just changing tactics :)

    My latest sticking point:

    github.com/rust-lang/rustlings

  18. I've really been enjoying learning #rust with #rustlings! I'm 2/3 of the way through so far. Major props to the Rust community for such a nice tutorial. I learn better by example, and I love how it even links to the relevant sections of the online book.

    #coding #programming #freesoftware #opensource

  19. So I've been learning #rust and chugging along pretty well but... Optionals?

    They BREAK my tiny brain :)

    Not the declarations themselves, but the boxing and unboxing that needs to happen as they are used and compared, etc.

    I had to look at a solution for the first time in my entire #rustlings experience :)

    Still not sure how I feel about that. Probably won't do it again, but after a week of struggling I decided I'd learned all the negative feedback I could from that problem :)

    I understand it now that I see it, but I am now questioning whether I am in fact clever enough to ride this ride.

    while let Some(Some(foo) = optional_bar_vec.pop() { ...

    just didn't occur to me even though the exercise hint should have been the all the clue by four I needed.

  20. Hey, if any of y'all are interested in learning #C, I made a project in the spirit of #rustlings and #ziglings: Ceilings! It's still a WIP, but if you know #cprogramming, and there are any improvements to be made, pls open an issue (or better yet, fork)! I'm making the exercises as I learn C myself, following along with my old copy of K&R and a PDF of C Programming: A Modern Approach ๐Ÿ˜‡

    github.com/Pinjontall94/ceilin

  21. Help me Fediverse #rust Wan Kinobe, you're my only hope! :)

    I'm working on a #rustlings exercise:
    github.com/rust-lang/rustlings

    This is the first time I'm irretrievably stuck.

    My code:

    gist.github.com/feoh/524771797

    This is the error I get:

    error[E0308]: mismatched types
    --> exercises/hashmaps/hashmaps3.rs:42:27
    |
    42 | let team1: Team = scores.entry(team_1_name).or_insert(Team {
    | _________________----^
    | | |
    | | expected due to this
    43 | | goals_scored: team_1_score,
    44 | | goals_conceded: team_2_score,
    45 | | });
    | |__________^ expected Team, found &mut Team

    error[E0308]: mismatched types
    --> exercises/hashmaps/hashmaps3.rs:46:27
    |
    46 | let team2: Team = scores.entry(team_2_name).or_insert(Team {
    | _________________----^
    | | |
    | | expected due to this
    47 | | goals_scored: team_2_score,
    48 | | goals_conceded: team_1_score,
    49 | | });
    | |__________^ expected Team, found &mut Team

    error: aborting due to 2 previous errors

    Do I somehow want to copy my modified team1 / team2 Team structs into immutable versions so the insert will work?

    This is for an exercise, so "Do your damn homework and figure it out bright boy" is entirely acceptable as well, but I've not been this stuck in the hundreds of exercises I've done thus far :)

    Thanks!

  22. I've finally made it, started learning Rust, read most of the book and finished rustlings.

    Now looking around for interesting projects to quickly ramp up my skill ;-)

    I had few approaches to Rust but never enough space to master it. But now it looks that a lot of work in a space i'm good at (data processing and databases) is written in Rust. E.g. #ParadeDB or #NeonDB they're both written in it.

    #rust #rustlang #rustlings #olsztyn #devlife

  23. Free Course in Mainz, Germany :ferris:

    I am happy to announce that I will offer my Rust course for the third time ๐Ÿ˜

    ๐Ÿ“ Where: In person at the university of Mainz
    ๐Ÿ“† When: 26.08. - 30.08.2024 from 10 until 17 o'clock
    ๐Ÿ“š๏ธ Content: My modified version of and : comprehensive-rust.mo8it.com
    ๐Ÿƒ More info and free registration: fachschaft.physik.uni-mainz.de (scroll down for the English version)
    ๐Ÿ—ฃ๏ธ Language: English

    :boostRequest:

  24. Ever wondered why the language server isn't showing all errors, warnings and lints? ๐Ÿ˜•

    This is especially an issue in where Rust-Analyzer only shows the diagnostics in some of the exercises.

    Turns out, Rust-Analyzer uses `cargo check` under the hood which itself stops checking early unless you specify the `--keep-going` flag ๐Ÿƒ๐Ÿผ

    This is fixed in Rust-Analyzer now ๐Ÿ˜ƒ

    github.com/rust-lang/rust-anal

    Thanks to @veykril ๐Ÿค—

  25. Ever wondered why the language server #RustAnalyzer isn't showing all errors, warnings and lints? ๐Ÿ˜•

    This is especially an issue in #Rustlings where Rust-Analyzer only shows the diagnostics in some of the exercises.

    Turns out, Rust-Analyzer uses `cargo check` under the hood which itself stops checking early unless you specify the `--keep-going` flag ๐Ÿƒ๐Ÿผ

    This is fixed in Rust-Analyzer now ๐Ÿ˜ƒ

    github.com/rust-lang/rust-anal

    Thanks to @veykril ๐Ÿค—

    #RustLang

  26. Ever wondered why the language server #RustAnalyzer isn't showing all errors, warnings and lints? ๐Ÿ˜•

    This is especially an issue in #Rustlings where Rust-Analyzer only shows the diagnostics in some of the exercises.

    Turns out, Rust-Analyzer uses `cargo check` under the hood which itself stops checking early unless you specify the `--keep-going` flag ๐Ÿƒ๐Ÿผ

    This is fixed in Rust-Analyzer now ๐Ÿ˜ƒ

    github.com/rust-lang/rust-anal

    Thanks to @veykril ๐Ÿค—

    #RustLang

  27. Ever wondered why the language server #RustAnalyzer isn't showing all errors, warnings and lints? ๐Ÿ˜•

    This is especially an issue in #Rustlings where Rust-Analyzer only shows the diagnostics in some of the exercises.

    Turns out, Rust-Analyzer uses `cargo check` under the hood which itself stops checking early unless you specify the `--keep-going` flag ๐Ÿƒ๐Ÿผ

    This is fixed in Rust-Analyzer now ๐Ÿ˜ƒ

    github.com/rust-lang/rust-anal

    Thanks to @veykril ๐Ÿค—

    #RustLang

  28. Ever wondered why the language server #RustAnalyzer isn't showing all errors, warnings and lints? ๐Ÿ˜•

    This is especially an issue in #Rustlings where Rust-Analyzer only shows the diagnostics in some of the exercises.

    Turns out, Rust-Analyzer uses `cargo check` under the hood which itself stops checking early unless you specify the `--keep-going` flag ๐Ÿƒ๐Ÿผ

    This is fixed in Rust-Analyzer now ๐Ÿ˜ƒ

    github.com/rust-lang/rust-anal

    Thanks to @veykril ๐Ÿค—

    #RustLang

  29. Today was the first day of my Rust course at my university ๐Ÿ˜ƒ

    It is a combination of and ๐Ÿฆ€

    I already gave this course once. But this time, I am recording it and will publish it on YouTube (and other platforms that you suggest) ๐Ÿ“น๏ธ

    Thanks to @thomy2000 for the suggestion to record it ๐Ÿค—

  30. Free Course in Mainz, Germany :ferris:

    I am happy to announce that I will give my Rust course again ๐Ÿ˜

    ๐Ÿ“ Where: In person at the university of Mainz
    ๐Ÿ“† When: 11.03. - 15.03.2024 from 10 until 17 o'clock
    ๐Ÿ“š๏ธ Content: My modified version of and : comprehensive-rust.mo8it.com
    ๐Ÿƒ More info and free registration: fachschaft.physik.uni-mainz.de (scroll down for the English version)
    ๐Ÿ—ฃ๏ธ Language: English unless all speak German

  31. Yesterday, I submitted a PR to port to Clap:

    github.com/rust-lang/rustlings

    But @manpacket asked me to try , so here is the second PR that ports to bpaf:

    github.com/rust-lang/rustlings

    Which one do you like more and why? ๐Ÿค”

    Vote here and with a ๐Ÿ‘ reaction on one of the PRs.