!xYfzRmOzuehuzGadGW:matrix.org

neorg GTD

568 Members
3 Servers

Load older messages


SenderMessageTime
31 Dec 2023
@_discord_829024113296539658:t2bot.iomax397 * like here
fn main() {
    // Create a Vec
    let mut my_vec = vec![1, 2, 3];

    // Create multiple immutable references to the Vec
    let ref1 = &my_vec;
    let ref2 = &my_vec;

    // You can read from the references
    println!("Reference 1: {:?}", ref1);
    println!("Reference 2: {:?}", ref2);

    // You can still modify the original Vec
    my_vec.push(4);

    // Print the references again
    println!("Reference 1 after modification: {:?}", ref1);
    println!("Reference 2 after modification: {:?}", ref2);
}
15:05:00
@_discord_829024113296539658:t2bot.iomax397 nah
I never used threads
15:05:08
@_discord_829024113296539658:t2bot.iomax397 they scare me 15:05:10
@_discord_783655191953670214:t2bot.io.vhyrro not even tokio? 15:05:17
@_discord_783655191953670214:t2bot.io.vhyrro damn fair 15:05:19
@_discord_829024113296539658:t2bot.iomax397 actually I happen to use that 15:05:31
@_discord_829024113296539658:t2bot.iomax397 I think 15:05:32
@_discord_829024113296539658:t2bot.iomax397 lemme check again 15:05:34
@_discord_829024113296539658:t2bot.iomax397 yes I do use it 15:06:09
@_discord_829024113296539658:t2bot.iomax397 for fs operations 15:06:11
@_discord_829024113296539658:t2bot.iomax397 but not for actual logic 15:06:16
@_discord_783655191953670214:t2bot.io.vhyrro not just threads but anything that executes async can, according to Fn and FnMut, cause issues

which is why you have to do the same sorta hurdle jumping as you would if you were sending data across threads
15:06:18
@_discord_232582469457674243:t2bot.iosevoris I just loove how Rust lets you know that you‘re trying to do cool things/s 15:06:38
@_discord_783655191953670214:t2bot.io.vhyrro i was tempted to say "the same sort of bullshit" but i don't wanna sound too harsh 15:06:47
@_discord_829024113296539658:t2bot.iomax397 https://tenor.com/view/hurdle-fail-face-plant-fall-jump-gif-13497863 15:07:02
@_discord_232582469457674243:t2bot.iosevoris This however, is spiffy 15:07:05
@_discord_829024113296539658:t2bot.iomax397 vhyrro 15:40:19
@_discord_829024113296539658:t2bot.iomax397 how long until there is something testable? 15:40:26
@_discord_783655191953670214:t2bot.io.vhyrro no idea 15:40:34
@_discord_783655191953670214:t2bot.io.vhyrro until people learn to use semantic versioning i guess 😭 15:40:42
@_discord_829024113296539658:t2bot.iomax397 tbh I doubt that's rn the main blocker 15:41:32
@_discord_783655191953670214:t2bot.io.vhyrro your doubts are wrong then ☠️
I can't publish anything to crates.io because my package uses git dependencies
15:42:01
@_discord_829024113296539658:t2bot.iomax397 ooof 15:42:22
@_discord_829024113296539658:t2bot.iomax397 cringe 15:42:23
@_discord_783655191953670214:t2bot.io.vhyrro it has to because a specific team of people cannot publish a single new release of their project for over 9 months now despite having 20000 new commits 15:42:35
@_discord_783655191953670214:t2bot.io.vhyrro that project may or may not be a popular parsing library used within neovim nowadays 15:42:47
@_discord_829024113296539658:t2bot.iomax397 15:44:10
@_discord_829024113296539658:t2bot.iomax397Screenshot_2023-12-31_at_16.51.17.png
Download Screenshot_2023-12-31_at_16.51.17.png
15:51:26
@_discord_829024113296539658:t2bot.iomax397 .vhyrro you're not alone 15:51:26
@_discord_829024113296539658:t2bot.iomax397 my code just got 100000x times nicer with that 15:52:22

Show newer messages


Back to Room ListRoom Version: 9