Tagged With: MSVC
Quick Update on C++ Compiler Bug Hunt (overall, 15 bugs reported, 8 already fixed)
May 8, 2018 by • “No Bugs” Bunny
Some time ago, I wrote a post about kscope – mini-project on finding and reporting bugs in modern C++ compilers. The point was that there is a way to use C++ facilities to make C++ code self-mutating (more strictly – pseudo-randomized using externally supplied ITHARE_KSCOPE_SEED macro), which allows finding certain classes of bugs during randomized […]
Parallel STL for Newbies: Reduce and Independent Modifications
April 26, 2018 by • “No Bugs” Bunny
Quote:
with std::reduce() such code, while it compiles at least under MSVC, MAY occasionally provide wrong results
Another Quote:
if you happen to need something beyond that – take a deep breath and allocate at least several months to understand how does parallelism really work under the hood.
Filed under: On.ProgrammingTips and TricksOptimizations
Read moreParallel Coding: From 90x Performance Loss To 2x Improvement
April 4, 2018 by • “No Bugs” Bunny
Quote:
as long as serial code provides good-enough response times from end-user perspective – DON’T PARALLELIZE
Another Quote:
out of all the premature optimizations, premature parallelization is the most premature one
Filed under: On.ProgrammingTips and TricksOptimizations
Read moreUsing Parallel (algorithm) Without a Clue: 90x Performance Loss Instead of 8x Gain
March 27, 2018 by • “No Bugs” Bunny
Abstract:
I made an experiment which demonstrates Big Fat Dangers(tm) of implying that parallelization can be made as simple as just adding a policy parameter to your std:: call.
Quote:
it is still necessary to understand what we’re doing
Filed under: On.ProgrammingTips and TricksProgramming LanguagesOptimizations
Read more