Why are you traveling to make a call? You could just call.
Why are you traveling to make a call? You could just call.
If you gave him an enema he could be buried in a matchbox.
That’s what Christopher Hitchens said about Jerry Falwell when he died. It applies equally to trump.
That’s what I heard. That’s what people are saying.
Ah I didn’t realize most people have moved onto OnceCell. The issue with both lazy static and oncecell is that they can only be assigned to once. You need a global mutable state, so neither OnceCell or lazy_static are the right choice.
You’re going to be fighting the borrow checker if you try to have global mutable state. It will bite you eventually. You can potentially use an interior mutablity pattern along with a mutex. Have you looked into interior mutability?
Maybe lazy_static? Personally I’d just pass a borrow to the vec around. It’s very common for programs to have some global state that they pass around to different parts.
Lol not a great name choice. Wish I would have thought of it though.
I get why the binary is there, but there really should be a simple way to force compilation instead of downloading a precompiled binary.
Serde is incredible though, so it can get away with basically anything it wants.
No, I haven’t. He keeps getting away with shit.
I haven’t seen any evidence he will ever face consequences. I hope I’m wrong.
That’s exactly what this is.
Ideally, all of these values should be represented in memory exactly the same way:
That would make the game hard to play, since you’d have to think about where your move would end up since it won’t stay on the cell you click.
I think you’re wanting to store them that way so that you can easily check for win conditions, maybe? But that’s the wrong approach. Store the cells as they appear to the player, in a 2d Array (or 1d Array with indexing math. That’s how I’d do it).
Then you can take advantage of symmetries in your win condition code, if you like. But it really couldn’t be much simpler than counting the matching cells in each row, column, and diagonal. That’s just 8 groups of 3.
How are you running the executable? From command line?
Good luck with it. What’s it called?
Gotcha. I unfortunately decided to give up on trying to do this in Rust. I’m trying out JUCE since it’s industry standard. I’m already bashing my head against the wall with this C++ garbage. Hopefully the gui scene looks better for rust soon
For real. Unless he’s converting between results and ints millions of times a second, I think he’s going to be just fine using the idiomatic solution. That transmute shit I’d wack lol
So what! Who cares if it’s free? Write first, profile and optimize later. Not everyone cares about whether the conversion is free. Simply matching and converting to the right integer is fast enough.
Unfortunately, you are correct. We’re doomed.
I once saw a comment where a guy said that before the internet, if someone wanted to fuck toasters and told anyone, he would be shamed and made fun of to the point where he’d never bring it up again.
With the internet, if someone wants to fuck a toaster, they can go online and find a while community of people who also enjoy fucking toasters, complete with guides and recommendations on the best toasters to fuck.
Its absurd, but it illustrates a great point. So yeah, we are fucked. Pandoras box is open.
Agreed. I also believe we should all stop showing up for work until we are guaranteed health care, a living wage, and reasonable housing prices. We shouldn’t contribute to system that works against us.
I deleted my 14 year old reddit account when they pulled their shit. Then I recently created a new account because I need to be able to get answers to specific programming questions sometimes, and lemmy doesn’t have the population of users that reddit still has. I generally post on both lemmy and reddit, but I almost always get more answers on reddit.