From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,baaf5f793d03d420 X-Google-Attributes: gid109fba,public X-Google-Thread: fc89c,97188312486d4578 X-Google-Attributes: gidfc89c,public X-Google-Thread: 1014db,6154de2e240de72a X-Google-Attributes: gid1014db,public X-Google-Thread: 10db24,4cf070091283b555 X-Google-Attributes: gid10db24,public X-Google-Thread: 103376,97188312486d4578 X-Google-Attributes: gid103376,public From: mdw@excessus.demon.co.uk (Mark Wooding) Subject: Re: What's the best language to learn? [was Re: Should I learn C or Pascal?] Date: 1996/08/18 Message-ID: #1/1 X-Deja-AN: 175624494 x-nntp-posting-host: excessus.demon.co.uk references: <4u7hi6$s2b@nntp.seflin.lib.fl.us> <4uo74j$95p@ns.broadvision.com> <01bb8950$2c8dcc60$87ee6fce@timpent.airshields.com> <4ut8h3$2an@ccshst05.uoguelph.ca> <01bb8c6d$c62d44c0$87ee6fce@timpent.airshields.com> organization: Straylight Development Lab reply-to: mdw@excessus.demon.co.uk newsgroups: comp.edu,comp.lang.ada,comp.lang.c,comp.lang.c++,comp.unix.programmer Date: 1996-08-18T00:00:00+00:00 List-Id: Dan Pop wrote: > Ine <01bb8c6d$c62d44c0$87ee6fce@timpent.airshields.com> "Tim Behrendsen" writes: > > > ... to imagine that on the average they beat even the average human > > assembly programmer is just nonsense. > > Try to test your assertions with a nontrivial piece of code on a P6 > or any modern RISC processor. Can I play? Or don't you consider ARMs to be `modern' (or RISC) enough? Or maybe I'm just above average ;-). Oh, back to the point (or what passes for a point) of this thread. A while ago, while traipsing merrily through a disassembly, I discovered an atrocity, which could only have been generated from something very similar to the following C code: char buf[...]; char *p; ... while (buf[0]==' ') { for (p=buf;p[0]=p[1];p++) ; } while (buf[strlen(buf)-1]==' ') buf[strlen(buf)-1]=0 I can't believe that anyone with an understanding of what goes on `under the covers' would possibly write anything like this without feeling ill. An inkling of what this would be translated into by any implementation would surely avoid horrors like this. Anyone who asks `what's wrong with that' will be shot. -- [mdw] `When our backs are against the wall, we shall turn and fight.' -- John Major