-
Notifications
You must be signed in to change notification settings - Fork 577
Optimizer isn't optimizing read-only value decisions #14305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @khwilliamsonThis is a bug report for perl from khw@khw.(none), I noticed that expressions that contain read-only variables such as $^V if($] < 5.007) { should just have generated unconditional code that calls BAR(), with I was surprised to find this, because I thought the optimizer handled Flags: Site configuration information for perl 5.21.7: Configured by khw at Fri Dec 5 08:31:42 MST 2014. Summary of my perl5 (revision 5 version 21 subversion 7) configuration: @INC for perl 5.21.7: Environment for perl 5.21.7: PATH=/home/khw/bin:/home/khw/perl5/perlbrew/bin:/home/khw/print/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/usr/local/games:/home/khw/iands/www:/home/khw/cxoffice/bin |
From @cpansproutOn Fri Dec 05 12:33:28 2014, public@khwilliamson.com wrote:
$ perl -le 'local That kind of thing can be useful for testing porpoises (and dolphins). -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
From @khwilliamsonOn 12/05/2014 01:41 PM, Father Chrysostomos via RT wrote:
But if you do that, your local $] isn't marked read-only, so when a |
From @cpansproutOn Fri Dec 05 12:57:57 2014, public@khwilliamson.com wrote:
But code already compiled will be bound to *] glob and see the localisation change. I’m not saying we shouldn’t necessarily optimise here; I’m just afraid of the aftermath. After all, simpler, more ‘internal’ changes I make seem to break more CPAN modules than I would like. -- Father Chrysostomos |
From @demerphqOn 5 December 2014 at 21:41, Father Chrysostomos via RT <
Wow. I am shocked that works. Yves -- |
From @bulk88On Fri Dec 05 14:10:18 2014, sprout wrote:
What if someone bites the bullet and uploads "Perl6.pm" to CPAN that just changes We would break that code then. More realistically, "If you expect to change -- |
From @jkeenanOn Fri Dec 05 14:10:18 2014, sprout wrote:
$] is not deprecated, but its documentation implicitly discourages its use: ##### Perhaps this is a case where we can let sleeping dogs lie. Thank you very much. |
From @rjbs* James E Keenan via RT <perlbug-followup@perl.org> [2014-12-06T09:29:23]
The same questions, related to treating the version as an immutable constant, -- |
From @khwilliamsonOn 12/06/2014 08:37 AM, Ricardo Signes wrote:
As an aside, we will never be able to get rid of |
From @maukeAm 06.12.2014 um 18:58 schrieb Karl Williamson:
I just wanted to add that this isn't necessary if your module uses -- |
From @khwilliamsonOn 12/06/2014 01:15 PM, Lukas Mai wrote:
If I understand you correctly, you're saying that if you use these Also, I believe I was wrong. Correct me if I was right. According to |
From @khwilliamsonOn 12/06/2014 04:59 PM, Karl Williamson wrote:
I managed to get perlbrew to install v5.5.4, and there is no syntax |
From @LeontOn Sat, Dec 6, 2014 at 3:29 PM, James E Keenan via RT <
Quite franky, I have much better experiences with using Leon |
Migrated from rt.perl.org#123370 (status was 'open')
Searchable as RT123370$
The text was updated successfully, but these errors were encountered: