this post was submitted on 31 Mar 2024
33 points (94.6% liked)

Rust

5989 readers
63 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

top 8 comments
sorted by: hot top controversial new old
[–] secana@programming.dev 12 points 7 months ago (1 children)

I released https://kellnr.io 5.2.1 with a few smaller fixes and additions.

[–] hardkorebob@programming.dev 4 points 7 months ago (1 children)

I need to build a site like this for my app lol

Very nice is what I am saying!

[–] secana@programming.dev 3 points 7 months ago

Thanks! Took me few iterations to get there.

[–] PlexSheep@feddit.de 4 points 7 months ago

I'm on vacation. No working. Well, actually I was doing a ton of Selfhosting stuff (migrating my homeserver to proxmox, now at a usable level), but also video games.

The wordle-analyzer will have to wait until next week, and until I can fix my lifetime compiler errors in the latest commit, and before that: Until I fix my forgejo server that refuses to start after updating the server kernel.

[–] tinkralge@programming.dev 4 points 7 months ago

This week some more work was done on inheriteRS to support inheriting non-trait implementations of functions.

Basically

use inheriters::specialisations;

specialisations!(
    struct Parent {
        attr1: u8,
    }
    impl Parent {
        fn from_parent(self) -> u8 { 8 }
        fn overridden(self) -> u8 { self.attr1 }
    }
    
    #[inherit(Child)]
    struct Child {
        attr2: u8,
    }
    impl Child {
        fn overridden(self) -> u8 { self.attr2 }
    }
);

results in

struct Parent {
    attr1: u8,
}
impl Parent {
    fn from_parent(self) -> u8 { 8 }
    fn overridden(self) -> u8 { self.attr1 }
}


struct Child {
    attr1: u8, // new
    attr2: u8,
}
impl Child {
    fn from_parent(self) -> u8 { 8 } // new
    fn overridden(self) -> u8 { self.attr2 }
}

There might be some clean-up necessary code-wise and the README has to be expanded. But the project is well on its way to version 1! It's a pity codeberg doesn't have easy CI/CD yet nor domain hosting e.g inheriters.codeberg.io or something. So auto-formatting, testing, auto-tagging, etc. will have to come once I can convince myself to setup a VPS somewhere that hosts all that.

[–] sugar_in_your_tea@sh.itjust.works 3 points 7 months ago* (last edited 7 months ago)

Unfortunately, not much this week. Maybe I'll get time to hack on my p2p app next week.

I did find simplex chat recently, so I'll be relearning Haskell to play around with it. If anyone knows of a decent Rust library for it, I'll play with that too. I think I could use it for my p2p app for a few things, which could be cool.

[–] hardkorebob@programming.dev 3 points 7 months ago* (last edited 7 months ago)

https://youtu.be/q2tfkVe6hTo

https://github.com/dislux-hapfyl/pynksh

Working on making dev of tkinter and pythong* a breeze for any newcomer that's willing to learn a bit different from the mainstream tutorials, videos, docs and mass methods of learning. This guy's ways are more fun than any of those YT videos of piecemeal-coding. If you find that kind of learning extremely boring hmu fam...

*I dont like python syntax, it's uGly, but I do because it was waiting for me to abstract it away by creating pnk.lang. When you see my repo you will understand, maybe...

#allerrorsmatter

[–] kuzn@lemmy.world 2 points 7 months ago

Trying to improve my solution of one billion rows challenge.