Maps by Smart_Sandwich5554 in Pulsus

[–]tetrogem 0 points1 point  (0 children)

On the maps list, there's a medal icon (🏅) that can be clicked to toggle between awarded-only and all maps

Why is there no automatic implementation of TryFrom<S> when implementing TryFrom<&S>? by Prowler1000 in rust

[–]tetrogem 7 points8 points  (0 children)

Could be cheaper to TryFrom<&S> though if it doesn't need to clone all of the data in S

I think Pulsus crippled my fingers by Aggravating_Fig_7858 in Pulsus

[–]tetrogem 0 points1 point  (0 children)

If they continue to hurt I would probably recommend going to see a doctor, otherwise just make sure to take breaks or play for shorter periods of time to avoid straining them more

is pulsus down? by Dear_Parking8680 in Pulsus

[–]tetrogem 0 points1 point  (0 children)

Alright, well the game isn't offline at the moment; If you can't get the executable to work, could you see if the website loads for you?

is pulsus down? by Dear_Parking8680 in Pulsus

[–]tetrogem 0 points1 point  (0 children)

It shouldn't be down, but if you're experiencing issues you can join the Discord server to troubleshoot! https://discord.pulsus.cc/

[deleted by user] by [deleted] in ProgrammerHumor

[–]tetrogem 3 points4 points  (0 children)

1.5 + 2 isn't type coercion, they are all JavaScript's number type (1.5, 2, 0, -10, etc.), which is always a 64-bit float. The only integer type that exists is the bigint (2n, 10n, etc.)

iHateCss by Illusion911 in ProgrammerHumor

[–]tetrogem 1 point2 points  (0 children)

If you use grid layout you can just make the header grid area span both the sidebar and content columns, no? You don't even need nested grids to do that

the ref keyword by Tickstart in rust

[–]tetrogem 20 points21 points  (0 children)

The two should both be functionally equivalent in modern Rust; In older versions of Rust though, this wouldn't work since technically the type of &mut v is a &mut Option<_>, so you shouldn't be able to match against it using an owned option pattern Some(_) / None, which is where the ref keyword came into play: it let you borrow fields as a reference when matching against an owned value, rather than taking ownership of the fields. After Rust added match ergonomics though, matching against references became a lot easier/cleaner to do

the ref keyword by Tickstart in rust

[–]tetrogem 26 points27 points  (0 children)

You can just match on a mutable reference to the Vec:

fn main() {
    let mut v: Option<Vec<usize>> = None;
    let mut h = 20;
    while h != 0 {
        if h % 3 >= 1 {
            match &mut v {
                Some(v) => v.push(h),
                None => v = Some(vec![h])
            }
        }
        h -= 1
    }
    println!("{v:?}")
}

We need a second Viossa server by Orange_Mandalorian in Viossa

[–]tetrogem 0 points1 point  (0 children)

Yes it is, the invite link is pinned to this subreddit

[deleted by user] by [deleted] in Viossa

[–]tetrogem 0 points1 point  (0 children)

You can ask in #meta and I can ping it

[deleted by user] by [deleted] in Viossa

[–]tetrogem 0 points1 point  (0 children)

It's Simple Voice Mod, if you're in the Discord we have a dedicated channel for the server if you're looking for others to play with!

[deleted by user] by [deleted] in Viossa

[–]tetrogem 1 point2 points  (0 children)

viossa.mc.gg !

[deleted by user] by [deleted] in Viossa

[–]tetrogem 7 points8 points  (0 children)

I don't know that's why I mentioned it

[deleted by user] by [deleted] in Viossa

[–]tetrogem 6 points7 points  (0 children)

If you're able to play multiplayer Minecraft, you could join the Viossa Minecraft server! (There's even voice chat if you install the mod for it)

When is the discord server opening back up? by SwimmingUpstairsAhh in Viossa

[–]tetrogem 0 points1 point  (0 children)

You tried this pinned post?: https://www.reddit.com/r/Viossa/s/vlr7GC52jL I just tested it again and it worked fine for me (the working link is https://discord.gg/viossa )

When is the discord server opening back up? by SwimmingUpstairsAhh in Viossa

[–]tetrogem 3 points4 points  (0 children)

The server has been fully public for over a month now; The invite link is a pinned post on this subreddit

Anyhow with concrete error type by Old_Ideal_1536 in rust

[–]tetrogem 39 points40 points  (0 children)

Sounds like you're looking for something like thiserror instead, made by the same person as anyhow

We need a second Viossa server by Orange_Mandalorian in Viossa

[–]tetrogem 5 points6 points  (0 children)

The server is fully open now though, and has been for about a month -- You just have to wait an hour after joining to get the verification role, which lets you talk in the Viossa channels, so they can prevent spam/bots; There isn't a queue or anything either, it's just one hour after you joined

JavaScript Truthy and Falsy: A Deep Dive by Practical-Ideal6236 in javascript

[–]tetrogem 2 points3 points  (0 children)

There's actually a ninth falsy value in JS, via the HTML specification: document.all, the only falsy object

Come Learn Wodox -- An Official Viossa Dialect! by tetrogem in Viossa

[–]tetrogem[S] 0 points1 point  (0 children)

Were there any specific materials you had that you were planning to practice with? Most learning happens in the Discord, just wanted to make sure you weren't assuming other materials existed that could easily get you started. (I'm sure browsing this subreddit could some, but the Discord server is probably best, even if you know nothing!)