Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)C
Posts
0
Comments
517
Joined
3 yr. ago

  • Go to crates.io, search for whatever you need. Most probably it will be multiplatform.

  • There are plenty of cross-platform libraries in rust. In fact, most of them are. Since Rust is cross-platform at its core.

  • "plugins" is not a feature. What plugin specifically do you need? Most probably you can accomplish whatever you need with a library and iced. Plugin is just a fancy word for library.

  • Yeah. That's a huge issue rust has. However, it can't be solved with Rc.

    You either do it in safe rust, by "cheating" the borrow checker and storing a size offset of the buffer instead of a reference. Or just use unsafe rust and store a raw pointer alongside the buffer.

  • Or just implement Into for your error type. ? Works for Into

  • Do you really need tauri?

    Tauri is for web devs that want to make GUIs with web tech in rust. You can do GUIs without web tech.

    If you really want to make a GUI with rust, you can use iced.

    If you just want a GUI with web tech, do it in JavaScript+html.

    If you want a GUI without web tech and don't care the language, use a GUI toolkit for your preferred language.

    Learning a GUI toolkit is hard. Learning a language is hard. Learning both at the same time is even harder than the sum.

  • Do you really need that much Rc? That is, do you really need multiple ownership for a piece of data in a single thread? It is rarely the case, many times you can get away by just borrowing that data.

    ARc is harder to avoid, since across threads you often really need the multiple ownership.

    Next is, do you need RefCell? Or would a simple Cell in some of the struct fields be enough?

  • That's what ? is for. If you have to do that manually, something is not working correctly.

  • The standard way to link in rust is statically.

    Due to a technicality, statically linking a GPL library means the final program has to be GPL too. So they basically can't make GPL libraries.

    Why not use LGPL instead of MIT? Idk.

  • Which doesn't mean it was written by an LLM. This has been standard corporate speak from before LLMs existed.

  • The problem is not what policies I support.

    The problem is aunt Ben that lives in the middle of nowhere. Who hates the gays and communists. But lives paycheck to paycheck.

    The social left/social right split is about 50%. Some places higher, some lower. But there is a LOT of working people. And most of those will not vote against their own interests. It's only when they have to choose between "not my best interest, but at least there won't be drag queens in my son's school" and "probably my best interest, but they also want to put drag queens in my son's school. So they're probably lying about the good things, politicians always lie". They'll choose the latter.

    It doesn't matter that there is no political party that wants to put drag queens in schools. It is only important that aunt Ben thinks that is true.

    If you focus on the economy, and ignore the social left, will the left gain enough votes to have power.

    Only when you have power you can slowly go for the social issues.

    This is what the right has done in the US. They've been claiming they'll bring the good economy, and just leave the social issues as they were before. Slowly the US economy has drifted rightwards. So much so that the only 2 parties are economic right. So now it is the time to turn the social right on. They went full fascism and are killing the minorities and whoever supports them in protest.

    Just follow the same playbook. "We're leaving the rules as they are, we won't engage in discussions about culture wars", "but we're gonna tax the rich and give US citizens universal healthcare". Once both parties are pro-universal healthcare, go for public transport, then anti-anti-union measures. And once the economy is leftwing enough, you can start with the culture wars.

  • I'm not talking about the US. My country has more than 1 leftist party. But they focus on the social-left side and forget about the economic-left one.

  • Finally someone in the left that gets it.

    I don't want to vote left because of progressivism. I want to vote left because boss earns a dollar while I earn a dime.

    For a long time I've been saying, leftist parties would have way more success if they focused on helping 90% of the population (the working class) instead of the minority 1%. They will help minorities the most by helping the working class anyway. They can't help the minorities if they don't get the majority's vote.

  • Completely disagree. Wine grapes are good too. In small quantities though, eat too many of them and there's a flavour that starts accumulating, which turns you off from eating too many.

  • Can't you just reserve X bits of the primary key to store a shard ID?

  • About a century ago was WWI. Idk about that.

  • Deleted

    Permanently Deleted

    Jump
  • In this example all 3 observers are in the same reference frame. That is, each of them are moving at the same speed. This is not what the meme is about. In this example the night from Al would reach you 0.06s after he lit it. Which is expected in Newtonian physics.

    The problem of the speed of light being the same for all observers is when they move at different speeds.

    The scenario is: Alice is inside a train moving at almost the speed of light, and Bob is outside it, looking at the train. Let's set that light moves at 1m/s (for simplicity) and the wagon Alice is in is 1 meter long.

    Alice is at one end of the wagon, and turns a flashlight on. Alice will see the other side of the wagon illuminated after 2 seconds (since the light has to reach the other end and bounce back). Since the wagon is 1 meter long and the speed of light is 1m/s.

    However, when she turns the flashlight on, Bob is also looking. Let's say that the train moves at 0.99m/s. In that case, after 1 second the light would have traveled 1 meter, but the wagon (and Alice) has traveled 0.99m, therefore the light is only 0.01m away from Alice.

    To summarize: after 1 second, in Alice's frame of reference, the light has just touched the other side of the wagon. Meanwhile, in Bob's reference frame, the light has only moved 0.01m away from Alice.

  • That explains why everyone in anime seems so fucking dumb.

    "In order to kill the guy, we have to shoot him in the head"

    "So you are saying that we have to shoot the guy in the head in order to kill him?"

    Yes you little shit, that's exactly what he said, with the exact same words. It's so annoying.