Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail From: BGB Newsgroups: comp.lang.java.programmer Subject: Re: is the java compiler written in c Date: Sat, 22 Aug 2015 14:27:14 -0500 Organization: albasani.net Lines: 34 Message-ID: References: <893a1a37-881c-4e59-a069-38386dd1b0fd@googlegroups.com> <7b5d28de-2f30-4db7-aec7-03bd9ce81d00@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net AVBSqxxZ9pKdOPAH0Yl7F2QwUlfajd6hFOCxgoGjsqO/zG4CRGwYEvq3k/8jOBHWJf7K3H7StDmRj0gVChxwB4XqxupUEtdkbR7QW2H8LWWN+XZERmqjhfD55sRq7P/V NNTP-Posting-Date: Sat, 22 Aug 2015 19:32:12 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="U2jVvSSptfuNxBeaNNkI1oliIZQMxgC2vfBhEqSOi6lgFt9uYRzSbj5/7nZdHxdlqBvDst15EQw4uyvf+58vrETGvJsVyaAKqVvQQAGXYd05aNbffSzCUP+k4mCRimIZ"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: Cancel-Lock: sha1:Ra0xpWBByWJ3k8/OFYQ5YuGtmm8= Xref: csiph.com comp.lang.java.programmer:32413 On 8/22/2015 1:04 PM, Martin Gregorie wrote: > On Sat, 22 Aug 2015 12:56:32 +0100, Eternal Hope wrote: > >> It's not just about non-standard functions and libraries though is it. >> It's been a while but IIRC the GNU C compiler allowed/allows nested >> functions but the spec defined/defines no such thing. >> > Indeed, and I've never seen or attempted to use nested functions in C. > Maybe I don't delve into dark corners, but this is the first time I've > ever heard nested function declarations mentioned in the same breath as C. > most people don't use them, as they are compiler specific. it is like using lambda blocks. they exist on some compilers, but are pretty much a novelty item best to be avoided. >> Oh, don't forget to make your code portable. >> > Quite. And don't use C-spells or any other too-clever-by-half tricks that > serve more to obfuscate than to make code run faster now we've got decent > optimising compilers. > one mans' obfuscation is another mans' coding convention. but, I guess it depends on what practices are in question. I have seen the "obfuscation" argument used to try to attack things like people doing arithmetic using shift operators, but pretty much anyone who has been doing programming for a while is likely to be well-versed as to what the shift operators are and do (as well as the use of bitwise operators and hexadecimal).