[perl6/specs] c964fd: [S02] use a better example for process globals

2012-05-04 Thread GitHub
paths: M S02-bits.pod Log Message: --- [S02] use a better example for process globals %*PID is not mentioned or explained anywhere else

[perl #63226] [BUG] globals in !UNIT_START set up too late, or statements executed too early

2010-07-27 Thread Will Coleda via RT
On Fri Feb 13 20:46:31 2009, ch...@chrisdolan.net wrote: If you include statements in the body of a package, class, etc. declaration, those are executed at :load time which happens before :main. So, globals like @*ARGS which are set up in ! UNIT_START from :main are not yet established

[perl #63226] [BUG] globals in !UNIT_START set up too late, or statements executed too early

2010-07-27 Thread Will Coleda via RT
On Tue Jul 27 18:07:28 2010, coke wrote: On Fri Feb 13 20:46:31 2009, ch...@chrisdolan.net wrote: If you include statements in the body of a package, class, etc. declaration, those are executed at :load time which happens before :main. So, globals like @*ARGS which are set up

[perl #63226] [BUG] globals in !UNIT_START set up too late, or statements executed too early

2009-02-15 Thread via RT
are executed at :load time which happens before :main. So, globals like @*ARGS which are set up in ! UNIT_START from :main are not yet established. All three of the following examples should have the same results, but the middle one is wrong. Either setup of globals needs to happen before

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

2009-02-13 Thread kjstol
...@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 error occurs. (grep for static and FIXME global in the IMCC tree.) Allison had ruled that reentrancy should

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 error occurs. (grep for static

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 parrotc...@gmail.com 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 to carry state

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

2009-02-12 Thread jerry gay
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.) Allison had ruled that reentrancy should be possible for IMCC, and this would be a good refactoring project. We've rejected

[perl #59570] $*OS and $*EXECUTABLE_NAME globals initial implementation

2008-10-02 Thread via RT
# New Ticket Created by Ahmad Zawawi # Please include the string: [perl #59570] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=59570 Hi, With this patch, $*OS and $*EXECUTABLE_NAME are now working. However, $?...

[perl #57578] [BUG] non-declared globals don't throw an error

2008-08-04 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #57578] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57578 r29919: ../../parrot perl6.pbc -e '$*STUFF' # no output I don't think that's in

[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. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=46683 In src/pmc/eval.pmc:destroy() there is the todo item: * These globals

[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. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40743 Implement the stub routine 'globals' in languages/tcl/runtime/builtin/info.pir

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 immediately

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 think

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: 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 absolute, but

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 to me

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 achieve the

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 patterned just

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 [ 'Foo'; 'Bar' ] $P0

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: 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-07 Thread Allison Randal
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 specific meaning of global. Agreed. * We still don't have way to ask for my

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

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

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
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,

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

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 distinct

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

2006-07-06 Thread Chip Salzenberg
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 should be used consistently, and symbol has many meanings in Parrot that only partly overlap the specific meaning of global

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

2006-07-06 Thread jerry gay
' # ['perl5';'Foo';'x'] $P0 = get_cur_global ['Bar'], 'x' # ['perl5';'Foo';'Bar';'x'] 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: 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 real keys.

[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. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39714 IMCC currently relies on a lot of static globals to carry state, and cannot reliably

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

2006-07-05 Thread Chip Salzenberg
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 currently can't be empty. The use of keys is a hack, but it's a very convenient hack

[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. # URL: 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. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37247 * get rid of the still existing globals, move all into appropriate structures

Re: [perl #36623] Deleting Globals/Lexicals

2005-07-23 Thread Leopold Toetsch
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. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36623 There's currently no way to delete a global or a lexical. chip mdiep: you

$?OS globals, etc.

2005-04-20 Thread Scott McWhirter
Hi, I've not been keeping very up to date in recent times of how this stuff is working. I've been noticing the use of these variables within pugs and have a slight suggestion. Currently there is rather limited abstraction with these items (as far as I am aware) and while they are usable and

Re: $?OS globals, etc.

2005-04-20 Thread Larry Wall
On Wed, Apr 20, 2005 at 08:45:02PM +0100, Scott McWhirter wrote: : Hi, : : I've not been keeping very up to date in recent times of how this stuff : is working. I've been noticing the use of these variables within pugs : and have a slight suggestion. : : Currently there is rather limited

Re: $?OS globals, etc.

2005-04-20 Thread Larry Wall
On Wed, Apr 20, 2005 at 08:45:02PM +0100, Scott McWhirter wrote: : Why would this be useful? Why should anyone care? Well, a real world : example would be if I wished to find out through a large codebase to : locate all the areas within the codebase that are calling $?OS. To do : this, I would

[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 rather big

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

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 parameter to

Q: PMC constants and globals

2003-11-27 Thread Leopold Toetsch
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 --- We have real globals (e.g. Parrot_base_vtables, Env

Use CPAN to help define built-ins and globals?

2002-12-09 Thread Ken Fox
work well with AUTOLOAD, so they probably don't require Cuse statements. Anyways, I'd rather have Cuse statements than globals. I know others disagree -- I even disagree when I'm trying to write a one-liner on the command line. Perl 6 is the community rewrite. One of the pillars of the community

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 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't guarantee global positions, since

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 bit more interesting, since bytecode-loaded

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 planning on that. We can add

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