kia

joined 1 year ago
[–] kia@lemmy.ca 40 points 2 weeks ago (3 children)
[–] kia@lemmy.ca 22 points 2 weeks ago (8 children)

Now could you explain it like I'm 4?

[–] kia@lemmy.ca 8 points 3 weeks ago
[–] kia@lemmy.ca 0 points 3 weeks ago (6 children)

Well that failed quickly.

[–] kia@lemmy.ca 11 points 1 month ago

At this rate, he's going to put The Beaverton out of business...

[–] kia@lemmy.ca 210 points 1 month ago (2 children)

Ask them for their bank login details so you can deposit the money directly into their account.

[–] kia@lemmy.ca 12 points 1 month ago
 

In case you haven't seen it, here's a talk regarding Rust's integration into the Linux filesystem that gets completely derailed at The Linux Storage, Filesystem, Memory Management and BPF Summit.

[–] kia@lemmy.ca 1 points 2 months ago (11 children)

When (not if) old.reddit.com is removed, there will be a huge exodus.

[–] kia@lemmy.ca 10 points 2 months ago

It's another reddit alternative.

[–] kia@lemmy.ca 1 points 3 months ago

Although it's now a larger organization, Redis was started and maintained by some guy that just wanted to make his website faster. It's very widely deployed.

[–] kia@lemmy.ca 62 points 3 months ago (58 children)

The LLM is just trying to produce output text that resembles the patterns it saw in the training set. There's no "reasoning" involved.

[–] kia@lemmy.ca 12 points 3 months ago (1 children)

It took me less than 30 minutes to transfer my LastPass vault to Proton Pass. The actual transfer took under a minute, then I just had to reorganize the folders. Definitely worth the switch.

14
rust-analyzer changelog #237 (rust-analyzer.github.io)
14
submitted 9 months ago* (last edited 9 months ago) by kia@lemmy.ca to c/rust@programming.dev
 

It seems like the key_value function has been removed from Cursor in 1.78.0-nightly. I've been using this to get the key/value pair from BTreeMap::upper_bound and BTreeMap::lower_bound.

Does anyone know why this was removed and what a good idiomatic alternative would be?

Edit: In case anyone encounters the same problem and is curious what's going on (the documentation hasn't been updated to reflect the change yet), it was referred to in this issue: 107540 changed in this commit: 8ee9693. Essentially, cursors in BTreeMaps previously pointed to specific nodes in the tree whereas now they point to gaps between the nodes. To get the node values, you need to use prev or next on the cursors returned by upper_bound or lower_bound.

10
submitted 11 months ago* (last edited 11 months ago) by kia@lemmy.ca to c/boostforlemmy@lemmy.world
 

I'm getting errors such as "Socket: CLOSED" when I try to create comments, however the comment gets created. It then brings me back to the comment editing screen where if I click create again, it keeps duplicating the comment.

Wondering if anyone else is having this issue?

Edit: I get an error when creating posts as well: "stream was reset: CANCEL"

 

This is a really simple silly thing I just realized, but I noticed I have a lot code that looks something like this:

fn foo() -> Result<(), Error> {
    // do something
}

fn bar() -> Option<()> {
    let Ok(f) = foo() else {
        return None;
    };
}

I hated that if-statement. I realized today that I could simplify to:

fn bar() -> Option<()> {
    let f = foo().ok()?;
}

And that cleaned up my code a lot. It's a tiny thing, but when it's okay to discard the error from the result, makes such a big difference when you have a lot of them!

 

It was my understanding that Proton bought SimpleLogin and would be integrating it into their products, but the aliases created by Proton Pass are not managed by SimpleLogin, correct?

What's the difference between creating aliases in Proton Pass versus SimpleLogin and how do I manage the aliases created in Proton Pass?

view more: next ›