From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <623a5d46047a6b47aaeed1186f67e799@brasstown.quanstro.net> References: <15723310.yIARpoJMSL@coil> <4824335454f1b1d47dbc8439b4af8ea3@kw.quanstro.net> <20121029223541.8C198B827@mail.bitblocks.com> <20121029230535.730EFB827@mail.bitblocks.com> <623a5d46047a6b47aaeed1186f67e799@brasstown.quanstro.net> Date: Mon, 29 Oct 2012 16:15:35 -0700 Message-ID: From: David Leimbach To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=f46d042de40bc92f6004cd3ad8fd Subject: Re: [9fans] caveat... optimizer? the `zero and forget' thread on HN Topicbox-Message-UUID: cc684ffa-ead7-11e9-9d60-3106f5b1d025 --f46d042de40bc92f6004cd3ad8fd Content-Type: text/plain; charset=ISO-8859-1 On Mon, Oct 29, 2012 at 4:07 PM, erik quanstrom wrote: > On Mon Oct 29 19:06:41 EDT 2012, bakul@bitblocks.com wrote: > > On Mon, 29 Oct 2012 22:47:02 -0000 Charles Forsyth < > charles.forsyth@gmail.com> wrote: > > > > > > He can fool it once, but can he fool it twice? Can he recompile? > > > > Why not. Compilers never get wise to the ways of sneaky programmers! > > feedback-based optimization. > > - erik > > Call me crazy, but I always felt compilers were there to emit code that reflected what I wrote, not what it thinks it can do a better job writing for me. People complain that Go is not a good systems language due to the garbage collector. Maybe C isn't a good language due to all the places where optimizers are allowed to break code. --f46d042de40bc92f6004cd3ad8fd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Mon, Oct 29, 2012 at 4:07 PM, erik qu= anstrom <quanstro@quanstro.net> wrote:
On Mon Oct 29 19:06:41 EDT 2012, bakul@bitblocks.com wrote:
> On Mon, 29 Oct 2012 22:47:02 -0000 Charles Forsyth <charles.forsyth@gmail.com> =A0wrote: > >
> > He can fool it once, but can he fool it twice? Can he recompile?<= br> >
> Why not. =A0Compilers never get wise to the ways of sneaky programmers= !

feedback-based optimization.

- erik


Call me crazy, but I always = felt compilers were there to emit code that reflected what I wrote, not wha= t it thinks it can do a better job writing for me. =A0People complain that = Go is not a good systems language due to the garbage collector. =A0Maybe C = isn't a good language due to all the places where optimizers are allowe= d to break code.


--f46d042de40bc92f6004cd3ad8fd--