Re: Revisiting .chars (and friends) in list context

2005-06-03 Thread Stuart Cook
On 6/3/05, Joshua Gatcomb <[EMAIL PROTECTED]> wrote: > What I would like to be able to do is: > > my $str = 'hello'; > my @chars = $str.chars; # I can't see this being a problem at all. For starters, the whole "what is a character" issue is just as relevant to +($foo.chars) as it is to list($foo

Idea for making @, %, $ optional

2005-06-03 Thread Millsa Erlas
I have thought of an interesting idea that may allow Perl 6 to make the $, @, and % optional on many uses of variables. This involves simply extending the function namespace to include all kinds of structures, and thus the function namespace does not require symbols, they are optional. The int

[PATCH] Fix 3 of the spawnw.t failures.

2005-06-03 Thread Nigel Sandever
Further thoughts on the questions in comments invited. njs win32-exec.c.patch Description: Binary data

using rules

2005-06-03 Thread BÁRTHÁZI András
Hi, I'm working on a web templating system, and I'm wondering how should I use rules? I have these defs: rule elem { \< wts \: (<[a..z]>+) \/ \> } rule block { \< wts \: (<[a..z]>+)\>(.*?)\< \/ wts \: $1 \> } I would like to execute subroutines during the evaluation. What sh

Re: [PATCH] Fix 3 of the spawnw.t failures.

2005-06-03 Thread Nigel Sandever
Apologies for the wrong list. Should I resend to the correct one? njs

[perl #36110] [PATCH] PLATFORMS with MinGw32

2005-06-03 Thread François
# New Ticket Created by François PERRAD # Please include the string: [perl #36110] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36110 > This patch updates PLATFORMS for MinGW. $ parrot -V This is parrot version 0.2.0-d

Re: Missing MMD default functions?

2005-06-03 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > I sync'd up with subversion this afternoon, and I'm finding that a > *lot* of things that used to work for me are now breaking really > badly. Specifically where there used to be sane fallbacks for pretty > much all of the MMD functions now we've got nothin

[perl #36098] Solaris - Large number of tests fail under jit

2005-06-03 Thread via RT
# New Ticket Created by Peter Sinnott # Please include the string: [perl #36098] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36098 > --- osname= solaris osvers= 2.9 arch= sun4-solaris cc= gcc 3.3.1 --- Flags:

Re: HP-UX build notes

2005-06-03 Thread Nick Glencross
H.Merijn Brand wrote: On Wed, 01 Jun 2005 12:45:12 +0100, Nick Glencross <[EMAIL PROTECTED]> wrote: Here are some notes for those that are interested in parrot being built on other platforms. The system in question is a PA-RISC HP-UX 11.11 system (hppa2.0w-hp-hpux11.11). The system only has

Re: [perl #36110] [PATCH] PLATFORMS with MinGw32

2005-06-03 Thread Leopold Toetsch
François" PERRAD <[EMAIL PROTECTED]> wrote: > This patch updates PLATFORMS for MinGW. Thanks, applied - r8262 leo

Re: [PATCH] Fix 3 of the spawnw.t failures.

2005-06-03 Thread Leopold Toetsch
Nigel Sandever <[EMAIL PROTECTED]> wrote: Thanks, applied - r8263 > Further thoughts on the questions in comments invited. Yeah. > njs leo

MSWin32 Test Results of Parrot r8259

2005-06-03 Thread Ron Blaschke
Nothing unexpected, I guess. Windows XP SP2 Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 Activestate Python 2.4.1 Build 245 Activestate Perl 5.8.6 Build 811 ANTLR 2.7.5 GNU bc 1.06 GNU m4 1.4 ICU 3.2 GDBM 1.8.3 GMP 4.1.4 Faile

Re: HP-UX build notes

2005-06-03 Thread Leopold Toetsch
Nick Glencross wrote: Strangely all the segfaults have now gone away (perhaps the assembler aligns data differently?), although the 'l != left' assertions are still there. Looking at the code this is very likely caused by unaligned function pointers. To verify it please set: #define PARROT

Regarding Google's Summer of Code 2005

2005-06-03 Thread Dheeraj Kumar Arora
I m interseted in one of LLVM project "Implement well-known optimizations in PIR compiler (SSA -> register allocation)" Can Any send me the details? -- Dheeraj Kumar H.No. 7 Room No. 249 IITB Bombay Mumbai-400076 Mobile No. 09819939038

Re: HP-UX build notes

2005-06-03 Thread Leopold Toetsch
Nick Glencross wrote: + # This was added to convert 9000/800 to 9000_800 on HP-UX + $cpuarch =~ s|/|_|g; Thanks, applied - r8264 leo

Building nci/dynclasses on HP-UX

2005-06-03 Thread Nick Glencross
Guys, I'm currently investigating the build process for nci and dynclasses on HP-UX. As you may have seen from my previous posts, I'm using gcc and the native bundled ld. Although the build process isn't using the right flags to compile nci and dynclasses, I've managed to compile things manu

Re: Missing MMD default functions?

2005-06-03 Thread Dan Sugalski
At 9:23 AM +0200 6/3/05, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: I sync'd up with subversion this afternoon, and I'm finding that a *lot* of things that used to work for me are now breaking really badly. Specifically where there used to be sane fallbacks for pretty muc

Re: Regarding Google's Summer of Code 2005

2005-06-03 Thread Autrijus Tang
On Fri, Jun 03, 2005 at 05:30:51PM +0530, Dheeraj Kumar Arora wrote: >I m interseted in one of LLVM project > "Implement well-known optimizations in PIR compiler (SSA -> > register allocation)" > Can Any send me the details? I'm not an expert with with PIR or SSA,

Re: Regarding Google's Summer of Code 2005

2005-06-03 Thread Leopold Toetsch
Dheeraj Kumar Arora wrote: I m interseted in one of LLVM project "Implement well-known optimizations in PIR compiler (SSA -> register allocation)" [ I have answerd this ] Parrot is a register based virtual machine with 32*4 registers. There are a lot of studies WRT optimizati

Re: HP-UX build notes

2005-06-03 Thread Nick Glencross
Leopold Toetsch wrote: Nick Glencross wrote: Strangely all the segfaults have now gone away (perhaps the assembler aligns data differently?), although the 'l != left' assertions are still there. Looking at the code this is very likely caused by unaligned function pointers. To verify it pl

Re: Missing MMD default functions?

2005-06-03 Thread Leopold Toetsch
Dan Sugalski wrote: Right, so to reduce code duplication you remove stuff that's working so people have to go reimplement the code. That makes *perfect* sense. I've announced and summarized all these changes, e.g. http://xrl.us/gayp on Apr. 8th And, what is wrong about: cl = subclass "Flo

Re: date and time formatting

2005-06-03 Thread Rob Kinyon
> localtime() and gmtime() seem fairly core to me. The array contexts are > simple, and the scalar context is an RFC valid string. Nothing too heavy > there. The time() function is "typically" only moderately useful without > localtime(). This is true if the time() function returns a simple sca

Re: Missing MMD default functions?

2005-06-03 Thread Dan Sugalski
At 2:50 PM +0200 6/3/05, Leopold Toetsch wrote: Dan Sugalski wrote: Right, so to reduce code duplication you remove stuff that's working so people have to go reimplement the code. That makes *perfect* sense. I've announced and summarized all these changes, e.g. http://xrl.us/gayp on Apr. 8t

Re: HP-UX build notes

2005-06-03 Thread Nick Glencross
Nick Glencross wrote: Leopold Toetsch wrote: Nick Glencross wrote: Strangely all the segfaults have now gone away (perhaps the assembler aligns data differently?), although the 'l != left' assertions are still there. Looking at the code this is very likely caused by unaligned function

PXPerl 5.8.6-3 released with Windows binaries of Pugs 6.2.6 and Parrot 0.2.0

2005-06-03 Thread Grégoire Péan
Hi, I try to stick to the hectic pace at which Pugs evolves :) http://pixigreg.com/?pxperl -- Grégoire Péan aka PixiGreg www.pixigreg.com [EMAIL PROTECTED]

Extraneous whitespace on failures with T::Harness 0.48, T::More 0.60

2005-06-03 Thread Clayton, Nik
All, There seems to have been a change in the output format for test failures semi-recently. Given this test script: #!/usr/bin/perl use Test::Harness 0.48; use Test::More 0.60; plan tests => 2; ok(1, 'test 1'); ok(0, 'test 2'); I get this output: 1..2 ok 1

Re: Building nci/dynclasses on HP-UX

2005-06-03 Thread H.Merijn Brand
On Fri, 03 Jun 2005 13:11:57 +0100, Nick Glencross <[EMAIL PROTECTED]> wrote: > Guys, > > I'm currently investigating the build process for nci and dynclasses on > HP-UX. As you may have seen from my previous posts, I'm using gcc and > the native bundled ld. > > Although the build process isn'

Re: Building nci/dynclasses on HP-UX

2005-06-03 Thread Nick Glencross
H.Merijn Brand wrote: On Fri, 03 Jun 2005 13:11:57 +0100, Nick Glencross <[EMAIL PROTECTED]> wrote: Guys, I'm currently investigating the build process for nci and dynclasses on HP-UX. As you may have seen from my previous posts, I'm using gcc and the native bundled ld. use +Z -z for mor

Re: Idea for making @, %, $ optional

2005-06-03 Thread James Mastros
Millsa Erlas wrote: > I have thought of an interesting idea that may allow Perl 6 to make the > $, @, and % optional on many uses of variables. This involves simply > extending the function namespace to include all kinds of structures, and > thus the function namespace does not require symbols, the

Re: [perl #35305] [PATCH] skip threads 'detatch' test on win32

2005-06-03 Thread jerry gay
> Mr. Gay, let me know if you wait for a special request to uncomment the line > > /*#include "parrot/thr_windows.h"*/ > > in config/gen/platform/win32/threads.h > whatever was broken, has now been fixed. patch applied, and ticket closed. ~jerry

Re: Building nci/dynclasses on HP-UX

2005-06-03 Thread H.Merijn Brand
On Fri, 03 Jun 2005 16:20:53 +0100, Nick Glencross <[EMAIL PROTECTED]> wrote: > H.Merijn Brand wrote: > > > On Fri, 03 Jun 2005 13:11:57 +0100, Nick Glencross > > <[EMAIL PROTECTED]> wrote: > > > > > >>Guys, > >> > >>I'm currently investigating the build process for nci and dynclasses on > >>H

Re: Idea for making @, %, $ optional

2005-06-03 Thread Millsa Erlas
James Mastros wrote: Millsa Erlas wrote: I have thought of an interesting idea that may allow Perl 6 to make the $, @, and % optional on many uses of variables. This involves simply extending the function namespace to include all kinds of structures, and thus the function namespace does not req

Re: Building nci/dynclasses on HP-UX

2005-06-03 Thread Leopold Toetsch
Nick Glencross wrote: I fear that there may be some pointer alignment problems in hash because I'm getting hangs which seem to be linked to finding strings in hash tables. (That's pure conjecture) I'm not aware of any problems with alignment in hash.c. *But* we will have troubles on that pla

Re: Idea for making @, %, $ optional

2005-06-03 Thread Austin Hastings
--- James Mastros <[EMAIL PROTECTED]> wrote: > Millsa Erlas wrote: > > I have thought of an interesting idea that may allow Perl 6 to make > the > > $, @, and % optional on many uses of variables. This involves > simply > > extending the function namespace to include all kinds of > structures, a

Re: Missing MMD default functions?

2005-06-03 Thread Leopold Toetsch
Chip Salzenberg wrote: On Fri, Jun 03, 2005 at 02:50:38PM +0200, Leopold Toetsch wrote: I've announced and summarized all these changes, e.g. http://xrl.us/gayp on Apr. 8th I didn't realize the implications when that was posted. I think the native fallbacks are important. ... and probabl

Re: Regarding Google's Summer of Code 2005

2005-06-03 Thread Curtis Rawls
On 6/3/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Dheeraj Kumar Arora wrote: > >I m interseted in one of LLVM project > > "Implement well-known optimizations in PIR compiler (SSA -> register > > allocation)" > > [ I have answerd this ] > > Parrot is a register based virtual

Re: Regarding Google's Summer of Code 2005

2005-06-03 Thread Matt Fowles
All~ On 6/3/05, Curtis Rawls <[EMAIL PROTECTED]> wrote: > On 6/3/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > Dheeraj Kumar Arora wrote: > > >I m interseted in one of LLVM project > > > "Implement well-known optimizations in PIR compiler (SSA -> > > > register > > > allocat

Re: Regarding Google's Summer of Code 2005

2005-06-03 Thread Bill Coffman
Hello, I worked on the parrot register allocation problem a few months ago. The problem I encountered was that of continuations based dependencies. There were architectural issues about continuations, and Leo proposed changes that would fix this, but Dan said it was too late for architectral ch

Register Allocation and Continuations problem definition

2005-06-03 Thread Matt Fowles
All~ On 6/3/05, Bill Coffman <[EMAIL PROTECTED]> wrote: > > There are several threads in the parrot mailing list that discuss the > continuations problem. I hoped to be able to address parrot register > allocator again, at some point, but it could be a while before I get to > that. In the mean tim

Re: Missing MMD default functions?

2005-06-03 Thread Leopold Toetsch
Chip Salzenberg wrote: I didn't realize the implications when that was posted. I think the native fallbacks are important. If we really want these fallbacks, it's rather easy to reestablish the functionality. Given e.g. classes/scalar.pmc:add (which Float intherits from) we have MM

Re: Missing MMD default functions?

2005-06-03 Thread Dan Sugalski
At 2:21 PM -0400 6/3/05, Chip Salzenberg wrote: One could argue that by providing __get_integer, Foo class is automatically implying that it would serve where an Integer would. This is obviously what Dan was expecting. :-, Dan was expecting sane defaults, that is when I do addition with two P

Re: Building nci/dynclasses on HP-UX

2005-06-03 Thread Andy Dougherty
On Fri, 3 Jun 2005, Leopold Toetsch wrote: > Nick Glencross wrote: > > > I fear that there may be some pointer alignment problems in hash because I'm > > getting hangs which seem to be linked to finding strings in hash tables. > > (That's pure conjecture) > > I'm not aware of any problems with a

prove with Devel::Cover example?

2005-06-03 Thread Mark Stosberg
Ok, I'm feeling brain dead about this one-- this seems easy but I'm missing it. How can I use 'prove' and Devel::Cover together? I tried: perl -MDevel::Cover prove ... but didn't cover the scripts that ran. Mark

Re: prove with Devel::Cover example?

2005-06-03 Thread Pete Krawczyk
Subject: prove with Devel::Cover example? From: Mark Stosberg <[EMAIL PROTECTED]> Date: Fri, 3 Jun 2005 18:44:53 + (UTC) }How can I use 'prove' and Devel::Cover together? I tried: HARNESS_PERL_SWITCHES=-MDevel::Cover prove file.t -Pete K -- Pete Krawczyk perl at bsod dot net

Re: Devel::cover bug?

2005-06-03 Thread Paul Johnson
On Wed, Jun 01, 2005 at 03:00:03PM -0700, Kevin Scaldeferri wrote: > On Jun 1, 2005, at 2:35 PM, James E Keenan wrote: > > >Kevin Scaldeferri wrote: > >>I'm looking at a bit of output from Devel::Cover that I imagine has > >>to be a bug. I'll try my best to reproduce the HTML output: > >>stmt

Re: Idea for making @, %, $ optional

2005-06-03 Thread Luke Palmer
On 6/3/05, Millsa Erlas <[EMAIL PROTECTED]> wrote: > Does this allow the grammer rules of the language to be changed so that > this could be implemented? How does this work? Yes. In fact, one of the big goals of perl 6 is to allow people to mutate the grammar of the language. If you just want sc

Re: prove with Devel::Cover example?

2005-06-03 Thread Steve Peters
On Fri, Jun 03, 2005 at 06:44:53PM +, Mark Stosberg wrote: > Ok, I'm feeling brain dead about this one-- this seems easy but I'm > missing it. > > How can I use 'prove' and Devel::Cover together? I tried: > > perl -MDevel::Cover prove ... > > but didn't cover the scripts that ran. > >

Re: Missing MMD default functions?

2005-06-03 Thread Chip Salzenberg
On Fri, Jun 03, 2005 at 02:50:38PM +0200, Leopold Toetsch wrote: > I've announced and summarized all these changes, e.g. > http://xrl.us/gayp on Apr. 8th I didn't realize the implications when that was posted. I think the native fallbacks are important. > cl = subclass "Float", "MyFloat" In

Re: Missing MMD default functions?

2005-06-03 Thread Chip Salzenberg
On Fri, Jun 03, 2005 at 07:18:56PM +0200, Leopold Toetsch wrote: > Chip Salzenberg wrote: > >On Fri, Jun 03, 2005 at 02:50:38PM +0200, Leopold Toetsch wrote: > >>I've announced and summarized all these changes, e.g. > >>http://xrl.us/gayp on Apr. 8th > > > >I didn't realize the implications when t

MMD and redefinition

2005-06-03 Thread dakkar
In Perl5, if I do: sub foo {return 1} sub foo {return 2} print foo(); I get a redefinition error, and a '2' on STDOUT. Can I assume this will be the same in Perl6? i.e. can I write a test for pugs to check this? Moreover: sub foo(Num $a) {return 1} sub foo(Str $a) {return 2} print foo(1),

Re: Idea for making @, %, $ optional

2005-06-03 Thread Millsa Erlas
Austin Hastings wrote: --- James Mastros <[EMAIL PROTECTED]> wrote: Millsa Erlas wrote: I have thought of an interesting idea that may allow Perl 6 to make the $, @, and % optional on many uses of variables. This involves simply extending the function namespace to include all kinds

Re: Devel::cover bug?

2005-06-03 Thread Kevin Scaldeferri
On Jun 3, 2005, at 1:40 PM, Paul Johnson wrote: Certainly. Of course, it's always possible and quite likely that there is a bug in my code somewhere. But there is also a chance that I am conflating two ops, since I have yet to come up with a way to uniquely identify an op (suggestions welcome

Re: Devel::cover bug?

2005-06-03 Thread Christopher H. Laco
Kevin Scaldeferri wrote: On Jun 3, 2005, at 1:40 PM, Paul Johnson wrote: Certainly. Of course, it's always possible and quite likely that there is a bug in my code somewhere. But there is also a chance that I am conflating two ops, since I have yet to come up with a way to uniquely identify

(multi)subroutine names

2005-06-03 Thread dakkar
Say I have: multi sub foo(Array $a,Int $b) {...} multi sub foo(Hash %a, Int $b) {...} and I want to (distinctly) wrap each multisub, say for testing, or AOP, or whatever. How do I get the two different code references? As far as i can gather from the Apocalipses and Synopses, there should be a

[perl #36119] [PATCH] Reapply execute permissions on dynclasses for HP-UX

2005-06-03 Thread via RT
# New Ticket Created by Nick Glencross # Please include the string: [perl #36119] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36119 > Folks, this small patch fixes a current problem with loading dynclasses on HP-UX. T

Re: Devel::cover bug?

2005-06-03 Thread Paul Johnson
On Fri, Jun 03, 2005 at 06:56:50PM -0400, Christopher H. Laco wrote: > As I recall [I may be wrong], some of your snippets were under > /5.8.0/... isn't < 5.8.2 considered squirrelly (technical term) under > Devel::Cover? Yes, you're right, I do recommend a minimum version of 5.8.2. It would b

Re: Register Allocation and Continuations problem definition

2005-06-03 Thread Bill Coffman
I hope that no one misunderstands when I say this. It is not meant to be a criticism, but rather it is my understanding of the problem, put very directly. I may be wrong, and in many ways, I hope am. There is a fundamental flaw in the Parrot architecture. In it's current form, continuations and

Re: Extraneous whitespace on failures with T::Harness 0.48, T::More 0.60

2005-06-03 Thread James E Keenan
Nik Clayton wrote: All, There seems to have been a change in the output format for test failures semi-recently. Given this test script: #!/usr/bin/perl use Test::Harness 0.48; use Test::More 0.60; plan tests => 2; ok(1, 'test 1'); ok(0, 'test 2'); I get this outpu

Re: (multi)subroutine names

2005-06-03 Thread Yuval Kogman
With a meta model for code signatures you could generate a code signature and then ask it to locate any matching multis. For a more concrete handle on how this might look if I were king- wait a while... ;-) When I have more time to finalize docs/mmd.kwid and then describe the meta model for func

Software Transactional Memory interaction with Garbage Collection

2005-06-03 Thread Sam Vilain
Hi all, While I must start this post out by saying that I've never implemented either STM or a garbage collector, during a discussion on #parrot (is that channel logged?), a similarity between the two processes occurred to me. Would this be an adequate expression of a generational Garbage C

Re: Perl6 and support for Refactoring IDE's

2005-06-03 Thread J Matisse Enzer
On May 26, 2005, at 10:03 AM, Piers Cawley wrote: Stevan Little <[EMAIL PROTECTED]> writes: ... The way I see it working is that the language itself has a bunch of minimal hooks that get triggered by various phases of compilation etc. Your editor then becomes something that instruments the c

Re: (multi)subroutine names

2005-06-03 Thread Rod Adams
dakkar wrote: Say I have: multi sub foo(Array $a,Int $b) {...} multi sub foo(Hash %a, Int $b) {...} and I want to (distinctly) wrap each multisub, say for testing, or AOP, or whatever. How do I get the two different code references? As far as i can gather from the Apocalipses and Synopses, the