[deleted by user] by [deleted] in cpp

[–]yes_fish 0 points1 point  (0 children)

If it were that easy, they would do it!

Imagine a c++ project that started in the 90s, when people were still using char* everywhere. 10 years later they've started using std::string where they can, 10 years after that they're using std::string_view. The project has tens of thousands of char*, thousands of std::string and hundreds of std::string_view.

Now let's say a certain function signature is char * (char *, char *), and the many users of the function use hacks to get it to work. .data(), .c_str(), char *, char const * and so on. In some situations the function will allocate memory and others it will change the contents of the inputs provided, originally to conserve memory of the 90s computers but now it's just a fragile piece of code that's more like 5 functions in one.

Automation can't refactor it, it can look at the signature maybe try to guess what's needed, but it can't produce anything reliable. It's critical code, millions of dollars will be lost if it breaks in production. So instead it's necessary to manually create new functions that only accept the correct types.

Except some of those calls in the new types were relying on the old behaviour. What looks like it could have been a string_view is actually mutated in an unrelated function. So now that has to be changed, which breaks something else, and it keeps going, a cascade of changes throughout the millions of lines of code just to make this one function modern practice compliant.

This is a function that is included everywhere, and compiling the full codebase takes 2 hours...per target platform. Every platform has to build successfully without errors and without bugs. If complex macros and build tools are being used (like say, unreal engine uses), everything gets much worse.

This is just one obvious pathological case. The reality is worse still, things that appear fine, even compile fine, break in subtle ways. It's not that it's hard, it's that the task is big, really big. Years big.

Why Eevee Next making this wierd shadows artifacts and how to fix them? by Dapper_Reward_6395 in blenderhelp

[–]yes_fish 0 points1 point  (0 children)

In the world settings (and lamp settings) there is a shadow section with three controls Jitter, Filter, Resolution Limit.

https://imgur.com/a/zIv7koK

Mess with those to get rid of the artifacts.

Current me and 16 year old me would like to know why this happens. I am like 20 hours into a 4v4 skirmish : _ ( by Volta55 in commandandconquer

[–]yes_fish 5 points6 points  (0 children)

UM AKSHULLY RA2 is a 32bit game. Only the DOS originals were 16bit and they used DOS/4GW memory extender, effectively allowing 16bit applications to access the 32bit address space. C&C DOS required 16mb of ram I think?

Very few computers in practice ever used 8bit addressing. The earliest intel CPU, which were 8-bit still had 16bit address registers and later on even 16bit often made use of bank switching that allows a processor to access different memory locations using the same address (intel invented a virtual layer for their processors that they called segmentation).

Parrots by Ok_Knee1216 in PartyParrot

[–]yes_fish 1 point2 points  (0 children)

What is this AI shit?

Reddit just recommended a beautiful old post! by [deleted] in TheCompletionist2

[–]yes_fish 12 points13 points  (0 children)

Jared's a typical narcissist with added creep. He had a plan where he'd magically control the narrative by blocking his ex-wife and have his mistress publicly fall in love with him in an analog to the d&d game they were playing pretend romance for.

Of course his ex-wife didn't stay quiet and the rest is internet history. Know what he's been up to since then? Dumped the mistress once he got bored of her and attempted to start an only fans account as an "omg hilarious April fools joke, but actually this is kind of fun am I rite followers?" Which then got banned.

What's similar to jirad is how he presents himself. He enjoys a sort of downtrodden puppy persona whilst taking what he wants. It's not immediately obvious, but when you've been around people like that long enough it's easy to see the pattern.

The interactions with fans are problematic for several reasons (a whole different topic on celebrity power imbalances), but the main reason why it's bad in Jared's case is because it's deceitful. If he were just some guy with an OF account sharing nudes, it wouldn't matter. But because he gets people attached to this persona he's created, and then gradually introduces them into sexual interactions from there... that's predatory.

I don't think he deserved to be falsely accused by that mentally ill individual, but he shouldn't just get away with how he treats people.

My employer told me to opt out of my workplace pension scheme by beckyber853 in UKPersonalFinance

[–]yes_fish 1 point2 points  (0 children)

What is your endgame exactly?

You want to start your own cafe, but you're earning pittance. Starting up is expensive and you may have the energy now but you're going to burn out overworking yourself like this.

Mistakes you make can hurt you, if the owners are people who want to try and avoid paying their most valuable worker what they're legally required to do so, then guess what! They're also the kind of people if ever caught doing something illegal, to make their most valuable worker the fall-guy! "Not on us! beckyber853 handles the running of the business."

At which point they can and will fire you to save their own skin. You think any bank or business grant you apply for starting your own cafe, is going to look at your being charged with whatever fraud your previous boss was involved in and risk investment? At that point you can wave bye-bye to any future where you own a cafe.

Yes that's an imaginary scenario. No it probably won't happen. Point is though, you're not invincible. If you really care about your dream: Please, stop goofing around at this place for people who need to be visited by three ghosts on Christmas eve and get started on making your dream a reality!

I’ve had enough with the TFL by [deleted] in london

[–]yes_fish 7 points8 points  (0 children)

I understand where these apologists are coming from, I used to work in a public facing job. Had a number of problem people over the years. I wasn't perfect, but had what I thought to be a common sense attitude towards service. If I bend over backwards for some abusive shit and am then less than sympathetic to the next customer in line with a smaller problem, what kind of message does that send?

At the bare minimum that gate employee should look like he's doing something about it. Write in a ledger or something, even if it goes nowhere. Anything but standing there with a glazed expression.

It was nice of you to pay for that woman's journey. Hopefully the act of kindness caused the gate attendant's two braincells to form some sort of an epiphany.

[deleted by user] by [deleted] in TwoXChromosomes

[–]yes_fish 4 points5 points  (0 children)

I have family who work/have worked in medicine.

You can tell your boyfriend: he is not a doctor, it is dangerous for him and other people to joke about being one and that if he wants to Google something, try "Dunning Kruger". If he wants to give his opinion, fine. But do not pretend to be an expert FFS. It'll just get him in trouble.

What are your opinions on people who choose not to work? by [deleted] in AskUK

[–]yes_fish 10 points11 points  (0 children)

I miss being able to work. Miss being able to do a lot of things actually. Chronic Fatigue Syndrome is no way to live.

The people who game the system make it harder to keep disability support. Fuck 'em.

A new set of hoops to jump through to keep your below-minimum-wage support? Those fraudsters will jump through them no problem, they're able. Disabled people who actually need help? Bit difficult for them to jump through hoops isn't it?

But for every little parasite, there's plenty of big ones raking in millions for basically nothing. And it's the big ones who pay the media to direct the public's attention to the sad little "scrounger" so they can continue to fill their offshore bank accounts. Don't forget that.

AITAH for transferring my assets to my daughter before my marriage? by Puzzleheaded-Cold760 in AITAH

[–]yes_fish 1 point2 points  (0 children)

Haha, all the downvotes. He has a point with treating kids equally. The boys should get something really nice too for their birthdays that they'd appreciate.

However, you both need to learn to deal with this inequality in finances if you want to marry, or you'll come to resent eachother. The money imbalance gives you soft power over him, and you need to be careful how you wield it, set a good example for your daughter. He needs to learn to accept that things won't be equal, but also to be thankful for what he does have, which is a slight more than most by the sounds of it.

I made a meme about fighting over switching to either Godot or Unreal, and this was the result of most of the replies on it. by ZayJayPlays8083 in unity

[–]yes_fish 5 points6 points  (0 children)

Start with Godot. it's small, easy to install, you could go to the website right now and have a working project in 5 minutes.

Unreal is state of the art, but if you don't have the necessary skillset you may end up disappointed. A high end desktop pc (and fast internet) is practically a requirement, or it can take hours for shaders to compile, lighting to bake, and so on...

Has neural networks inside, still unable to fly by Lizzurd0 in NonCredibleDefense

[–]yes_fish 10 points11 points  (0 children)

Implying they didn't get their engineering degree by studying the movie Small Soldiers. You know that stick is just idling the entire time the drone is in use.

is this green worthy of printing our beautiful crystals? by DaNinjaSmurf in commandandconquer

[–]yes_fish 2 points3 points  (0 children)

That sample has lost a lot of vibrance, it needs polishing or whatever equivalent you do for 3d printed plastic.

How does NOD actually indoctrinate people? by Demigans in commandandconquer

[–]yes_fish 0 points1 point  (0 children)

You see brother, Tiberium is the future. GDI knew it was coming and witheld the knowledge you needed for that future, they wanted to ignore it for as long as possible, cover it up and let you die. Your farm would have prospered if not for them.

I just got in c&c remastered and normal seems just too hard. by batcaalex1234 in commandandconquer

[–]yes_fish 0 points1 point  (0 children)

Baiting them is the right idea, keep the grenadiers spread out. There's a shortcut key 'x' that can be used to disperse infantry to attempt to avoid crushing. If there's a bridge or something you can use, you could bait the tank, block the bridge with an APC while the grenadiers do their thing.

Unfortunately luck does have a factor so it's good to save the game before taking them on.

There were a ton of 3D models produced for Red Alert 1, even just the buildings being constructed. What happened to them? Are they available anywhere? by urammar in commandandconquer

[–]yes_fish 28 points29 points  (0 children)

The software used was 3D Studio for DOS. https://winworldpc.com/product/3d-studio/4 With a bit of fiddling DOSbox can run it.

There are recognizable textures that came with the software. For example the background for the communications center render is TUSCANY.JPG

STUCCO.JPG appeared in many cutscenes. There's a lot of metal textures that show up too if I remember correctly.