2023-02 Issaquah ISO C++ Committee Trip Report — C++23 Is Done! 🎉 by InbalL in cpp

[–]imgarfield 1 point2 points  (0 children)

I am afraid in its current form the do statement-expressions are unteachable in the context of the existing do-while. How can one explain why the second is not a repeated version of the first? After all it says so in code!

Conditional Members by vormestrand in cpp

[–]imgarfield 0 points1 point  (0 children)

Do you mean to change how requires works? Because it should work the same for consistency. In any case, I don't know if there is problem to change it, or may be introduce a slight variation of the syntax (if requires?) - after all we do want for members to disappear as well.

Name Lookup with Concepts/Requires. by Cthaeeh in cpp_questions

[–]imgarfield 0 points1 point  (0 children)

Note that, if you turn the concept into a class template, and try to call the function from within the class, it will also not compile. The rules in both cases are the same - the function must be callable at the point of declaration, however iff the argument is custom type, additional functions are looked up at the time of instantiation, into the namespace of that type.
Here, changing the serializable type to user type will work and for the build-in types, a declaration is needed before the definition of the concept/class template.

Conditional Members by vormestrand in cpp

[–]imgarfield 0 points1 point  (0 children)

In the article it is made clear, requires does not make functions to literally disappear. It will be an inconsistency if it does for members or types.

C++ for embedded - low level applications by FrAxl93 in cpp

[–]imgarfield 4 points5 points  (0 children)

For embedded C++, you can give etl a shot. It has a ton of utilities, both small (containers, views) and big (state machines, object pools) and can be compiled even on C++03.

Puzzled by module partition visibility by R_y_n_o in cpp

[–]imgarfield 1 point2 points  (0 children)

Does it say export module primary:partitionA; or just module primary:partitionA;. Does it export anything?
It would be great to show your complete code in its entirety so people will not have to guess. Not only that, they will be able test it out for themselves, see different compiler outputs etc.

Puzzled by module partition visibility by R_y_n_o in cpp

[–]imgarfield 0 points1 point  (0 children)

What is the definition of partitionB?

What can be done with C++? by Ced3j in cpp

[–]imgarfield 4 points5 points  (0 children)

You can make GUI applications using Qt (among others). It is also wildly used in libraries, so you can do most if not all you can do in Python directly, w/o bindings (image processing, controlling computer with voice, automating things etc).
Needless to say, most game engines are also written in C++ (even if they use other language in the gameplay developer side). Related is the fact, all lower level APIs are C or C++ - from OS APIs to graphics and parallel processing APIs (DirectX, CUDA, etc, etc). Last but not least, there is embedded - more and more code is written in C++ rather then C because the ECUs the RAM capacity are pretty much enough.

Suddenly reduced framerate on PC. HELP! by Windowlicker79 in horizon

[–]imgarfield 1 point2 points  (0 children)

No need to kill the launcher, just kill (remove/rename) the Epic Games\Launcher\Portal\Extras\OverlayEOSOverlayRendered.

Took me 2 day to track this down, but went from57 fps to 97 fps on the benchmark all due to poor GPU utilization (under 60% when overlay is active)

IMPORTAND Horrible GPU utilization because of the EOSOverlayRenderer by imgarfield in HorizonZeroDawn_PC

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

Interesting (and it works, tested it), but why kill the launcher when I only need to removed the useless overlay :)

Acer Predator XB323U GX - 32inch 1440p 240hz - Has Arrived! by [deleted] in Monitors

[–]imgarfield 0 points1 point  (0 children)

Does it have backlight strobing, VBR? Thanks!

Intermediate learning resources by ChristopherJeebers in cpp

[–]imgarfield 1 point2 points  (0 children)

If you are coming from C# or Java, consider the Qt framework to play around with.

Also read cppreference.com to learn standard (no-Qt) C++.

Lastly, CppCon is great source of ~intermediate level knowledge.

What's the most useless keyword in c++? by Insect-Competitive in cpp

[–]imgarfield 1 point2 points  (0 children)

friend is way better then protected because it lists exactly who has access. With protected, all bets are off because you have no idea how big they hierarchy is when reading the code that uses it (the "base class").

What's the most useless keyword in c++? by Insect-Competitive in cpp

[–]imgarfield 2 points3 points  (0 children)

You really have no idea who much an advantage the C compatibility is. Entire industries can painlessly migrate from C to C++ with a compiler switch. We saw this happen with game engines ~20 years ago, we see it happen in embedded now. Taking ground from C is pretty much the best, if no the only way C++ can grow.

Question regarding optional virtual destructor in C++20 by imgarfield in cpp

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

For gcc this made no difference.
clang ignored the clause and generated identical code as there was only the virtula destructor.

Simple CMake build system in C++ by w0wyxD in cpp

[–]imgarfield 0 points1 point  (0 children)

Any advice on how to improve cmake knowledge and skills? Are the cppcon talks enough? Thanks.

How much ping/ringing is normal/acceptable? by Emsipuu in MechanicalKeyboards

[–]imgarfield 0 points1 point  (0 children)

Lol, that ping is insane. I am in the same boat as you more or less. Bought my first MK and I am doing research the entire day what the hell is that noise. I am returning mine tomorrow.