Re: [perl #39714] [TODO] Refactor IMCC to remove static globals

2009-02-13 Thread kjstol
> >> > >>> On Tue Jul 04 19:30:44 2006, autri...@gmail.com wrote: > >>> > IMCC currently relies on a lot of static globals to carry state, and > >>> > cannot reliably restore them when an error occurs. (grep for > >>> > "s

Re: [perl #39714] [TODO] Refactor IMCC to remove static globals

2009-02-12 Thread jerry gay
te: >>> > IMCC currently relies on a lot of static globals to carry state, and >>> > cannot reliably restore them when an error occurs. (grep for >>> > "static" and "FIXME global" in the IMCC tree.) >>> > >>> &g

Re: [perl #39714] [TODO] Refactor IMCC to remove static globals

2009-02-12 Thread Will Coleda
On Thu, Feb 12, 2009 at 6:09 PM, kjstol wrote: > On Thu, Feb 12, 2009 at 9:22 PM, Will Coleda via RT < > parrotbug-follo...@parrotcode.org> wrote: > >> On Tue Jul 04 19:30:44 2006, autri...@gmail.com wrote: >> > IMCC currently relies on a lot of static globals t

Re: [perl #39714] [TODO] Refactor IMCC to remove static globals

2009-02-12 Thread kjstol
On Thu, Feb 12, 2009 at 9:22 PM, Will Coleda via RT < parrotbug-follo...@parrotcode.org> wrote: > On Tue Jul 04 19:30:44 2006, autri...@gmail.com wrote: > > IMCC currently relies on a lot of static globals to carry state, and > > cannot reliably restore them when an er

[perl #46683] [TODO] [C] Walk the fixups, locate globals and nullify the Sub PMC

2007-10-22 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46683] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46683 > In src/pmc/eval.pmc:destroy() there is the todo item: * These globals st

[perl #40743] [TODO] Tcl - implement 'globals' sub in runtime/builtin/info.pir

2006-11-08 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #40743] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=40743 > Implement the stub routine 'globals' in languages/tcl/runtime/builtin/in

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Chip Salzenberg
On Mon, Jul 10, 2006 at 07:22:21PM -0700, Allison Randal wrote: > Chip Salzenberg wrote: > > I think that "hll" is the best I can think of, and given the existing > > ".HLL" directive, its meaning is immediately clear: > > I like that. Great! > > Seems to me that we should have get_namespace pat

Re: Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Chip Salzenberg
On Mon, Jul 10, 2006 at 06:57:06PM -0700, Matt Diephouse wrote: > Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > >I really like both of these suggestions. We also noted on #parrot that > >get_hll_global would really simplify things for the Tcl folks, which > >currently go through a macro to achie

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Allison Randal
Chip Salzenberg wrote: > > Hrm. Relative is the usual apposite to absolute, but we have a three-way > logic here, so appositives don't really work. I think that "hll" is the > best I can think of, and given the existing ".HLL" directive, its meaning > is immediately clear: I like that. > Seems

Re: Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Matt Diephouse
Patrick R. Michaud <[EMAIL PROTECTED]> wrote: On Mon, Jul 10, 2006 at 02:53:15PM -0700, Chip Salzenberg wrote: > On Mon, Jul 10, 2006 at 03:23:56PM -0500, Patrick R. Michaud wrote: > > On Sat, Jul 08, 2006 at 01:57:58PM -0700, Chip Salzenberg wrote: > > > Relative is the usual apposite to absolut

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Patrick R. Michaud
On Mon, Jul 10, 2006 at 02:53:15PM -0700, Chip Salzenberg wrote: > On Mon, Jul 10, 2006 at 03:23:56PM -0500, Patrick R. Michaud wrote: > > On Sat, Jul 08, 2006 at 01:57:58PM -0700, Chip Salzenberg wrote: > > > Relative is the usual apposite to absolute, but we have a three-way > > > logic here, so

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Chip Salzenberg
On Mon, Jul 10, 2006 at 03:23:56PM -0500, Patrick R. Michaud wrote: > On Sat, Jul 08, 2006 at 01:57:58PM -0700, Chip Salzenberg wrote: > > Relative is the usual apposite to absolute, but we have a three-way > > logic here, so appositives don't really work. I think that "hll" is the > > best I can

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Patrick R. Michaud
On Sat, Jul 08, 2006 at 01:57:58PM -0700, Chip Salzenberg wrote: > Relative is the usual apposite to absolute, but we have a three-way > logic here, so appositives don't really work. I think that "hll" is the > best I can think of, and given the existing ".HLL" directive, its meaning > is immediat

Re: Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-08 Thread Matt Diephouse
Chip Salzenberg <[EMAIL PROTECTED]> wrote: { Language implementors, please know I'm going to do everything I can to make every commit break nothing. I did pretty well when I made namespace [''] stop being [] -- I fixed all the HLLs in the selfsame patch, except two bits of code generation

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-08 Thread Chip Salzenberg
{ Language implementors, please know I'm going to do everything I can to make every commit break nothing. I did pretty well when I made namespace [''] stop being [] -- I fixed all the HLLs in the selfsame patch, except two bits of code generation in TGE and PGE, which I fixed when they were

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-08 Thread Chip Salzenberg
On Thu, Jul 06, 2006 at 05:39:45PM -0700, jerry gay wrote: > am i silly to think that if i'm looking for globals from the current > namespace, they're just as likely to be found closer to the namespace > root, than further away? perhaps something like > >.namespace

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-07 Thread Allison Randal
Matt Diephouse wrote: So for the runtime (this is the HLL runtime, not the PIR runtime, btw) we're all set. Arrays fill the need perfectly and let us access the root HLL namespace. That makes me think that we don't need any new opcodes. Chip's latest simplification eliminates the need for crea

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-07 Thread Allison Randal
ot;symbol") leaves the third category (current namespace) with no clear home. Agreed. * All the things being accessed are globals. Seems like the word "global" should be used consistently, and "symbol" has many meanings in Parrot that only partly overlap the spe

Re: Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-06 Thread Matt Diephouse
Allison Randal <[EMAIL PROTECTED]> wrote: Chip Salzenberg wrote: > > --- PART 2, IN WHICH AN ELEGANT SOLUTION IS PROPOSED -- > > On the other hand, we could extend the key PMC to represent emptiness, > i.e. zero dimensions. This seems useful for namespaces and could even prove > useful for rea

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-06 Thread jerry gay
$P0 = get_cur_global 'x' # ['perl5';'Foo';'x'] $P0 = get_cur_global ['Bar'], 'x' # ['perl5';'Foo';'Bar';'x'] am i silly to think that if i'm looking for global

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-06 Thread Chip Salzenberg
at's my job now :-))), in descending order of difficulty: * The division into two categories ("global" and "symbol") leaves the third category (current namespace) with no clear home. * All the things being accessed are globals. Seems like the word "global"

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-06 Thread Chip Salzenberg
On Thu, Jul 06, 2006 at 12:11:47PM -0700, Allison Randal wrote: > It's essentially the linguistic problem of being able to refer to > something both by its full name and by the pronoun "it". (Otherwise known > as "topic".) Only, currently "it" isn't represented by a word. Well, we have three disti

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-06 Thread Allison Randal
Chip Salzenberg wrote: On Thu, Jul 06, 2006 at 01:21:08AM -0700, Allison Randal wrote: The problem is really that we're trying to simultaneously a) refer to the root HLL namespace directly, and b) pretend that it doesn't exist. I don't think (b) is quite true. It's more that we're avoiding ex

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-06 Thread Allison Randal
Allison Randal wrote: I had a much longer reply, but I'm going to let it steep overnight and see what percolates. I ran through a number of possibilities, but so far my favorite is: find_global and store_global are truly 'global', that is, they always require a fully specified namespace, in

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-06 Thread Chip Salzenberg
On Thu, Jul 06, 2006 at 01:21:08AM -0700, Allison Randal wrote: > The problem is really that we're trying to simultaneously a) refer to > the root HLL namespace directly, and b) pretend that it doesn't exist. I don't think (b) is quite true. It's more that we're avoiding explicit re-coding of a

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-06 Thread Allison Randal
Chip Salzenberg wrote: --- PART 2, IN WHICH AN ELEGANT SOLUTION IS PROPOSED -- On the other hand, we could extend the key PMC to represent emptiness, i.e. zero dimensions. This seems useful for namespaces and could even prove useful for real keys. And this makes keys even more compatible wi

HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-05 Thread Chip Salzenberg
ce [] > so that we could also have the > matching C< find_global [], 'foo' >. Otherwise find_global becomes a > two step operation for finding globals in the root HLL namespace. Well, that's a bit problematic. The [] syntax is inherited from the key syntax, and keys c

[perl #39714] [TODO] Refactor IMCC to remove static globals

2006-07-05 Thread via RT
# New Ticket Created by Audrey Tang # Please include the string: [perl #39714] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=39714 > IMCC currently relies on a lot of static globals to carry state, and cannot relia

[perl #38119] [TODO] Tcl - implement missing globals

2006-01-01 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #38119] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=38119 > All globals mentioned in http://www.tcl.tk/man/tcl8.5/TclCmd/ tclvars.htm must

[perl #37247] [TODO] IMCC - remove globals

2005-09-23 Thread via RT
# New Ticket Created by Joshua Hoblitt # Please include the string: [perl #37247] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37247 > * get rid of the still existing globals, move all into appropriate structu

Re: [perl #36623] Deleting Globals/Lexicals

2005-07-23 Thread Leopold Toetsch
bal or a lexical. Globals: .local pmc ns .include "interpinfo.pasm" ns = interpinfo .INTERPINFO_NAMESPACE_ROOT delete ns["foo"] (untested - see also t/pmc/namespace.t) Lexcials: .local pmc pad pad = peek_pad delete pad["foo"] (see also t/pmc/scratchpad.t) leo

[perl #36623] Deleting Globals/Lexicals

2005-07-21 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #36623] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36623 > There's currently no way to delete a global or a lexical. mdiep: you should be

[CVS ci] remove a bunch of IMCC globals

2004-11-30 Thread Leopold Toetsch
I've moved a lot of the globals into the imc_info structure. The PASM and PIR compilers are basically re-entrant now (there are likely some issues with line numbers in error reports). To achieve this a lot of functions got an interpreter argument, which unfortunately makes the patch rathe

Re: globals

2004-09-29 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > Currently, Parrot_find_global throws and internal_exception, which is IMO not > good. Where? The Parrot_find_global() function returns NULL in failure case. Parrot_get_global() throws a real execption. > I have a patch ready that adds a "void *next" paramet

globals

2004-09-29 Thread Jens Rieks
Currently, Parrot_find_global throws and internal_exception, which is IMO not good. I have a patch ready that adds a "void *next" parameter to - Parrot_find_global - Parrot_store_global and adds - Parrot_find_global_nspmc (PMC *namespace instead of STRING *namespace) - Parrot_store_global_nspmc (

Q: PMC constants and globals

2003-11-27 Thread Leopold Toetsch
es between 1) and 2) are: 1) needs more knowledge about thawed PMCs (put Subs into the globals...) 2) needs a thaw option to extend the given (hash) PMC, but is much simpler Thougts? leo

interpreter globals (was: QUERIES: ...)

2003-08-14 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 11:06 AM +0200 8/8/03, Leopold Toetsch wrote: >>This is an unordered list of issues - mainly design questions - about >>the specific implementation of some parts. >> >>Interpreter globals >>---

Globals!

2002-06-13 Thread Dan Sugalski
Folks, We have global variables. (And have for some time, according to the commit logs) I've tweaked core.ops a little, made sure the global symbol table is part of the root set for the GC, and added in a test for it. Anyone got anything else on the todo list that's actually done? :) --

RE: Globals

2002-02-13 Thread Dan Sugalski
At 3:05 PM +0100 2/13/02, Angel Faus wrote: >Dan wrote: >>Yep, I've seen their plans. It's less an issue for us, at least as >>far as globals are concerned, since we'll be doing that with >>lexicals. (Python not having lexicals, after all) Globals are a bi

RE: Globals

2002-02-13 Thread Angel Faus
Dan wrote: >Yep, I've seen their plans. It's less an issue for us, at least as >far as globals are concerned, since we'll be doing that with >lexicals. (Python not having lexicals, after all) Globals are a bit >more interesting, since bytecode-loaded modules can&#x

Re: Globals

2002-02-10 Thread Dan Sugalski
At 12:54 AM -0500 2/10/02, Melvin Smith wrote: >I know globals are still on the todo, but what is the plan for the >operands of these opcodes? I see PMC examples, but will >we also have versions of these for the native int, string and number >Parrot types? Nope, I'm not plannin

Globals

2002-02-09 Thread Melvin Smith
I know globals are still on the todo, but what is the plan for the operands of these opcodes? I see PMC examples, but will we also have versions of these for the native int, string and number Parrot types? -Melvin