Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
GeneralRe: Thank God It Didn't Go Off! PinmemberRoger Wright17-Jun-13 19:24 
GeneralBeating the compiler [modified] Pinmemberharold aptroot14-Jun-13 12:29 
GeneralRe: Beating the compiler Pinmember_Maxxx_14-Jun-13 12:47 
GeneralRe: Beating the compiler PinprofessionalRon Beyer14-Jun-13 13:00 
GeneralRe: Beating the compiler PinmemberBig Daddy Farang14-Jun-13 13:06 
GeneralRe: Beating the compiler PinprofessionalRon Beyer14-Jun-13 13:17 
GeneralRe: Beating the compiler PinmemberBig Daddy Farang14-Jun-13 13:20 
GeneralRe: Beating the compiler Pinmember_Maxxx_14-Jun-13 14:09 
GeneralRe: Beating the compiler PinprofessionalRon Beyer14-Jun-13 14:14 
GeneralRe: Beating the compiler Pinmemberjschell17-Jun-13 9:29 
GeneralRe: Beating the compiler PinprofessionalRon Beyer17-Jun-13 9:36 
GeneralRe: Beating the compiler PinprofessionalJörgen Andersson15-Jun-13 9:03 
GeneralRe: Beating the compiler PinprofessionalPIEBALDconsult14-Jun-13 17:42 
GeneralRe: Beating the compiler PinmemberBillWoodruff14-Jun-13 21:39 
This is a fascinating topic, thanks, Harold, another example to me of a Lounge post that I think should be "hoisted" out of the Lounge, and preserved for posterity in some form in some other archival forum ... I'm not implying it should not remain on the Lounge, though.
 
Unfortunately, I'm too dumb to follow your mathematical analysis.
 
re: Ron Beyer's code example:
 
Assuming a random distribution of an infinite dataset of integers, the aleph of the infinity of numbers ending in five should have an aleph (ordinality) twice the aleph of the numbers ending in zero.
 
So, given the C# compiler-produced code will not evaluate beyond the first term of an || expression, if the first term evaluates to 'true, there should be a theoretical benefit by checking for last digit == "5" first ?
 
It would be interesting to see someone actually carry out a test using .NET C#.
 
yours, Bill
“Human beings do not live in the objective world alone, nor alone in the world of social activity as ordinarily understood, but are very much at the mercy of the particular language which has become the medium of expression for their society. It is quite an illusion to imagine that one adjusts to reality essentially without the use of language and that language is merely an incidental means of solving specific problems of communication or reflection." Edward Sapir, 1929

GeneralRe: Beating the compiler PinmemberKlaus-Werner Konrad15-Jun-13 13:07 
GeneralRe: Beating the compiler PinmemberBillWoodruff15-Jun-13 16:57 
GeneralRe: Beating the compiler PinmemberA. A. J. Rodriguez17-Jun-13 4:33 
GeneralRe: Beating the compiler Pinmemberahmed zahmed16-Jun-13 7:18 
GeneralRe: Beating the compiler PinmemberBillWoodruff16-Jun-13 16:21 
GeneralRe: Beating the compiler PinmemberJeremy Hutchinson17-Jun-13 3:19 
GeneralRe: Beating the compiler PinprofessionalRon Beyer17-Jun-13 6:04 
GeneralRe: Beating the compiler PinmemberJeremy Hutchinson17-Jun-13 6:13 
GeneralRe: Beating the compiler Pinmemberirneb18-Jun-13 0:12 
GeneralRe: Beating the compiler Pinmemberjschell14-Jun-13 13:05 
GeneralRe: Beating the compiler Pinmemberharold aptroot14-Jun-13 13:22 
GeneralRe: Beating the compiler PinmemberCornelius Henning14-Jun-13 15:08 
GeneralRe: Beating the compiler Pinmemberahmed zahmed16-Jun-13 7:45 
GeneralRe: Beating the compiler Pinmemberharold aptroot16-Jun-13 8:41 
GeneralRe: Beating the compiler PinmemberKirk Wood17-Jun-13 6:53 
GeneralRe: Beating the compiler Pinmemberirneb18-Jun-13 0:11 
GeneralStuck in a deadlock situation. Non technical question related to asp. Pinmembercluelessentity14-Jun-13 9:15 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pinmemberjesarg14-Jun-13 9:29 
AnswerRe: Stuck in a deadlock situation. Non technical question related to asp. PinmemberMaximilien14-Jun-13 9:33 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. PinmemberSteve Maier14-Jun-13 9:54 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. PinprofessionalNorm .droid14-Jun-13 10:05 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. PinprofessionalRon Beyer14-Jun-13 10:27 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pinmemberjesarg14-Jun-13 11:39 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. PinmemberEnnis Ray Lynch, Jr.14-Jun-13 11:29 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pinmemberwizardzz14-Jun-13 11:32 
GeneralEye Licking PinmemberMehGerbil14-Jun-13 7:50 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 8:10 
GeneralRe: Eye Licking PinmemberVark11114-Jun-13 8:17 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 8:20 
GeneralRe: Eye Licking PinprofessionalBassam Abdul-Baki14-Jun-13 8:37 
GeneralRe: Eye Licking PinprotectorAspDotNetDev14-Jun-13 8:44 
GeneralRe: Eye Licking PinprofessionalRichard Deeming14-Jun-13 8:53 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 8:57 
GeneralRe: Eye Licking PinprotectorAspDotNetDev14-Jun-13 9:15 
GeneralRe: Eye Licking Pinmemberjeron114-Jun-13 8:47 
GeneralRe: Eye Licking PinprofessionalBassam Abdul-Baki14-Jun-13 8:59 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 23 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid