Re: PMCs requiring a 'set' dest register?

2002-04-01 Thread Michel J Lambert
> #$bar = \$foo; > new P1, PerlRef > stash_load P0, "foo" #Not needed if P0 unchanged > set P1, P0 #Make P1 reference P0 (not 'foo') > stash_store P1, "bar" My original example was like that, but I wasn't sure if that was a proper use of 'set', since 'set' normally copies one into the other

Re: PMCs requiring a 'set' dest register?

2002-04-01 Thread Peter Gibbs
"Michel J Lambert" <[EMAIL PROTECTED]> wrote: >This depends upon how variables and the registers interact. If, like a >real CPU, registers must be stored back into traditional memory as >variables, then there is no problem. >If instead, registers are aliased onto traditional memory variables,

Cola compiler new features for 0.0.4

2002-04-01 Thread Melvin Smith
I just committed 0.0.4 update to the Cola compiler. Besides minor code cleanups, new features are: Bitwise operators <<, >>, |, &, ~, ^ Logical operators &&, || Complex conditionals: Logical expressions do lazy left right evaluation in the standard C style. if(i == 0 || j == 0 || k == 0) {

Changes at www.parrotcode.org

2002-04-01 Thread Jeff
Mostly announcing the new pumpking, updating the PDD list, and updating the status page with language information and current PMC status. Other changes to come tomorrow night, but the important stuff is up. -- Jeff <[EMAIL PROTECTED]>

Re: PDD formatting issues

2002-04-01 Thread Josh Wilmes
At 1:19 on 04/02/2002 EST, Jeff <[EMAIL PROTECTED]> wrote: > I ran across the following errors while running pod2html over the PDDs: The errors from "podchecker" were better about line numbers, but still, this was helpful. > [parrot@damogran pdd]$ pod2html pdd00_pdd.pod >pdd00_pdd.html > [parr

Re: Added macros for interpreter->flags

2002-04-01 Thread Melvin Smith
At 01:48 AM 4/2/2002 -0500, Josh Wilmes wrote: > Added macros for working with the interpreter->flags structure, following > the _SET/_CLEAR/_TEST convention from pdd07. Nice cleanup. -Melvin

Added macros for interpreter->flags

2002-04-01 Thread Josh Wilmes
--- Forwarded Message Date:02 Apr 2002 06:24:19 + From:[EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: cvs commit: parrot/io io.c io_win32.c cvsuser 02/04/01 22:24:19 Modified:.core.ops embed.c interpreter.c runops_cores.c include/parrot

Re: PMCs requiring a 'set' dest register?

2002-04-01 Thread Michel J Lambert
> Remember that the higher level (eg perl6) will expect to be able to find the > PMC afterwards. For example: > > $foo = "abc"; > $bar = \$foo; > print $$bar; > $foo = 3; > print $$bar; This depends upon how variables and the registers interact. If, like a real CPU, registers must be stored back

PDD formatting issues

2002-04-01 Thread Jeff
I ran across the following errors while running pod2html over the PDDs: [parrot@damogran pdd]$ pod2html pdd00_pdd.pod >pdd00_pdd.html [parrot@damogran pdd]$ pod2html pdd01_overview.pod >pdd01_overview.html /usr/bin/pod2html: pdd01_overview.pod: unexpected =item directive in paragraph 16. ignorin

PMC confusion

2002-04-01 Thread Will Coleda
I can't concat strings to a PerlString, I have to assign the constant string to another PerlString to do the concat... Is this just that a suitable entry in perlstring.pmc needs to be created? - new P6, PerlString set S1, " stuff\n" # This would fail # concat P6, P6, S1 # but put

Re: cvs commit: parrot core.ops

2002-04-01 Thread Melvin Smith
At 10:31 PM 4/1/2002 -0500, Josh Wilmes wrote: >What is this supposed to do? It breaks the tcc build, and generally looks >ungood to me. sleep(1) is an optimization ? Is this the real Simon Cozens? :) Is this a pop quiz?? Did you see that gremlin.. -Melvin

Re: cvs commit: parrot core.ops

2002-04-01 Thread Josh Wilmes
What is this supposed to do? It breaks the tcc build, and generally looks ungood to me. --Josh At 18:03 on 04/01/2002 GMT, [EMAIL PROTECTED] wrote: > cvsuser 02/04/01 10:03:29 > > Modified:.core.ops > Log: > Minor optimization > > Revision ChangesPath > 1.1

Re: [PATCH] VMS fixups. Configure hints & Makefile syntax

2002-04-01 Thread Josh Wilmes
Committed, thanks. (makes things ugly, but hopefully we'll be replacing the makefile with something more perlish down the road) --Josh At 16:17 on 04/01/2002 EST, Michael G Schwern <[EMAIL PROTECTED]> wrote: > Ok, here's the necessary fixes to the VMS hints and Makefile.in to get > VMS to Con

Re: Regex extensions?

2002-04-01 Thread Larry Wall
Robin Houston writes: : Are there any plans to change the regex syntax for Perl 6? That's what the next apocalypse is about. : I ask because I've spent the last few days playing with PCRE, : and I added a rather powerful extension to it as an experiment. : Details at http://www.puffinry.freeserv

Parrot BASIC version .02, now with GAMES!

2002-04-01 Thread Clinton A. Pierce
I'm well aware of the date, but this is no April Fool's Joke. (Well perhaps it is, but the joke would be on me.) A new version of BASIC can be found at http://geeksalad.org/basic This BASIC has a few interesting things over the last one. I/O now works (INPUT, LOAD, etc...) as well as intera

Re: Regex extensions?

2002-04-01 Thread Luke Palmer
> If my proposal has a hidden agenda, it's that I want to show that > you can get a lot of the power we want without actually having to > embed arbitrary code. In general, however, I think that embedding code in regexes is a *very* good idea. Sure you can get a lot of power without it, but it is

Regex extensions?

2002-04-01 Thread Robin Houston
Are there any plans to change the regex syntax for Perl 6? I ask because I've spent the last few days playing with PCRE, and I added a rather powerful extension to it as an experiment. Details at http://www.puffinry.freeserve.co.uk/regex-extension.html Named capture-blocks are *long* overdue as

[PATCH] VMS fixups. Configure hints & Makefile syntax

2002-04-01 Thread Michael G Schwern
Ok, here's the necessary fixes to the VMS hints and Makefile.in to get VMS to Configure and have MMS parse the resulting Makefile. It includes all the stuff I posted eariler today. - There *must* be a space between the target, colon and dependencyes foo: bar*wrong* foo :

[PATCH Makefile.in] assemble.pl target missing

2002-04-01 Thread Michael G Schwern
DECC's make utility, MMS, speaks a very, very strict and unforgiving dialect of make. It's very useful for finding things like macros defined twice or missing targets: $ mms %MMS-W-MBREDEFILL, Illegal attempt to redefine macro 'LD' test : $(TEST_PROG) assemble.pl .test_dummy %MMS-W-DRV

[PATCH Makefile.in] MMS syntax errors

2002-04-01 Thread Michael G Schwern
The patch below fixes a very basic Makefile syntax error (on VMS anyway). MMS requires that there be at least one space between the target and the colon. http://www.openvms.compaq.com:8000/73FINAL/5825/5825_.htm You begin a target or source line in column 1 of the line and use the keywor

[PATCH hints/vms.pl] VMS Configure fix

2002-04-01 Thread Michael G Schwern
My research was right. You *can't* mix Unix and VMS style include paths on VMS. It will just dumbly concatinate them. CC/DECC /include=[.include] Result: [.include]parrot/parrot.h *wrong* CC/DECC /include="./include" Result: ./include/parrot/parrot.h *right* Perl5 simply avoids

Re: [preliminary PATCH] Parrot C Compiler Wrapper

2002-04-01 Thread Nicholas Clark
On Sat, Mar 30, 2002 at 04:37:54PM -0800, Brent Dax wrote: > Nicholas Clark: > # Patching file Makefile.in using Plan A... > # Hunk #1 succeeded at 112. > # Hunk #2 failed at 143. > > Weird. Line endings, perhaps. This line has appeared in Makefile.in, which doesn't seem to be in your patch:

Re: OpenVMS V7.2-1H1 configure.pl results using the defaults

2002-04-01 Thread Michael G Schwern
On Mon, Apr 01, 2002 at 07:00:57AM -0800, Charles Bunders wrote: > Checking some things by compiling and running another small C program (this > could take a while): > > Building ./testparrotsizes.cfrom testparrotsizes_c.in... > > #include "parrot/parrot.h" > ..^ > %CC-F-NOINCLFILE

OpenVMS V7.2-1H1 configure.pl results using the defaults

2002-04-01 Thread Charles Bunders
Configure.pl had a few problems. Thought I would send it to the list. Below this is a 'perl -"V"' if you want to know that info. Thanks... Parrot Version 0.0.4 Configure Copyright (C) 2001-2002 Yet Another Society Since you're running this script, you obviously have Perl 5--I'll be pulling s

Re: Tree Transformations (was: Perl6 Macros)

2002-04-01 Thread Aaron Sherman
On Sat, 2002-03-30 at 21:41, Michel J Lambert wrote: > > > Too late. I'm going there... :) > > Good for you. I was hoping transformations could make it :) > > Why didn't you chime in support before, then? I feel like Aaron and I are > the only ones who are opinionated on this matter... Hopefully

Re: Prospective jit patch

2002-04-01 Thread Jason Gloudon
On Mon, Apr 01, 2002 at 01:33:02AM -0300, Daniel Grunblatt wrote: > Did you continue working on this or can I take this patch to continue? I haven't made any changes since then so you can work off this patch. -- Jason