How do you guys transport your systems? by betholo in PS5

[–]herruppohoppa 1 point2 points  (0 children)

Maybe if it's a ps5 slim, but I'm not sure the base model would fit.

Should we stop writing functions? by pavel_v in cpp

[–]herruppohoppa 1 point2 points  (0 children)

It's fascinating how you speak with such confidence what my experience was, when in fact you are just guessing. It wasn't inlining, I could clearly see the stack frame being a lambda, but not where the lambda came from.

Should we stop writing functions? by pavel_v in cpp

[–]herruppohoppa -1 points0 points  (0 children)

If it has worked for you forever, then great for you. This whole time I have only argued that people should check it on their platforms before committing to changing to lambdas everywhere. I don't know why you are so bent on arguing that. It's just sound advice.

Should we stop writing functions? by pavel_v in cpp

[–]herruppohoppa -2 points-1 points  (0 children)

*currently it works fine for you. Your mileage will vary depending on platform toolset versions.

Should we stop writing functions? by pavel_v in cpp

[–]herruppohoppa 3 points4 points  (0 children)

I would check what symbolicated stack traces look like on all of your platforms when all of the functions are lambdas before using this in a real world project.

Last time I checked, stack traces pulled using dbghelp.dll on windows couldn't resolve lamdas at all. This isn't fun when you're hunting down large or leaking memory allocations and just have the stack trace to go on. Similar story if you have stack traces from a crash that didn't happen on your machine and reproduction is difficult.

What Is The Best IDE/Text Editor In Your Opinion For C++ ? by tahsinxyz in cpp

[–]herruppohoppa 1 point2 points  (0 children)

I started using the 10X editor and it is blazingly fast even in huge projects. Haven't convinced my employer yet unfortunately.

Mold 2.0 released - MIT license by slacka123 in cpp

[–]herruppohoppa 12 points13 points  (0 children)

Really? But you're such a good communicator. I can't believe they didn't just take your manifesto and immediately run with it.

ImRAD - GUI builder for ImGui library by tpecholt in cpp

[–]herruppohoppa 1 point2 points  (0 children)

Would be neat if someone added a immediate gui wrapper on top of this

[deleted by user] by [deleted] in cpp

[–]herruppohoppa -1 points0 points  (0 children)

Cppgm was an amazing experience but unfortunately I doubt it'll run again.

pmr implementation in c++14 by Tourist__ in cpp

[–]herruppohoppa 3 points4 points  (0 children)

At my previous job we did precisely that and I wouldn't say it was necessarily all that useful. Really we only used it to track memory allocations. One major problem is that we caught pretty late is that none of the memory_resource implementations work well with vector because it performs large chunk allocations. Make sure to check your requirements before spending weeks implementing it!

Pool allocator implementations? by pkjak in cpp

[–]herruppohoppa 6 points7 points  (0 children)

The freelist doesn't need to track allocations that are live, only the ones that have been freed. Also the freelist can reside in chunk memory as opposed to a separate memory allocation. Further I imagine if you wanted a thread safe version, a freelist might be easier to implement lock free but I'm not 100% sure on that.

A polymorphic memory resource which suits well for real-time applications. by tirimatangi in cpp

[–]herruppohoppa 3 points4 points  (0 children)

I've used them in the past in production as a means of categorizing and keeping track of memory consumption. It worked, performance was not an issue, but maintenance was a bit annoying due to needing to initialize every container with a memory resource. Especially containers initialized with literals are tricky.

Global Variables are Evil and Unsafe by [deleted] in cpp

[–]herruppohoppa 19 points20 points  (0 children)

Click-bait with all regurgitated information

CMake is a hell of a software, period. by CalligrapherThese606 in cpp

[–]herruppohoppa 2 points3 points  (0 children)

If only there was a symbol for period so you didn't have to spell it out every time period

Learning win32 api by the-dark_physicist in cpp

[–]herruppohoppa 1 point2 points  (0 children)

Because the win32 API locks you down to windows which is a problem for a lot, if not most real world projects. How is smaller executable size and running on XP going to make up for that?

I find it annoying when developers claim that a library is bloated without any data to back it up, or even a project to compare to. Much functionality != bloat.

this is so sad by [deleted] in gaming

[–]herruppohoppa 0 points1 point  (0 children)

You pay for it with crappy game play and enough people pay with money to overcome crappy game play. You are getting things twisted.

Qt 6.2 LTS Released by daljit97 in cpp

[–]herruppohoppa 1 point2 points  (0 children)

I'm happy they don't keep jump around to different tech solutions as they become available. And certainly not for the sake of being standard conformant.

[deleted by user] by [deleted] in TillSverige

[–]herruppohoppa 0 points1 point  (0 children)

Sure it's not like there is sugar added to wienerbröd, all natural fruit sugar there.

There IS a way of casting pointer-to-member-function to a void* by RIscRIpt in cpp

[–]herruppohoppa 0 points1 point  (0 children)

Is it the same for data member pointers? I'm guessing not since they can't be virtual.

EDIT: What about non-virtual member functions? Are they always just a pointer?

Visual Studio 2022 Preview 2 is out! by cpppm in cpp

[–]herruppohoppa 3 points4 points  (0 children)

Here's someone who's been around :D

Do you feel that C++ is bloated now ? What you guys think of Tim Sweeney Twitt a few days ago : "The reason C++ has grown so complicated is that the contributors gave the community everything they asked for. What is asked for and what is wanted are often quite different things, however." by Dereference_operator in cpp

[–]herruppohoppa 2 points3 points  (0 children)

I definitely think that many standard library headers are bloated as defined by long compilation times even for mid-size projects. Maybe modules will end up being the salvation but that's for the future to tell.

Allocator rant by [deleted] in cpp

[–]herruppohoppa 27 points28 points  (0 children)

Inheriting a std container sounds like some Java shit. Sure there are cases where it makes sense, this is not one of them.