#robotics Logs
Apr 13 2018
#robotics Calendar
12:30 AM rue_mohr: -- marker Apr 12 2018 --
12:49 AM mrdata_ is now known as mrdata
02:44 AM Jak_o_Shadows: My version is: "{Day changed to Friday, April 13, 2018}
03:43 AM polprog: i think mide adds those by itself
03:43 AM polprog: mine*
03:44 AM polprog: yeah
08:26 AM rue_bed: rue_bed, cut an 18" bed peice for cnc
08:37 AM LuminaxHome is now known as Luminax
09:15 AM * rue_mohr erases the wend he put in the c code before anyone notices
09:16 AM mrdata: whats a wend
09:23 AM rue_mohr: omg, I like this method of doing this... I havn't changed a coding thing I do in a LONG time...
09:24 AM rue_mohr: for ( i = 8; i--; ) {
09:24 AM rue_mohr: printf("i= %d j= %d\n", i, j);
09:24 AM rue_mohr: }
09:24 AM rue_mohr: from 8 to 0
09:24 AM rue_mohr: its faster than counting up
09:30 AM z64555: um, what
09:30 AM z64555: ah
09:30 AM rue_mohr: yea
09:30 AM z64555: that's a hack, and you know it
09:30 AM rue_mohr: yea!
09:30 AM z64555: :P
09:30 AM rue_mohr: and I like it!
09:30 AM rue_mohr: its so clean!
09:30 AM polprog: its awful but i can see why its faster
09:31 AM polprog: :D
09:31 AM z64555: by like, one op
09:31 AM rue_mohr: yea, go go Z flag!
09:32 AM rue_mohr: its as bad as for ( ; 0 ; ) { printf("unused code\n"); }
09:32 AM polprog: no
09:33 AM polprog: this unused one is awful cos you an do it with #ifndef
09:33 AM z64555: no, that one's worse
09:33 AM polprog: or ifdef
09:33 AM rue_mohr: not as bad as for ( ; 0 ; printf("unused code\n") );
09:33 AM z64555: that's a better comparison. :P
09:33 AM rue_mohr: #ifdef is an abomination to readable code
09:33 AM polprog: if(false) goto unused_code;
09:33 AM z64555: what
09:34 AM z64555: like your hack is any better
09:34 AM rue_mohr: gtg
09:34 AM z64555: lol
09:34 AM mrdata: while(0) { lets pollute the source with unused code; }
09:35 AM z64555: There's a high likelyhood that for loops comparing to zero are optimized
09:35 AM polprog: then make it a variable that always reads zero
09:36 AM polprog: like while(some volatile reg) { printf("have fun reverse engineering"); }
09:36 AM mrdata: unused code doesnt have to land in the image; it can be optimized out
09:36 AM mrdata: lol polprog
09:36 AM mrdata: thats kinky
09:37 AM polprog: ITT: breaking C language
09:38 AM mrdata: "why not just surround unused code with quotes?";
09:40 AM z64555: or actually use the special escape characters especially suited for this
09:41 AM polprog: hide the actual code in the string
09:41 AM polprog: https://stackoverflow.com/a/5602143/3908500
09:41 AM polprog: tried that but didnt get it to work.. maybe now that i know asm a bit more i could give it a go again :D
12:41 PM ccook is now known as help
12:42 PM help is now known as blockstream
12:42 PM blockstream is now known as ccook
07:43 PM rue_mohr: -- apr 13 2018 --
10:02 PM justanotherus3r is now known as justanotheruser