pranaless

joined 1 year ago
[–] pranaless@beehaw.org 3 points 9 months ago (1 children)

I believe Switzerland has direct democracy, no?

[–] pranaless@beehaw.org 23 points 9 months ago (3 children)

No.

Who gets to determine what counts as merit? If it's the people with merit already, it's trivial to corrupt such a system. Think billionares.

And then, is everyone even given the opportunity to display their merit and if they are, is their merit recognised? I'm concerned esp. about people perceived by society to have inherently less merit. Think disabled people, old people, young people, women, people of colour, queer folks, etc.

And then, how does the system ensure that merit wasn't faked or even just exaggerated, how does it investigate and how does it respond? Does a sufficient amount of merit allow someone to cover up such things? If implemented, can and would this investigation power be used to punish people with low merit, those that are the most vulnereable?

And then, why do people that are not constantly being useful to the system deserve less and esp. if meritocracy is the only system in place, do some people not deserve to live at all? Here I'm talking about people that want to have a hobby or two or want to spend time with their friends and family, basically anything that doesn't give merit. I'm also talking about people that can't or don't want to be useful to society.

Beyond all this, meritocracy aims to replace the people's purpose in life with "being useful". And that's just a really miserable mindset to live with, where you feel guilt if you're not being useful all the time, where you constantly have thoughts like "am I good enough" or "am I trying hard enough".

[–] pranaless@beehaw.org 3 points 11 months ago

Hi hi, MangoKangaroo! Wow, being called by a name that I chose myself feels really nice.

[–] pranaless@beehaw.org 5 points 11 months ago (2 children)

I cracked. Hi! I'm Prana, a trans girl.

[–] pranaless@beehaw.org 3 points 1 year ago* (last edited 1 year ago)
[–] pranaless@beehaw.org 1 points 1 year ago

Yes and no. While coreutils does provide an echo binary, shells also have a built-in for optimisation purposes.

At first I had the code calling the binary directly, but then changed it to spawning a shell (and so using the builtin). It's very cursed either way.

[–] pranaless@beehaw.org 31 points 1 year ago (5 children)
use std::process::Command;

fn main() {
    Command::new("sh")
        .arg("-c")
        .arg("echo Hello World!")
        .spawn()
        .unwrap();
}

Like this?

[–] pranaless@beehaw.org 3 points 1 year ago (1 children)

OnceLock is the wrong primitive for this. Use a Mutex or an RwLock instead? You can initialize either of them with an empty array at declaration, so you don't need the set_log function. In push_log, do a .lock().unwrap() for a mutex or .write().unwrap() for an rwlock to get mutable access to the vector.