develooper Front page | perl.perl5.porters | Postings from July 2010

Re: [perl #76438] peephole optimiser could prune more dead code

Thread Previous | Thread Next
From:
Ævar Arnfjörð Bjarmason
Date:
July 13, 2010 06:11
Subject:
Re: [perl #76438] peephole optimiser could prune more dead code
Message ID:
AANLkTikUtnnI0ZIrqm36u6bWf5vzHtoYp_3mCjAdps5n@mail.gmail.com
On Tue, Jul 13, 2010 at 11:43, Ben Morrow <ben@morrow.me.uk> wrote:
> Perl doesn't have undefined behaviour. No matter what weasel words
> copied from stdc made it into the ++ docs, Perl's actual evaluation
> order has always been straightforward and well-defined. Changing this
> may be worth it, for a sufficiently beneficial optimisation, but it is
> definitely a backwards-incompatible change.

Undefined doesn't mean that the implementation doesn't act
consistently, just that its documentation explicitly denies
responsibility for having those things work in the future. If they
work now they only work incidentally, and you shouldn't rely on them.

Of course we can't liberally change things that are documented to be
undefined as liberally as a C compiler would, becuase there's only one
perl(1) but multiple cc(1)'s.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About