Click here to Skip to main content
15,511,378 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralWonderful: For those of you that want to teach yourself more advanced CS concepts Pin
honey the codewitch26-Feb-20 10:44
mvahoney the codewitch26-Feb-20 10:44 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
Amarnath S26-Feb-20 14:32
professionalAmarnath S26-Feb-20 14:32 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
vaghelabhavesh27-Feb-20 9:40
vaghelabhavesh27-Feb-20 9:40 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
John R. Shaw26-Mar-20 21:02
John R. Shaw26-Mar-20 21:02 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
honey the codewitch26-Mar-20 21:16
mvahoney the codewitch26-Mar-20 21:16 
GeneralThis Definitely Falls into the Wonderful Camp Pin
David A. Gray9-Feb-20 12:14
David A. Gray9-Feb-20 12:14 
GeneralRe: This Definitely Falls into the Wonderful Camp Pin
Randor 10-Feb-20 13:33
professional Randor 10-Feb-20 13:33 
GeneralRe: This Definitely Falls into the Wonderful Camp Pin
David A. Gray11-Feb-20 11:33
David A. Gray11-Feb-20 11:33 
My take on the whole point of the conditional move instruction is to eliminate speculative execution from the mix by keeping the program flow in a straight line. FWIW, I double-checked, and Spectre mitigation is disabled. I suspected it was, because I've never enabled it for any of my projects.

What made it stand out was that this was happening in a debug build. Had it been a release build, I would have expected this level of optimization. However, this is the most recent of many such unanticipated, and welcome, optimizations, that I've seen in recent debug builds.
David A. Gray
Delivering Solutions for the Ages, One Problem at a Time
Interpreting the Fundamental Principle of Tabular Reporting

GeneralRe: This Definitely Falls into the Wonderful Camp Pin
Randor 11-Feb-20 13:40
professional Randor 11-Feb-20 13:40 
GeneralVisual Studio 2019 and the Weird, Wonderful Nonbreaking Space Pin
David A. Gray8-Feb-20 12:33
David A. Gray8-Feb-20 12:33 
GeneralRe: Visual Studio 2019 and the Weird, Wonderful Nonbreaking Space Pin
Super Lloyd29-Mar-20 14:50
Super Lloyd29-Mar-20 14:50 
GeneralRe: Visual Studio 2019 and the Weird, Wonderful Nonbreaking Space Pin
Greg Utas29-Mar-20 15:31
mveGreg Utas29-Mar-20 15:31 
PraiseI might have cause to be grateful for javascript for once Pin
honey the codewitch6-Feb-20 23:01
mvahoney the codewitch6-Feb-20 23:01 
GeneralRe: I might have cause to be grateful for javascript for once Pin
GuyThiebaut11-Feb-20 22:55
professionalGuyThiebaut11-Feb-20 22:55 
GeneralRe: I might have cause to be grateful for javascript for once Pin
honey the codewitch26-Feb-20 10:51
mvahoney the codewitch26-Feb-20 10:51 
GeneralIncomprehensible C++ error messages PinPopular
Alan Balkany29-Jan-20 11:19
Alan Balkany29-Jan-20 11:19 
GeneralRe: Incomprehensible C++ error messages Pin
RugbyLeague29-Jan-20 22:16
RugbyLeague29-Jan-20 22:16 
GeneralRe: Incomprehensible C++ error messages Pin
honey the codewitch29-Mar-20 16:02
mvahoney the codewitch29-Mar-20 16:02 
GeneralRe: Incomprehensible C++ error messages Pin
Greg Utas30-Jan-20 15:32
mveGreg Utas30-Jan-20 15:32 
GeneralRe: Incomprehensible C++ error messages Pin
Member 91670572-Feb-20 23:45
Member 91670572-Feb-20 23:45 
RantRe: Incomprehensible C++ error messages Pin
Gary Wheeler3-Feb-20 3:53
Gary Wheeler3-Feb-20 3:53 
GeneralRe: Incomprehensible C++ error messages Pin
Bob10003-Feb-20 8:06
professionalBob10003-Feb-20 8:06 
GeneralRe: Incomprehensible C++ error messages Pin
SeattleC++3-Feb-20 5:47
SeattleC++3-Feb-20 5:47 
GeneralRe: Incomprehensible C++ error messages Pin
Alan Balkany4-Feb-20 11:50
Alan Balkany4-Feb-20 11:50 
GeneralRe: Incomprehensible C++ error messages Pin
SeattleC++4-Feb-20 13:02
SeattleC++4-Feb-20 13:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.