Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Java left shift and right shift operators. Date: Wed, 27 Apr 2011 23:08:16 -0400 Organization: albasani.net Lines: 19 Message-ID: References: <295e16b3-2ed8-4529-bfb0-1cc26ed93ad6@d26g2000prn.googlegroups.com> <188cz6ta97kkm$.dlg@kimmeringer.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net r91VK9H9yJd4pO94TxIkIm9ZEvbMJzc1qZ/cPsCMWp+fKafCoY/4AL9hFDekxvqVIF403Dxk4wpRlwtToKC0iZsq9r/eSibT/XDWk/8SwDe7/ji0KR0OO9jBpmGL1rnN NNTP-Posting-Date: Thu, 28 Apr 2011 03:07:58 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="0eQ0LnsiEgQ85GdhLkEBL/06IUavsnSnu4PBDVAHlUgYleCE/wdoRS98n52ISBC/AoQojHYpVsc++V1vGQcHlD6+WHToUEkcmsdXTOfj18hqna9ThuEeXEDyHUg6Y6nX"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: Cancel-Lock: sha1:t2qir9L1ZBCdTQC069xaC63NL2g= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3324 On 04/27/2011 10:25 PM, Roedy Green wrote: > On Tue, 26 Apr 2011 09:49:24 -0400, Lew wrote, > quoted or indirectly quoted someone who said : > >> You claim inefficiency in something you have no clue whatsoever to be inefficient. > > If you examined the code generated, you might be pleasantly surprised. > I did a fair bit of looking at the code Jet generated and came to the > conclusion it would nearly always generate better code than a human > would. It was not only optimising cycles, it was optimising pipelines. Excellent point. Hotspot also optimizes code to a good level due to its dynamic nature. I don't know how to examine its results, although that would be interesting to capture somehow. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg