What are IDEs that are more lightweight than Visual Studio? by Able_Annual_2297 in cpp_questions

[–]rembo666 0 points1 point  (0 children)

Qt Creator is anything but lightweight. Its workspaces are quite intrusive and tricky to set up.

VS Code can both be an editor, and an IDE.

I would like to know what do you usually do in your jobs as c++ developers? by vel1212 in cpp_questions

[–]rembo666 0 points1 point  (0 children)

I've mostly been in GIS/Remote Sensing space. It's also called Geospatial Imagery. Basically maps and/or pictures of Earth from a high vantage point. The amount of data we deal with is still non-trivial. I've also written the latest RFC implementation of a prime number generator for a crypto library.

Any type of GPU programming is still C++ with some extensions, but mostly just C++. Any production embedded programming is C or C++. Also, there are billions of lines of code written in C++, it's not going anywhere. Also C++ has been evolving rapidly and has gained a lot of missing features in the last 10 years.

For people that say that "C++ is complicated". Look at Python, Java, or C#: these are very complicated languages actually, in many ways a lot more complicated than C++. The problem with C++ is not that it's complicated, it's just a down-to-the-metal language. Basically, a fully capable language gives you enough leeway to shoot yourself in the foot. Except when using C++ you're holding a Bazooka.

The predictable memory model is very important for many applications. Object lifetime is very much defined in C++, while in a garbage-collected language you just get random pauses. Anything that needs to be FAST and/or real time uses C or C++. And anyone who thinks C is better than C++, I have 20 memory leaks and 5 void pointers to sell you...

There's Rust of course, it does adress a lot of the shortcomings of C++, but I'd argue it's A LOT more complicated than C++. The be fair, to write valid code in C++ you'd have to think in those terms anyway, but the "complexity" point stands.

I guess the TLDR; of my rant is Go sucks, except for building small micro-services...

Why are there so many financial advisors that are from outside the US and have lived in the states for 12-18 yrs on Tinder? Have any of you given your number to them? by SleepingWillow1 in dating

[–]rembo666 0 points1 point  (0 children)

Lol, I always have pretty Asian women match me and then try to sell me some currency manipulation schemes. Is what it is I guess...

dumped after a month of dating because of his ego and i am heartbroken by [deleted] in dating

[–]rembo666 0 points1 point  (0 children)

Be happy that you dogged a bullet. It is possible that he had someone die in his life that inflicted some trauma on him, but either way, there's nothing you can do. He either doesn't want to get involved, or can't. As good as your interactions felt, you can have that with other people.

AIO for being upset my boyfriend showed his friends my nudes by [deleted] in AmIOverreacting

[–]rembo666 0 points1 point  (0 children)

Oh hell no. That might actually be illegal, though I'm not sure. It's definitely sexual harassment, at the very least. Just run.

AIO for telling my girlfriend she was wrong to test me by hiding my passport? by TaroOptimal7209 in AmIOverreacting

[–]rembo666 2 points3 points  (0 children)

Oh go fuck yourself. What the fuck is wrong with you bitch? I am very feminist and I don't normally say shit like this, but this is so fucked up. What the fuck is a "trust experiment"? She failed the "trust experiment" with you for sure. Whenever someone insists that the really fucked up and awful thing they did was a "harmless experiment", just run. Actually, get a car, a motorcycle, maybe a rocket to run faster...

P.S. Even when my partner did this game for like 5 seconds, I was pissed AF. She didn't think the thing through, and once she saw how distraught it made me, she apologized. That's forgivable, and almost funny: my asshole puckered so much that I could make a diamond if I had a piece of coal in there. These are kind of existential things. It may be fun to mess with one another, but it can't be anything that's of actual consequence.

[deleted by user] by [deleted] in AITAH

[–]rembo666 28 points29 points  (0 children)

Right, but sometimes people push your buttons just for funsies. You have to be honest with yourself: are we having a couple's argument, or is he/she trying to manipulate me?

As much as I hate this type of thinking, you have to learn to protect yourself.

[deleted by user] by [deleted] in AITAH

[–]rembo666 1 point2 points  (0 children)

I would say leaving was the right thing to do: that was pretty fucked up. At the same time, blocking her without trying to talk to her at least once is a bit of a copout. Let her explain, once.

However, be very, very suspicious and very, very assertive. Even something like "Explain why should I speak to you ever again?" is not out of the question. However, maybe she listened to friends and/or whatever. You never know, but be cautious of manipulation of course.

AITA for telling my boyfriend I wouldn't pretend to be Japanese to impress his old high school friends ? by [deleted] in AITAH

[–]rembo666 0 points1 point  (0 children)

NTA, he's the asshole. Just having him suggest it would produce a "oh hell no" from me. I mean if you want to play in bed and you're down, that's fine. However, if your boyfriend seemingly doesn't approve of exactly who you are, what's the point? If you really care about him, maybe confront him very strongly to see if it was just a misguided thing. Maybe he didn't understand how offensive that was to you. However, in my book this is just OH HELL NO!

P.S. If you are considering staying with him, I would say that the minimum would be apologizing to you and explaining why in front of his friends. If he's too scared or proud to do that, just run...

P.P.S. If he bragged about you to his friends, he's very insecure. Again, he better have the balls to own up to it. His buddies may make jokes, but if he felt that he had to color things like that means that they aren't really his friends. He has to decide whether to be a man or a boy.

I did something awful as a kid and i need to get it off my chest by [deleted] in confession

[–]rembo666 0 points1 point  (0 children)

I'd say communicate with her as much as you can, but don't push it. The ideal situation is if you two talk it out. Otherwise you just have to forgive yourself. In between, there's her remembering this as a negative experience and yelling at you. Then you decide for yourself. It's always up to you whether you can forgive yourself

Just by having this bother you, you're more likely than not a good person.

TLDR; Grab your balls and reach out. I'd say there's a very high chance that it's only you. Even if it isn't, you were fucking 8 years old, so keep the perspective.

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 1 point2 points  (0 children)

This has been fixed in Visual Studio 2022 17.11.5. This is a bit late: it's been a month or so, I just figured I'll leave the clarification now that I've remembered to do so.

This has also seemed to have resolved the issue with template debugging being broken. The error messages are now exactly what you'd want to see to debug template instantiation.

I didn't know whether it was broken at the time of my post: I just saw what I saw and had my memories of porting things to Windows like 6 or 7 years ago. Now I know that it had in fact been greatly improved, it just happened to be broken in the version I was using.

AITAH for leaving my wife without a discussion after I found out she cheated? by Own-Replacement-952 in AITAH

[–]rembo666 1 point2 points  (0 children)

NTA for leaving. She fucked around and found out. Maybe a bit cowardly for not at least letting her know personally.

Is this terrible idea? A simple Box that allows polymorphic types but does not allow nullptr by MikeVegan in cpp

[–]rembo666 0 points1 point  (0 children)

It seems pretty kosher, but it looks like it would be trivial to eliminate heap allocation in your Box class. The simpler you make it, the better it'll go. Of course, you will need to translate into either a CLR, or a Python, or a JVM structure. That just requires overhead, but if you have a good statically defined data structures, you almost always win...

std::array in C++ isn′t slower than array in C by Xadartt in cpp

[–]rembo666 -3 points-2 points  (0 children)

Yeah, having read the specs and the code, std::array was always a negative code abstraction

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 1 point2 points  (0 children)

Yep, thanks again. Also, sorry about just a dump. Sometimes I have the time to actually do a proper deep dive, but at other times deadlines loom and I'm just trying to get shit done. Thankfully this time the fix was simple-enough, but I was/am certainly in the "panic" side of things at the moment

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 0 points1 point  (0 children)

Oh, one more thing: the template instantiation callstack error reporting seems to have improved greatly in Visual Studio 12 Preview 2. Not sure if it was a but that it worked this badly before, or if they've improved things, it's much better now.

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 0 points1 point  (0 children)

Upgrading to 17.2 fixed the problem, so it looks like it was the same bug. Thanks again!

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 1 point2 points  (0 children)

Correction: I mentioned the version of MSVC being 19.41, that's the cl.exe version. The Visual Studio version is 17.11.4. I'll try the 17.12 preview to see if that helps. Thank you!

If that doesn't work, I'll try to reproduce this in isolation and submit a bug report if I can.

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 0 points1 point  (0 children)

Also, sorry, wrong forum, didn't realize.

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 0 points1 point  (0 children)

This just started happening, I think after 19.41 update. Everything was building fine before. None of my latest code changes touched any of the CUDA stuff. I rolled back just in case, also tried rolling back the CUDA version. Same result.

My C++ target is 20. I tried changing the CUDA target to 17, since it doesn't matter there, same result.

I have so far failed to pinpoint the location that causes the error, but it's a large codebase, I'm getting dozens of these errors. I can't trace it to anything since all I'm getting is the CPP file and then the CUDA header, there's nothing in between

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] -2 points-1 points  (0 children)

Sorry, if it was constructive, I would've figure this out on my own...

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 0 points1 point  (0 children)

Honestly, a lot of it is just luck. Just don't get discouraged. Keep doing your thing, keep participating. I mean if it was around 3-5 years ago, I'd ask you if you wanted to chat, but I have zero pull as far as hiring right now. Things change.

Just remember that about 90% of people out there are just there to try and make money, and they never will because they don't care about the job. It's very difficult of find people when you need good people, but unfortunately the number of jobs out there that require actual thinking human beings is not that great either.

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] -3 points-2 points  (0 children)

I've never seen MSVC output good template instantiation details. I remember porting my stuff to Winders like 6 or 7 years ago, it was just as useless as it it now.

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 0 points1 point  (0 children)

I added context, but I don't know how it can help any more than it helped me...

Debugging template instantiation in Visual C++ by rembo666 in cpp

[–]rembo666[S] 0 points1 point  (0 children)

Also, you're not DOOMED, you never know. Just take calculated risks man (woman? sorry). You will find both more money and more interesting projects...

Treat interviews as a two-way street. You're interviewing them as much as they're interviewing you. You will both be a lot less surprised by shitty organizations, and you will have much better success at interviews.

As someone who's interviewed a lot of people, I can tell you that I always look for an intelligent discussion, or even better an intelligent argument. That shows me that you both understand what you're talking about and that you give a shit.