Newsgroups: perl.perl6.language Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org Return-Path: Mailing-List: contact perl6-language-h...@perl.org; run by ezmlm Delivered-To: mailing list perl6-langu...@perl.org Delivered-To: perl6-langu...@perl.org Mime-Version: 1.0 X-Sender: dan@redcap (Unverified) Message-ID: In-Reply-To: <20030915220750.GD6305@lighthouse.tamucc.edu> References: <20030915150816.67773.qmail@web12301.mail.yahoo.com> <20030915214143.N4286@plum.flirble.org> <20030915213006.GA31177@babylonia.flatirons.org> <20030915220750.GD6305@lighthouse.tamucc.edu> Date: Mon, 15 Sep 2003 18:31:23 -0400 To: d...@cbi.tamucc.edu, Luke Palmer Subject: Re: Next Apocalypse Cc: Nicholas Clark , Austin Hastings , Gordon Henriksen , mar...@kurahaupo.gen.nz, perl6-langu...@perl.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Spam-Check-By: one.develooper.com X-Spam-Status: No, hits=-1.0 required=7.0 tests=CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01 version=2.44 X-SMTPD: qpsmtpd/0.26, http://develooper.com/code/qpsmtpd/ Approved: n...@nntp.perl.org From: d...@sidhe.org (Dan Sugalski) Lines: 30 At 5:07 PM -0500 9/15/03, Jonathan Scott Duff wrote: >On Mon, Sep 15, 2003 at 03:30:06PM -0600, Luke Palmer wrote: >> The focus here, I think, is the following problem class: >> >> sub twenty_five() { 25 } # Optimized to inline >> sub foo() { >> print twenty_five; # Inlined >> &twenty_five := { 36 }; >> print twenty_five; # Uh oh, inlined from before >> } >> >> The problem is we need to somehow un-optimize while we're running. That >> is most likely a very very hard thing to do, so another solution is >> probably needed. > >A naive approach would be to cache the names and positions of things >that are optimized such that when one of the cached things are >modified, the optimization could be replaced with either another >optimization (as in the case above) or an instruction to execute some >other code (when we can't optimize the change). That doesn't work in the face of code motion, reordering, or simplification, unfortunately. :( -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai d...@sidhe.org have teddy bears and even teddy bears get drunk