I use a bit weird development setup. Since VisualD, the official plugin for VS adding D language support, does not have dub support (which D's official package manager, and without it a lot of things get very hard to do, like dependency management), I have to use VSCode as my main code editor, build my code in command line, then...
Rudy shouldn’t be going through this, Rudy didn’t do anything…but I look at some of the other people, now, I didn’t know a lot of those people. I don’t know that I even met a lot of those people, but some I do. And their lives are destroyed by these maniacs. These are animals, these are vicious animals that have...
I’m not trying to cause an argument but when Reddit pulled it’s bs - I said that’s enough. I gave up my Reddit addiction and didn’t open it or visit the site for over 30 days....
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.
So, serde seems to be downloading and running a binary on the system without informing the user and without any user consent. Does anyone have any background information on why this is, and how this is supposed to be a good idea?...
Let me start by noticing, I am not interested in playing a game of Tic Tac Toe, nor programming any form of “AI”. With that out of the way, let me give some background:...
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.
I always end up in decision paralysis because I think of way too many possibilities. Is there a way I can avoid brackets? If I am able to drill into studs should I just use normal wood screws? I’ll be using it as a tea/spice shelf.
If those hooks on the top corners are a multiple of 16" apart, and they line up with studs, you could use some 2-3" screws through those into studs.
If they don’t line up with studs, you could stain a piece of lumber close to the same color and screw it to the wall through the studs and screw the shelf down to that board. It would act as a ledge for one of the shelves to sit on.
There’s no back so there’s no easy way to directly screw this shelf to the wall. You’ll have to get creative.
You could find the studs and put screws angled through one of the shelves into the studs. Screw from underneath the shelf if it’s lower than eye level, above the shelf if it’s above eye level. This is so you don’t see the screws.
You could get realy fancy and use a pocket hole jig to make nice holes for your angled screws.
If you can only hit one stud, you should hit it in two places vertically if possible. Bottom shelf and top shelf if you can. You can still add some anchors if you need, but that works for most things. I hang cabinets into single studs all the time just by screwing it in two spots. It will work as long as the shelf or cabinet is built well enough.
I started trying out JUCE. It’s a framework for making audio plugins (VSTs). Though I think I’m going to give the rust solution another shot with Vizia.
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
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.
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
Visual Studio 2022 debugger no longer works for programs written in D, I need an alternative
I use a bit weird development setup. Since VisualD, the official plugin for VS adding D language support, does not have dub support (which D's official package manager, and without it a lot of things get very hard to do, like dependency management), I have to use VSCode as my main code editor, build my code in command line, then...
Trump Incredibly Claims He Never Heard The Word ‘Mugshot’ Before He Had His Taken: ‘They Didn’t Teach Me That’ At Wharton (www.mediaite.com)
Rudy shouldn’t be going through this, Rudy didn’t do anything…but I look at some of the other people, now, I didn’t know a lot of those people. I don’t know that I even met a lot of those people, but some I do. And their lives are destroyed by these maniacs. These are animals, these are vicious animals that have...
If it took you X hours to get somewhere, for how many hours would it feel worth it to stay at bare minimum?
Would you want to stay for at least X hours? 2X? 4X? Something else?
Is anyone else having trouble giving up Reddit due to content?
I’m not trying to cause an argument but when Reddit pulled it’s bs - I said that’s enough. I gave up my Reddit addiction and didn’t open it or visit the site for over 30 days....
What is going on with serde? (social.treehouse.systems)
So, serde seems to be downloading and running a binary on the system without informing the user and without any user consent. Does anyone have any background information on why this is, and how this is supposed to be a good idea?...
Dioxus 0.4: Server Functions, Suspense, Enum Router, Overhauled Docs, Bundler, Android Support, and more (dioxuslabs.com)
Trump's legal advisers urge him to cancel press conference to refute Georgia allegations: Sources (abcnews.go.com)
Trump had announced a plan to release info on alleged election interference.
In Rust 1.73.0, it'll be easier to use thread_local Cells and RefCells (hachyderm.io)
What is the best memory model for a Tic Tac Toe grid? (References and ownership)
Let me start by noticing, I am not interested in playing a game of Tic Tac Toe, nor programming any form of “AI”. With that out of the way, let me give some background:...
Why are modern programing languages so materialistic? (forum.soraya.web.id)
Because they are object oriented. It's like the expensive body language style of a sexy hijaber girl.
how would you opt to wall mount this?
I always end up in decision paralysis because I think of way too many possibilities. Is there a way I can avoid brackets? If I am able to drill into studs should I just use normal wood screws? I’ll be using it as a tea/spice shelf.
New to Rust: How does Rust handle dynamic libraries
I’m super new to Rust, like a day old really....
inconsistent documentation for iced-rs
Im trying to use iced for the gui in an audio plug in I’m building, but I keep seeing discrepancies in how to accomplish this....
Inconsistent documentation for iced-rs
Im trying to use iced for the gui in an audio plug in I’m building, but I keep seeing discrepancies in how to accomplish this....
Can I make Result<T, E> an integer?
For context: I am trying to write a Rust wrapper over a C library....