Click here to Skip to main content
13,049,263 members (68,259 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

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, no programming questions and please don't post ads.
 
GeneralRe: Beating the compiler Pin
jschell17-Jun-13 8:29
memberjschell17-Jun-13 8:29 
GeneralRe: Beating the compiler Pin
Ron Beyer17-Jun-13 8:36
professionalRon Beyer17-Jun-13 8:36 
GeneralRe: Beating the compiler Pin
Jörgen Andersson15-Jun-13 8:03
professionalJörgen Andersson15-Jun-13 8:03 
GeneralRe: Beating the compiler Pin
PIEBALDconsult14-Jun-13 16:42
professionalPIEBALDconsult14-Jun-13 16:42 
GeneralRe: Beating the compiler Pin
BillWoodruff14-Jun-13 20:39
memberBillWoodruff14-Jun-13 20:39 
GeneralRe: Beating the compiler Pin
Klaus-Werner Konrad15-Jun-13 12:07
memberKlaus-Werner Konrad15-Jun-13 12:07 
GeneralRe: Beating the compiler Pin
BillWoodruff15-Jun-13 15:57
memberBillWoodruff15-Jun-13 15:57 
GeneralRe: Beating the compiler Pin
A. A. J. Rodriguez17-Jun-13 3:33
memberA. A. J. Rodriguez17-Jun-13 3:33 
GeneralRe: Beating the compiler Pin
ahmed zahmed16-Jun-13 6:18
memberahmed zahmed16-Jun-13 6:18 
GeneralRe: Beating the compiler Pin
BillWoodruff16-Jun-13 15:21
memberBillWoodruff16-Jun-13 15:21 
GeneralRe: Beating the compiler Pin
Jeremy Hutchinson17-Jun-13 2:19
memberJeremy Hutchinson17-Jun-13 2:19 
GeneralRe: Beating the compiler Pin
Ron Beyer17-Jun-13 5:04
professionalRon Beyer17-Jun-13 5:04 
GeneralRe: Beating the compiler Pin
Jeremy Hutchinson17-Jun-13 5:13
memberJeremy Hutchinson17-Jun-13 5:13 
GeneralRe: Beating the compiler Pin
irneb17-Jun-13 23:12
memberirneb17-Jun-13 23:12 
I'm sure it's just a joke - but for some (and I've seen these guys' code before) who might think it a good idea.

Since the act of converting to string in decimal is probably also using multiple mod 10's. If so not even the unequal mod optimization's possible, not to mention it would do one mod for each decimal digit (instead of only one mod 5). So before you can even compare the last character to "5" or "0" you've already made the code run a lot slower just to get to that point, never mind fractions.
GeneralRe: Beating the compiler Pin
jschell14-Jun-13 12:05
memberjschell14-Jun-13 12:05 
GeneralRe: Beating the compiler Pin
harold aptroot14-Jun-13 12:22
memberharold aptroot14-Jun-13 12:22 
GeneralRe: Beating the compiler Pin
Cornelius Henning14-Jun-13 14:08
memberCornelius Henning14-Jun-13 14:08 
GeneralRe: Beating the compiler Pin
ahmed zahmed16-Jun-13 6:45
memberahmed zahmed16-Jun-13 6:45 
GeneralRe: Beating the compiler Pin
harold aptroot16-Jun-13 7:41
memberharold aptroot16-Jun-13 7:41 
GeneralRe: Beating the compiler Pin
Kirk Wood17-Jun-13 5:53
memberKirk Wood17-Jun-13 5:53 
GeneralRe: Beating the compiler Pin
irneb17-Jun-13 23:11
memberirneb17-Jun-13 23:11 
GeneralStuck in a deadlock situation. Non technical question related to asp. Pin
cluelessentity14-Jun-13 8:15
membercluelessentity14-Jun-13 8:15 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
jesarg14-Jun-13 8:29
memberjesarg14-Jun-13 8:29 
AnswerRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Maximilien14-Jun-13 8:33
memberMaximilien14-Jun-13 8:33 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Steve Maier14-Jun-13 8:54
memberSteve Maier14-Jun-13 8:54 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Norm .droid14-Jun-13 9:05
professionalNorm .droid14-Jun-13 9:05 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Ron Beyer14-Jun-13 9:27
professionalRon Beyer14-Jun-13 9:27 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
jesarg14-Jun-13 10:39
memberjesarg14-Jun-13 10:39 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
Ennis Ray Lynch, Jr.14-Jun-13 10:29
memberEnnis Ray Lynch, Jr.14-Jun-13 10:29 
GeneralRe: Stuck in a deadlock situation. Non technical question related to asp. Pin
wizardzz14-Jun-13 10:32
memberwizardzz14-Jun-13 10:32 
GeneralEye Licking Pin
MehGerbil14-Jun-13 6:50
memberMehGerbil14-Jun-13 6:50 
GeneralRe: Eye Licking Pin
jeron114-Jun-13 7:10
memberjeron114-Jun-13 7:10 
GeneralRe: Eye Licking Pin
Vark11114-Jun-13 7:17
memberVark11114-Jun-13 7:17 
GeneralRe: Eye Licking Pin
jeron114-Jun-13 7:20
memberjeron114-Jun-13 7:20 
GeneralRe: Eye Licking Pin
Bassam Abdul-Baki14-Jun-13 7:37
professionalBassam Abdul-Baki14-Jun-13 7:37 
GeneralRe: Eye Licking Pin
AspDotNetDev14-Jun-13 7:44
protectorAspDotNetDev14-Jun-13 7:44 
GeneralRe: Eye Licking Pin
Richard Deeming14-Jun-13 7:53
professionalRichard Deeming14-Jun-13 7:53 
GeneralRe: Eye Licking Pin
jeron114-Jun-13 7:57
memberjeron114-Jun-13 7:57 
GeneralRe: Eye Licking Pin
AspDotNetDev14-Jun-13 8:15
protectorAspDotNetDev14-Jun-13 8:15 
GeneralRe: Eye Licking Pin
jeron114-Jun-13 7:47
memberjeron114-Jun-13 7:47 
GeneralRe: Eye Licking Pin
Bassam Abdul-Baki14-Jun-13 7:59
professionalBassam Abdul-Baki14-Jun-13 7:59 
GeneralRe: Eye Licking Pin
jeron114-Jun-13 8:03
memberjeron114-Jun-13 8:03 
GeneralRe: Eye Licking Pin
Bassam Abdul-Baki14-Jun-13 8:30
professionalBassam Abdul-Baki14-Jun-13 8:30 
GeneralRe: Eye Licking Pin
jeron114-Jun-13 9:18
memberjeron114-Jun-13 9:18 
GeneralRe: Eye Licking Pin
OriginalGriff14-Jun-13 8:01
protectorOriginalGriff14-Jun-13 8:01 
GeneralRe: Eye Licking Pin
lewax0014-Jun-13 8:24
memberlewax0014-Jun-13 8:24 
GeneralRe: Eye Licking Pin
Matthew Faithfull14-Jun-13 9:44
professionalMatthew Faithfull14-Jun-13 9:44 
GeneralRe: Eye Licking Pin
SoMad14-Jun-13 10:24
professionalSoMad14-Jun-13 10:24 
GeneralRe: Eye Licking Pin
Dirk Higbee14-Jun-13 10:50
memberDirk Higbee14-Jun-13 10:50 
GeneralRe: Eye Licking Pin
Clifford Nelson14-Jun-13 12:51
memberClifford Nelson14-Jun-13 12:51 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 25 Jul 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid