[svn:parrot-pdd] r33162 - trunk/docs/pdds

2008-11-24 Thread jonathan
Author: jonathan Date: Mon Nov 24 14:49:30 2008 New Revision: 33162 Modified: trunk/docs/pdds/pdd23_exceptions.pod Log: [pdd] Add details of how to get bytecode annotations from Exception PMC. Modified: trunk/docs/pdds/pdd23_exceptions.pod

[svn:parrot-pdd] r33163 - trunk/docs/pdds

2008-11-24 Thread jonathan
Author: jonathan Date: Mon Nov 24 14:50:50 2008 New Revision: 33163 Modified: trunk/docs/pdds/pdd23_exceptions.pod Log: [pdd] Correction to previous commit; name is just an optional parameter to annotations, for consistency with e.g. inspect method. Modified: trunk/docs/pdds

[svn:parrot-pdd] r33166 - trunk/docs/pdds

2008-11-24 Thread jonathan
Author: jonathan Date: Mon Nov 24 15:22:49 2008 New Revision: 33166 Modified: trunk/docs/pdds/pdd19_pir.pod Log: [pdd] Document .annotate and .file and update .line directives in the PIR PDD. Modified: trunk/docs/pdds/pdd19_pir.pod

[svn:parrot-pdd] r35128 - trunk/docs/pdds

2009-01-07 Thread jonathan
Author: jonathan Date: Wed Jan 7 08:01:00 2009 New Revision: 35128 Modified: trunk/docs/pdds/pdd23_exceptions.pod Log: [pdd] Remove unimplemented notes for annotations method on Exception, and add documentation for backtrace method. Modified: trunk/docs/pdds/pdd23_exceptions.pod

[svn:parrot-pdd] r14785 - trunk/docs/pdds/clip

2006-09-28 Thread jonathan
Author: jonathan Date: Thu Sep 28 15:55:52 2006 New Revision: 14785 Modified: trunk/docs/pdds/clip/pdd13_bytecode.pod Log: Add most of the changes resulting from discussion with Allison. Modified: trunk/docs/pdds/clip/pdd13_bytecode.pod

[svn:parrot-pdd] r14784 - trunk/docs/pdds/clip

2006-09-28 Thread jonathan
Author: jonathan Date: Thu Sep 28 14:23:15 2006 New Revision: 14784 Modified: trunk/docs/pdds/clip/pdd13_bytecode.pod Log: Add draft of the bytecode PDD. This is still missing some changes that need to be made following discussion with Allison, but gives the big picture of what is proposed

[svn:parrot-pdd] r15000 - trunk/docs/pdds/clip

2006-10-23 Thread jonathan
Author: jonathan Date: Mon Oct 23 08:19:59 2006 New Revision: 15000 Modified: trunk/docs/pdds/clip/pdd13_bytecode.pod Log: Add annotation groups to the bytecode specification. Modified: trunk/docs/pdds/clip/pdd13_bytecode.pod

[svn:parrot-pdd] r15001 - trunk/docs/pdds/clip

2006-10-23 Thread jonathan
Author: jonathan Date: Mon Oct 23 09:30:39 2006 New Revision: 15001 Modified: trunk/docs/pdds/clip/pdd13_bytecode.pod Log: Add dependencies segment to the specification and fix string constants storage. Modified: trunk/docs/pdds/clip/pdd13_bytecode.pod

[svn:parrot-pdd] r15024 - trunk/docs/pdds/clip

2006-10-25 Thread jonathan
Author: jonathan Date: Wed Oct 25 15:29:31 2006 New Revision: 15024 Modified: trunk/docs/pdds/clip/pdd15_objects.pod Log: Add REQUIREMENTS section to PDD15 Objects, to enable us to start fleshing out what Parrot's object system needs to do. Includes hopefully most of what Perl 6 and

[svn:parrot-pdd] r15037 - trunk/docs/pdds/clip

2006-10-28 Thread jonathan
Author: jonathan Date: Sat Oct 28 09:59:25 2006 New Revision: 15037 Modified: trunk/docs/pdds/clip/pdd17_basic_types.pod Log: Add two new reference PMCs to the Basic Types PDD. Modified: trunk/docs/pdds/clip/pdd17_basic_types.pod

[svn:parrot-pdd] r15051 - trunk/docs/pdds/clip

2006-10-29 Thread jonathan
Author: jonathan Date: Sun Oct 29 12:21:25 2006 New Revision: 15051 Modified: trunk/docs/pdds/clip/pdd15_objects.pod Log: Add a note on constructors to the Objects requirements. Modified: trunk/docs/pdds/clip/pdd15_objects.pod

[svn:parrot-pdd] r17322 - trunk/docs/pdds/draft

2007-03-04 Thread jonathan
Author: jonathan Date: Sun Mar 4 02:19:10 2007 New Revision: 17322 Modified: trunk/docs/pdds/draft/pdd15_objects.pod Log: Describe new class and object layout for objects. We now push a lot into the class and make objects really lightweight, since you will usually instantiate many objects

[svn:parrot-pdd] r17336 - trunk/docs/pdds/draft

2007-03-04 Thread jonathan
Author: jonathan Date: Sun Mar 4 14:47:00 2007 New Revision: 17336 Modified: trunk/docs/pdds/draft/pdd15_objects.pod Log: s/variable/value/ - bob rogers++ Modified: trunk/docs/pdds/draft/pdd15_objects.pod

[svn:parrot-pdd] r17711 - trunk/docs/pdds/draft

2007-03-24 Thread jonathan
Author: jonathan Date: Sat Mar 24 08:13:06 2007 New Revision: 17711 Modified: trunk/docs/pdds/draft/pdd15_objects.pod Log: [PDD15]: Incorporate some changes and updates. Also add a proposal for role conflict resolution, based upon the traits paper and discussion with allison++. Modified

[svn:parrot-pdd] r17738 - trunk/docs/pdds/draft

2007-03-25 Thread jonathan
Author: jonathan Date: Sun Mar 25 10:43:53 2007 New Revision: 17738 Modified: trunk/docs/pdds/draft/pdd15_objects.pod Log: [PDD15]: Should mention add_method and method for both classes and roles. Modified: trunk/docs/pdds/draft/pdd15_objects.pod

[svn:parrot-pdd] r17817 - trunk/docs/pdds/draft

2007-03-28 Thread jonathan
Author: jonathan Date: Wed Mar 28 14:57:56 2007 New Revision: 17817 Modified: trunk/docs/pdds/draft/pdd15_objects.pod Log: [PDD15]: Some extra details to explain the result of one role being composed into another; these mostly mirror what happens when a role is composed into a class

[svn:parrot-pdd] r19555 - trunk/docs/pdds/draft

2007-07-03 Thread jonathan
Author: jonathan Date: Tue Jul 3 05:38:21 2007 New Revision: 19555 Modified: trunk/docs/pdds/draft/pdd17_pmc.pod Log: [PDD17]: Properly document my proposal for how inheriting from PMCs will be made to work. Modified: trunk/docs/pdds/draft/pdd17_pmc.pod

[svn:parrot-pdd] r20135 - in trunk: . docs/pdds

2007-07-23 Thread jonathan
Author: jonathan Date: Mon Jul 23 21:22:21 2007 New Revision: 20135 Modified: trunk/docs/pdds/pdd13_bytecode.pod Changes in other areas also in this revision: Modified: trunk/PBC_COMPAT Log: [PDD13] Bring format of PBC_COMPAT and the specification in line with each other. Modified

Re: Namespaces, part 1

2004-09-24 Thread Jonathan
nction namespace. Allow me to demonstrate: #!/usr/bin/env python def a(): pass print a a = 7 print a Produces the following on my system: 7 So this does need to be addressed for a primary target language. -- Jonathan

PDD17 Questions

2007-11-16 Thread jonathan
se let me know. I can't promise I'll get to everything in a hurry, but I should have time to actually do some Parrot stuff again now. Thanks, Jonathan

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Jonathan Worthington
happens when we do newclosure on a multi, but I think we can make that do something sane (snapshot the lot, perhaps? Need to think about what falls out of that...) Also it's interesting to note in this example that replacing "newclosure" with "clone" gives the same seman

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Jonathan Worthington
ing if we take a reference to an undisambiguated multi...then we have to newclosure it (clone it) as we take a reference...well, I guess then it just populates its clone to the closures too. But we'd not want to close non-closures, I guess. So, hmm... Sleep! Jonathan

Re: YAPC::EU 2008

2008-07-28 Thread Jonathan Worthington
en before, I could forgive you for wanting to spend a day enjoying the city rather than hacking though - it's nice! :-) See you there, Jonathan

Re: [svn:parrot] r29914 - trunk/languages/perl6/src/builtins

2008-08-01 Thread Jonathan Worthington
..if not, I will follow up on it when I next have tuits. Thanks, Jonathan

Re: [perl #57636] [TODO][PDD19] Document the reason for :unique_reg flag

2008-08-06 Thread Jonathan Worthington
entioned, works as a hint to the register allocator not to bother trying to allocate something that will have life over the entire compilation unit anyway. Jonathan

Reason for attributes.t fail

2008-08-07 Thread Jonathan Worthington
C does not implement the get_bool vtable method (which I'm guessing must have changed when we merged pdd25cx). I'm not sure what the best solution for this is...in the meantime, I have fudged that test, so the rest of attributes.t passes again now. Thanks, Jonathan

time op inconsistent on Win32

2008-08-07 Thread Jonathan Worthington
e Win32 version to do the same as the others for consistency? Or should we keep these platform specific and make code that cares check what OS we are on and work it out (don't like this option so much, since we're meant to be abstracting the OS away...) Opinions? Thanks, Jonathan

Re: [perl #57636] [TODO][PDD19] Document the reason for :unique_reg flag

2008-08-07 Thread Jonathan Worthington
#x27;t really have tuits to look at this at the moment, though I certainly want to bring it up to date when I do get chance. Thanks, Jonathan

Re: [perl #57636] [TODO][PDD19] Document the reason for :unique_reg flag

2008-08-07 Thread Jonathan Worthington
here needs to know, in the PIR itself, what actual register number is being used. Jonathan

Re: [perl #57636] [TODO][PDD19] Document the reason for :unique_reg flag

2008-08-07 Thread Jonathan Worthington
, Jonathan

Re: Reason for attributes.t fail

2008-08-07 Thread Jonathan Worthington
is likely needs a bit more thought from the Rakudo side before we rush and stick a get_bool into the Exception PMC. Maybe something to work out next week at YAPC... Thanks for the clarification from the Parrot side of things! Jonathan

Re: Reason for attributes.t fail

2008-08-07 Thread Jonathan Worthington
nda thing may be a solution, though I'm not sure how robust it is. Thanks, Jonathan

Re: time op inconsistent on Win32

2008-08-07 Thread Jonathan Worthington
Ron Blaschke wrote: Jonathan Worthington wrote: I've just been looking at the time op, and what it returns is somewhat platform specific. * On Win32, it's the number of seconds since January 1, 1601 If I remember correctly, some parts of Windows use 100ns ticks since 1601 to repr

Re: [perl #58032] [BUG] languages/perl6/t/pmc/perl6multisub-dispatch-tiebreak.t: filename is too long

2008-08-17 Thread Jonathan Worthington
days, they just take too long on my slow old laptop, which I've been hacking on at conferences.) Jonathan: Perhaps you could delete the 'perl6' at the beginning of the basenames of these 4 files: languages/perl6/t/pmc/perl6multisub-basic.t languages/perl6/t/pmc/perl6multisub-d

Re: [perl #45857] [IMCC][RFC] #line vs .line

2008-11-23 Thread Jonathan Worthington
codes can probably go away; I can't think of a use case where we'd want to set these dynamically, since we know the line number/file number/column/whatever else we wish to store at compile time. Doing an op dispatch rather than making an annotation we can look up only when we need it seems odd to me. Thoughts? Jonathan

Re: [perl #45857] [IMCC][RFC] #line vs .line

2008-11-23 Thread Jonathan Worthington
#file and we're done...perhaps for the next release. Sound sane? Jonathan

Re: [perl #45857] [IMCC][RFC] #line vs .line

2008-11-23 Thread Jonathan Worthington
.annotate "file" "foo.pl" .annotate "compiler" "rakudo-0.1" And then per line: .annotate "line" 42 When a new source code line starts. And yes, I need to get this all into the PIR docs, though the storage scheme for all of this is in the bytecode PDD already. But it should give us plenty of flexibility. Sound good? Thanks, Jonathan

Re: [PATCH] Add .trim method

2009-01-12 Thread Jonathan Worthington
k calls 'em TrimStart and TrimEnd (and has a Trim that does both). So maybe trim_start and trim_end if we wanted to take that lead... Jonathan

Re: [perl #41825] [BUG] morph vtable override not working in PIR

2009-01-17 Thread Jonathan Worthington
what we've needed to date. I'm curious - is anyone else doing a HLL on Parrot that uses morph? If nobody is, is it worth spending time on, or even worth keeping? Thanks, Jonathan

Re: Ops Review

2009-01-20 Thread Jonathan Worthington
think one criteria to consider is, are their architectures out there (that we're targeting now or likely to) that have the equivalent op implemented at a CPU instruction level, such that we could JIT it in the future? If so, there's probably benefit in it staying a Parrot op. Jonathan

Re: mem_allocate_aligned

2001-12-11 Thread Jonathan Stowe
On Mon, 10 Dec 2001, Dan Sugalski wrote: > > We need an "allocate zeroed" call too. We can get zeroed pages faster in > some cases than we can allocate pages and zero them ourselves. > Isn't that calloc() ? /J\ -- Jonathan Stowe

[PATCH Miniperl::Tokenizer] Shut up warning in test

2002-01-02 Thread Jonathan Stowe
ON = '0.02'; #-- @@ -25,7 +25,7 @@ sub tokenize { my $self = shift; - $self->{text} = $_[0] if $_[0] and $_[0] ne ''; + $self->{text} = $_[0] || return []; my $tokref = []; my $in_

Re: Proposal: Naming conventions

2002-01-11 Thread Jonathan Leffler
s at least nominally dubious coding practice - though it matches C++ forward declarations, so it is bearable. >[...] -- Jonathan Leffler #include STSM, IBM Data Management Solutions. Phone: +1 650-926-6921 Email: [EMAIL PROTECTED], [EMAIL PROTECTED] Guardian of DBD::Informix v1.00.PC1 -- http://dbi.perl.org "I don't suffer from insanity; I enjoy every minute of it!"

Re: CPP Namespace pollution

2002-01-28 Thread Jonathan Stowe
I'll > see if we can find out what needs to be done, then prevail on Ask to > fix us up here. > You just need someone with a shell on the CVS (and the appropriate permissions :) server to move the files to the new layout ... /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[PATCH global_setup.h] Bash another warning

2002-02-01 Thread Jonathan Stowe
(void); +void Parrot_Array_class_init(void); void Parrot_PerlHash_class_init(void); void Parrot_ParrotPointer_class_init(void); void Parrot_IntQueue_class_init(void); /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[PATCH test_main.c config_h.in] Warning in test_main.c

2002-02-01 Thread Jonathan Stowe
uot; +#ifdef HAS_HEADER_STDLIB +# include +#endif + #define setopt(flag) Parrot_setflag(interpreter, flag, (*argv)[0]+2); char * /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[PATCH embed.c] More warnings

2002-02-01 Thread Jonathan Stowe
rr, "\t%d: %s\n", (int)i, argv[i]); } userargv->vtable->set_string_index(interpreter, userargv, /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

Re: [PATCH test_main.c config_h.in] Warning in test_main.c

2002-02-01 Thread Jonathan Stowe
On Fri, 1 Feb 2002, Jonathan Stowe wrote: > This shuts up the implicit declaration warning in test_main.c : > > +#include "parrot/config.h" ... On closer examination that line is probably not needed :) /J\ -- Jonathan Stowe | <ht

RE: [PATCH test_main.c config_h.in] Warning in test_main.c

2002-02-01 Thread Jonathan Stowe
On Fri, 1 Feb 2002, Brent Dax wrote: > Jonathan Stowe: > # This shuts up the implicit declaration warning in test_main.c : > # > # --- config_h.in~Fri Feb 1 07:39:42 2002 > # +++ config_h.in Fri Feb 1 07:40:06 2002 > # @@ -51,9 +51,10 @@ > # #define IN

[PATCH misc.c] Fix up *some* of the warnings

2002-02-05 Thread Jonathan Stowe
gen_sprintf_call(t1, t2, &info, 'G'); + +gen_sprintf_call(t1, t2, &info, (const char)'G'); sprintf(t2, t1, dbl);

[PATCH] Nearly the last of the warnings.

2002-02-05 Thread Jonathan Stowe
ruct Parrot_Interp *, STRING* pat, ...); -STRING* Parrot_sprintf_c(struct Parrot_Interp *, char * pat, ...); +STRING* Parrot_sprintf_c(struct Parrot_Interp *, const char * pat, ...); void Parrot_sprintf(struct Parrot_Interp *, char *targ, char *pat, ...); Have fun /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

Re: [PATCH] Nearly the last of the warnings.

2002-02-05 Thread Jonathan Stowe
ng a bug!? Surprised me - it got away in the storm of warnings no doubt ;-} /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

Re: [PATCH] Nearly the last of the warnings.

2002-02-05 Thread Jonathan Stowe
On Tue, 5 Feb 2002, Andy Dougherty wrote: > On Tue, 5 Feb 2002, Jonathan Stowe wrote: > > > AFAICT - apart from those pesky ones left in misc.c the only ones left > > should be from generated code which I have a plan for which I will share > > later :) > > Well, t

[REPATCH]Re: [PATCH] Nearly the last of the warnings.

2002-02-06 Thread Jonathan Stowe
On Tue, 5 Feb 2002, Jonathan Stowe wrote: > This might spoil someones future plans but doesn't break anything existing > AFAICT - apart from those pesky ones left in misc.c the only ones left > should be from generated code which I have a plan for which I will share > later

RE: [REPATCH]Re: [PATCH] Nearly the last of the warnings.

2002-02-06 Thread Jonathan Stowe
On Wed, 6 Feb 2002, Brent Dax wrote: > Jonathan Stowe: > # - if(!(targ=Parrot_sprintf_c(interpreter, "%S at %S line > # %d.\n", targ, interpreter->current_file, > # interpreter->current_line))) { > # + if(!(targ=Parrot_sprintf_c(interpreter, (const char &g

[PATCH] Bash some more warnings

2002-02-16 Thread Jonathan Stowe
*pat, va_list *); @@ -14,7 +14,7 @@ STRING* Parrot_sprintf_s(struct Parrot_Interp *, STRING* pat, ...); -STRING* Parrot_sprintf_c(struct Parrot_Interp *, char * pat, ...); +STRING* Parrot_sprintf_c(struct Parrot_Interp *, const char * pat, ...); void Parrot_sprintf(struct Parrot_Interp *, char *targ, char *pat, ...); /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[REPATCH] Re: [PATCH] Bash some more warnings

2002-02-17 Thread Jonathan Stowe
key->keys = (KEY_PAIR**)realloc(key->keys,sizeof(KEY_PAIR *)*key->size); } else if(key->size == 0) { fprintf(stderr, @@ -416,7 +416,7 @@ if(key != NULL) { if((idx >= 0) && (idx < key->size)) { - KEY_PAIR* pair = &key->keys[idx]; + KEY_PAIR* pair = (KEY_PAIR *)&key->keys[idx]; pair->type++; } else { /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

RE: [Parrot-Newbie] Fooling around with parrot

2002-02-17 Thread Jonathan Stowe
t > thing. This is what happened: > > ~/parrot>assemble.pl examples/assembly/euclid.pasm >test.pbc > ~/parrot>pbc2c.pl test.pbc >test.c > Use of uninitialized value in sprintf at lib/Parrot/OpTrans/CGoto.pm line > 97. > ~/parrot> Don't worry ab

Re: [PATCH] Bash some more warnings

2002-02-18 Thread Jonathan Stowe
why it's safer to write > > p = realloc(p, N * sizeof(*p)); > > whenever possible (that is, if p has correct type). > Btw, is the cast necessary? realloc() returns void*, after all... > > The cast is necessary with the warning level that we have currently :) /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[REPATCH] Re: [PATCH] Bash some more warnings

2002-02-18 Thread Jonathan Stowe
at, ...); -STRING* Parrot_sprintf_c(struct Parrot_Interp *, char * pat, ...); +STRING* Parrot_sprintf_c(struct Parrot_Interp *, const char * pat, ...); void Parrot_sprintf(struct Parrot_Interp *, char *targ, char *pat, ...); Everything still appears to be working and no obvious leaks /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[PATCH] Does jit.c warning reveal a bug ?

2002-02-24 Thread Jonathan Stowe
break; case 7: address = (INTVAL *)&s->type; BTW. Does anyone know why I get this in gdb : #0 0x8178324 in ?? () at eval.c:41 41 eval.c: No such file or directory. I can't find any '#file eval.c' in any of the source files. /J\ -- Jona

i386 jit print_s

2002-02-24 Thread Jonathan Stowe
;t find anything on the list - if this is to stay for the time being perhaps we ought to skip the failing tests if we are doing 'testj' ? /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[PATCH] typo in jit/i386/string.jit

2002-02-24 Thread Jonathan Stowe
/J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[PATCH] Fix last warnings in encodings stuff

2002-03-18 Thread Jonathan Stowe
-556,8 +556,8 @@ FLOATVAL f = 0.0; if (s) { -char *start = s->bufstart; -char *end = start + s->bufused; +const char *start = s->bufstart; +const char *end = start + s->bufused; int sign = 1; BOOLVAL seen_dot = 0;

[PATCH] Makefile.in 'make clean' should preserve backups

2002-03-18 Thread Jonathan Stowe
mp;& cd .. cd languages && $(MAKE) clean && cd .. @@ -434,6 +433,7 @@ $(RM_F) t/op/*.pasm t/op/*.pbc t/op/*.out realclean: clean + $(RM_F) *~ $(RM_F) $(STICKY_FILES) distclean: /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[PATCH] Warning in packfile.c

2002-03-18 Thread Jonathan Stowe
debug, segment_size, sizeof(opcode_t)); +debug, segment_size, (long)sizeof(opcode_t)); return 0; } return 1; /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

Re: [PATCH] Fix last warnings in encodings stuff

2002-03-18 Thread Jonathan Stowe
On Mon, 18 Mar 2002, Jonathan Stowe wrote: >This is a little > problematic because in ut8.c and utf16.c we are doing rather unconstly > things to variables that we hade previously declared as const, I should qualified this: "but

[Not OK] SCO_SV pigment 3.2 5.0.5 i386

2002-03-18 Thread Jonathan Stowe
r intvalsize. I'll take a poke at it - this should be considered FYI rather than something that should stop 0.04 ;-} /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

[PATCH(es)] round up of warning fixes

2002-04-03 Thread Jonathan Stowe
oid *(*skip_forward) (const void *ptr, Parrot_UInt n); -void *(*skip_backward) (const void *ptr, Parrot_UInt n); +const void *(*skip_forward) (const void *ptr, Parrot_UInt n); +const void *(*skip_backward) (const void *ptr, Parrot_UInt n); }; #define Parrot_Encoding struct parrot_encoding_t * /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent |

Re: Subs?

2002-07-18 Thread Jonathan Sillito
s the next op for the interpreter (in core.ops): goto ADDRESS(sub->init); /* always 0 */ Is there a different pasm syntax I should be using for creating and calling subs? I seem to remember some discussion about changing how things are passed to constructors but I am not sure what the conclusion was. -- Jonathan Sillito

Re: [PATCH] Subs?

2002-07-18 Thread Jonathan Sillito
uld be appreciated.) -- Jonathan Sillito Index: examples/assembly/sub.pasm === RCS file: /cvs/public/parrot/examples/assembly/sub.pasm,v retrieving revision 1.2 diff -u -r1.2 sub.pasm --- examples/assembly/sub.pasm 7 Jun 2002

[PATCH] add invoke vtable method

2002-07-22 Thread Jonathan Sillito
nvoke op. Next on my list is (next 24 hours or so): 1) remove old call and callco ops (invoke takes care of both) from core.ops 2) change examples/assembly/sub.pasm and coroutine.pasm to use invoke instead of call and callco 3) add some tests After that I will look into adding a C

lexical scopes and scratchpads

2002-07-23 Thread Jonathan Sillito
han this offset, should refer to a variable in an enclosing scope) */ INTVAL offset; /* number of pointers in data */ INTVAL size; } * scratchpad_t; Thanks, for any help/feedback! -- Jonathan Sillito

Re: lexical scopes and scratchpads

2002-07-24 Thread Jonathan Sillito
: interpreter->ctx.current_scope = SELF->scope; What do you think? Is there something I am misunderstanding about how closures work? > On this line, we need to discuss the symbol table format for > the bytecode. I played around a bit but nothing I wish to commit. I haven't given this any thought yet ... -- Jonathan Sillito

Re: [perl #15800] [PATCH] lexical scope ops, test and example

2002-07-30 Thread Jonathan Sillito
On Mon, 2002-07-29 at 17:12, Simon Glover wrote: > I think you forgot to attach the patch... oops, now the files are attached ... - patch: lex.patch - test file: lexicals.t - example file: lexicals.pasm On Tue, 2002-07-30 at 02:14, Stephen Rawls wrote: > --- Jonathan S

Re: [perl #15800] [PATCH] lexical scope ops, test and example

2002-07-30 Thread Jonathan Sillito
ix it. Thanks again. -- Jonathan Sillito On Tue, 2002-07-30 at 10:47, Melvin Smith wrote: > See my 2 comments: > > > new P0, .PerlInt > > new P1, .PerlInt > > new P2, .PerlInt > > new P3, .PerlInt > > set P0, 10 > > set P1, 11 > > set P2, 12 >

Re: Lexical variables, scratchpads, closures, ...

2002-07-31 Thread Jonathan Sillito
cope find_lex P1, "x" # again probably by index not name # after this P1 holds the int pmc # print ret Does that make sense? -- Jonathan Sillito

Re: Lexical variables, scratchpads, closures, ...

2002-07-31 Thread Jonathan Sillito
On Wed, 2002-07-31 at 13:49, Jerome Vouillon wrote: > On Wed, Jul 31, 2002 at 11:40:39AM -0600, Jonathan Sillito wrote: > > new_pad # push this on the lexical stack > > # some constant descriptor should also be passed > > # to the new_pad op

Re: Lexical variables, scratchpads, closures, ...

2002-08-02 Thread Jonathan Sillito
hen to access a lexical by name involves a sequential search through the (probably not large) array of names, to get the index, then the index is used to get the lexical from the other array. Or would that make access by name too slow? -- Jonathan Sillito

Re: questions about pdd03_calling_conventions.pod

2002-08-09 Thread Jonathan Sillito
On Tue, 2002-08-06 at 20:11, Sean O'Rourke wrote: > On Tue, 6 Aug 2002, Dan Sugalski wrote: > > > At 12:57 PM -0600 8/6/02, Jonathan Sillito wrote: > > >Can a prototyped sub take a variable number of parameters (ie can it > > >have 'rest' params?). I

Re: [COMMIT] GC_DEBUG, Some GC Fixes, and Remaining GC Bugs

2002-08-12 Thread Jonathan Sillito
hour ago. ??? --- Jonathan Sillito On Mon, 2002-08-12 at 01:56, Mike Lambert wrote: > Hey, > > I re-added the GC_DEBUG define today, and weeded out a bunch of issues. > For those who don't remember, GC_DEBUG (currently in parrot.h) causes > various limits and settings and lo

Re: [perl #16087] [PATCH] Scratchpad pmc

2002-08-12 Thread Jonathan Sillito
at is not a question just some random thought. 4) Parrot_Coroutine's 'init' is not longer used and can go away, I guess I could remove it in a future patch ... ok so that's not a question either. Anyway, thanks for any info! -- Jonathan Sillito On Thu, 2002-08-08 at 14:29, Jona

Re: A show of hands of the non-perl people?

2002-09-04 Thread Jonathan Sillito
or up in the air still (my patch in [perl #16797] for example). But I am hoping to somehow get more involved. Also, for what it is worth, I personally don't much care what the email list is called. -- Jonathan Sillito

Re: [perl #17030] [PATCH] Implementation of Lists for languages/scheme

2002-09-10 Thread Jonathan Sillito
Sorry if this comment is out of context, I am behind but catching up. The patch in [perl #16797] adds a scratchpad pmc (among other things). Hopefully it is not too far out of date to apply. I believe Melvin is looking into it ... -- Jonathan Sillito On Tue, 10 Sep 2002, Piers Cawley wrote

Re: Lexicals

2002-09-10 Thread Jonathan Sillito
descriptor that could be used to put all lexicals in place when the pad is first created. > Is there a possibility to get a pointer to the current pad, to store > it in the closure? (Im not sure, maybe only the top-pad is needed). > There need also be a way to reinstate the saved lexica

RE: pre-PATCH: lexicals

2002-09-23 Thread Jonathan Sillito
> -Original Message- > From: Piers Cawley [mailto:[EMAIL PROTECTED]] > "Jonathan Sillito" <[EMAIL PROTECTED]> writes: > > get_counter: > > new_pad 1 > > Doesn't this violate the 'caller saves' principle, making it hard to &g

RE: pre-PATCH: functions in languages/scheme

2002-09-25 Thread Jonathan Sillito
new P0, .SchemeUndef store_lex 1, "a", P0 # ... pop_pad and could (set! a 12) inside of the above define be: new P0, .SchemeInteger store_lex "a", P0 # looks back through nested pads -- Jonathan Sillito

RE: [perl #17739] [PATCH] Tests for assign ops

2002-10-04 Thread Jonathan Sillito
So does that mean, the only set ops will be those that take two registers of the same type? set_p_p set_i_i set_s_s set_n_n -- Jonathan Sillito (who is willing to help with the migration) > -Original Message- > From: Peter Gibbs [mailto:[EMAIL PROTECTED]] > Sent: October 3, 2

RE: [perl #17739] [PATCH] Tests for assign ops

2002-10-04 Thread Jonathan Sillito
ome things could be left to _methods_ instead of ops. -- Jonathan Sillito > > The primary goal of the exercise was to be able to distinguish > between 'set P0, P1' which simply sets the P0 register equal to > the P1 register, and 'assign P0, P1' which would,

RE: [PATCH] PMC initializer stuff

2002-10-18 Thread Jonathan Sillito
utine: print "in sub routine\n" ret This seems tedious, but maybe I am missing the point? Anyway if this is what we want the attached patch modifies sub.pmc to support this, and adds a test to t/pmc/sub.t. This patch depends on [perl #17811]. -- Jonathan Sillito sub_init.patch Description: Binary data

RE: Scratchpad confusion

2002-10-21 Thread Jonathan Sillito
ot hacking, could someone point me > at the rationale for making scratchpads a special case, rather than a > PMC? I am sure they will be a PMC. In fact two different patches have been submitted to make them PMCs, one by me and a better one by Sean O'Rourke. Sean's has not been committed yet, probably because he is waiting for a decision on the more flexible ops by Dan. -- Jonathan Sillito

RE: [perl #18170] [PATCH] very complete lexical scope implementation

2002-10-31 Thread Jonathan Sillito
) only touched in sub.c, so it should be easy to change the approach. Thanks for the comments, anything else? -- Jonathan Sillito

Re: [perl #18170] [PATCH] very complete lexical scope implementation

2002-11-04 Thread Jonathan Sillito
r your question? > Apart from that: Nice patch. > -- Jonathan Sillito

RE: [purl #18379] [PATCH] Lexical scope and functions in languages/scheme

2002-11-14 Thread Jonathan Sillito
ub would only need an explicit pop_pad for each local scope created. However, subs that are not closures could continue using the ret op. (So Dan, should I submit a patch adding a 'return' op?). -- Jonathan Sillito

RE: [perl #18170] [PATCH] very complete lexical scope implementation

2002-11-15 Thread Jonathan Sillito
Steve, Thanks! Was there a problem applying the patch? I just checked out a new cvs images and the file t/op/lexicals.t has not been updated. As a result, a few tests are failing. Should I resubmit the part of the patch that updates t/op/lexicals.t? -- Jonathan Sillito > -Original Mess

RE: [perl #18170] [PATCH] very complete lexical scope implementation

2002-11-18 Thread Jonathan Sillito
CVS and try again on Darwin/PPC? As much detail as you can send me about any failures would be appreciated. Thanks. -- Jonathan Sillito

RE: [PATCH] hash_destroy, lexicals, ChangeLog

2002-12-03 Thread Jonathan Sillito
document docs/parrot_assembly.pod is out of date, and it seems a shame to keep a simple doc for each op in two places ... so I am not sure about this doc. (Would someone like to put the attached file into examples/assembly and commit it? Also could someone look at the patch in #18419?) -- Jonathan

RE: [CVS ci] clone, dod stack reporting

2003-01-10 Thread Jonathan Sillito
aks, because we can't cleanup duplicated lex ptrs. > > Can somone better knowing scratchpads comment on this please. > I guess there is a related problem with the way the function scratchpad new works, since it needs to copy lex ptrs from enclosing scopes? I will look into it more in a bit ... -- Jonathan Sillito

RE: [PATCH] [CVS ci] clone, dod stack reporting

2003-01-10 Thread Jonathan Sillito
uches: -- classes/scratchpad.pmc -- sub.c -- t/pmc/scratchpad.t (adds a test) -- Jonathan Sillito > -Original Message- > From: Jonathan Sillito [mailto:[EMAIL PROTECTED]] > > > -Original Message- > > From: Leopold Toetsch [mailto:[EMAIL PROTECTED]] > > > >

RE: Objects, finally (try 1)

2003-01-14 Thread Jonathan Sillito
ccess slots like: set Px, Py[1]# store the name to offset hash in Px [snip] So to sum up we need the following pmc's: pmclass Ref { data is a pointer to an object } pmclass Attr { data is an array of attributes } pmclass Class extends Attr { } pmclass Object { this was not explained, but I guess it at least has a reference to a Class and field data ??? } Does that cover it? -- Jonathan Sillito

  1   2   3   4   5   6   >