request for addition to administative field to Synopsis

2006-09-17 Thread Mark Stosberg
Hello, As I've worked on smart linking, I've found some gaps in the spec, often of the variety of "obvious" parts that should largely work the same as Perl 5. For example, "say" was formally spec'ed until recently, or "print" for that matter. I have a suggestion which I believe make the docs mo

Re: PCR replaces PGE in Pugs

2006-09-17 Thread Christopher D. Malon
On Sep 17, 2006, at 4:32 AM, Agent Zhang wrote: Tonight, Audrey implemented the bridge between Pugs' Haskell core and the Perl 5 module Pugs::Compiler::Rule, thus bringing rules support to our pugs ``for free''. This is really good news to us. :) For more than one year, Pugs had required parrot

RFC: Consolidate stack-unwinding code

2006-09-17 Thread Bob Rogers
The attached patch consolidates most of the existing stack-unwinding code into Continuation:invoke; previously, RetContinuation:invoke and find_exception_handler also did stack-unwinding, and none of the three did it quite the same way. Here are the effects: 1. Improved code sharing, a

Re: perl6 and a multi-interpreted-language example

2006-09-17 Thread Larry Wall
Okay, combining all these approaches minimalistically but without golfing we get something like: my @numbers = sort { rand }, constant @goal = 1..9; my $steps = 0; until @numbers ~~ @goal { say [EMAIL PROTECTED]; @numbers[ 0 ..^ prompt "Reverse how many? " ] .= reverse;

[perl #40347] Can't determine revision under Subversion 1.4.0

2006-09-17 Thread via RT
# New Ticket Created by Ron Blaschke # Please include the string: [perl #40347] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=40347 > This is because Parrot::Revision scans .svn/entries directly, but the Subversion folks c

Re: perl6 and a multi-interpreted-language example

2006-09-17 Thread Ilmari Vacklin
su, 2006-09-17 kello 20:36 +0200, Juerd kirjoitti: > while ("@numbers[]" ne "@numbers.sort()") { Should C be used here? while @numbers !eqv @numbers.sort { -- Ilmari Vacklin <[EMAIL PROTECTED]> signature.asc Description: Digitaalisesti allekirjoitettu viestin osa

Re: perl6 and a multi-interpreted-language example

2006-09-17 Thread A. Pagaltzis
* William Herrera <[EMAIL PROTECTED]> [2006-09-17 21:50]: > perl 5 (9 lines, 353 bytes) > > use FreezeThaw qw(cmpStr); > > my @a1_9 = (1 .. 9); > my @numbers = sort {rand(10) > $a} @a1_9; > > for (my $steps = 0; cmpStr([EMAIL PROTECTED], [EMAIL PROTECTED]); ++$steps) { >print join(" ", @num

Re: more on perl5 modules

2006-09-17 Thread A. Pagaltzis
* Richard Hainsworth <[EMAIL PROTECTED]> [2006-09-17 18:05]: > The .can workaround doesnt seem to work for more complex > modules. Err, the .can workaround is a way to get past missing sub exports. Methods are never exported. Why are you using the workaround for sub exports on methods. > Here is

Re: Web development I: Web::Toolkit

2006-09-17 Thread Juerd
Aankhen skribis 2006-09-17 11:54 (-0700): > The point is not to have autogenerated code conform to the XHTML > standard. The point is to not use XHTML simply because it's shiny. That's a good point, but my point was different. XHTML should be a conscious choice, not a default, in a general purpo

Re: perl6 and a multi-interpreted-language example

2006-09-17 Thread Juerd
William Herrera skribis 2006-09-17 13:45 (-0600): > Ruby (10 lines, 274 bytes) This is the nicest example, so I'll base my response off this one. my @numbers = (1..9).sort:{ rand }; my $steps = 0; while ("@numbers[]" ne "@numbers.sort()") { say "@numbers"; my $flipcoun

Re: Web development I: Web::Toolkit

2006-09-17 Thread Juerd
Amir E. Aharoni skribis 2006-09-17 17:22 (+0300): > 17/09/06, Juerd <[EMAIL PROTECTED]> skribis: > > This is a very strict language, though, as it is based on XML. > > A document is either valid and unambiguous, or completely invalid. > Just like any programming language should be. X?HTML is not a

perl6 and a multi-interpreted-language example

2006-09-17 Thread William Herrera
I just took a second glance at my post and saw the scoping error in the $steps variable. Please don't bother fixing it-- I want to know what a perl6 version would be like :)

perl6 and a multi-interpreted-language example

2006-09-17 Thread William Herrera
Hi! I was wondering what a perl 6 program of a game of Reverse would look like? see http://e-scribe.com/news/193 Ruby (10 lines, 274 bytes) numbers = (1..9).sort_by{ rand } steps = 0 while numbers != numbers.sort puts numbers.join(" ") prin

pcre tests

2006-09-17 Thread David Romano
Hi everyone, When building parrot on my iBook, two tests that depend on PCRE failed because I don't have PCRE installed and the code that determines if PCRE is installed is faulty. Parrot::Test::run_command returns [SIGNAL $exit_code] if the exit code of the commands are not divisible by 256, or i

Re: gmp_version undeclared

2006-09-17 Thread Alberto Simões
Hi, fixed svnbotl r14636 | leo++ | trunk: svnbotl : fix BigInt.version if gmp isnt installed David Romano wrote: Hi everyone, I just tried to build parrot (something I hadn't done in about a month and a half) and it failed to build due to gmp_version being undeclared in src/pmc

gmp_version undeclared

2006-09-17 Thread David Romano
Hi everyone, I just tried to build parrot (something I hadn't done in about a month and a half) and it failed to build due to gmp_version being undeclared in src/pmc/bigint.pmc (not suprising since I don't have GMP installed). Attached is a patch that fixes the problem for me. Using the preprocess

Re: Check smoke results while reading Synopses

2006-09-17 Thread Agent Zhang
(Here's the revised version.) Our new smoke server now has some extra links named SYN in the right margin of the page, where one SYN link corresponds to one smoke report: http://m19s28.vlinux.de/cgi-bin/pugs-smokeserv.pl Click on one of these links will lead you to a list of Synopses. Entering

Re: Web development I: Web::Toolkit

2006-09-17 Thread Aankhen
On 9/17/06, Amir E. Aharoni <[EMAIL PROTECTED]> wrote: WordPress is an example of a webserver software tool that does try to produce standard XHTML. It does it by default and very few bloggers who use it care about it or, for that matter, notice it. FuturisticPerl6WebPackage.pm should be like tha

Re: Check smoke results while reading Synopses

2006-09-17 Thread Agent Zhang
On 9/18/06, Will Coleda <[EMAIL PROTECTED]> wrote: On Sep 17, 2006, at 2:25 PM, Agent Zhang wrote: > Our new smoke server now has some extra links named SYN in the left > margin of the page, where one SYN link corresponds to one smoke > report: After much confusion, I found them on the *right*

Re: Check smoke results while reading Synopses

2006-09-17 Thread Will Coleda
On Sep 17, 2006, at 2:25 PM, Agent Zhang wrote: Our new smoke server now has some extra links named SYN in the left margin of the page, where one SYN link corresponds to one smoke report: After much confusion, I found them on the *right* hand side, and only for certain smokes. Regards. -

Check smoke results while reading Synopses

2006-09-17 Thread Agent Zhang
Our new smoke server now has some extra links named SYN in the left margin of the page, where one SYN link corresponds to one smoke report: http://m19s28.vlinux.de/cgi-bin/pugs-smokeserv.pl Click on one of these links will lead you to a list of Synopses. Entering one synopsis, say, ``02 Syntax''

Re: Trying to make a new operator

2006-09-17 Thread Yuval Kogman
On Sun, Sep 17, 2006 at 16:35:39 +0100, Daniel Hulme wrote: > > What am I doing wrong? > Sounds like you need to define (or at least declare) the new operator > before you use it. Perl 6, like Perl 5 compiles with a single pass, so > when you are using your random operator, it hasn't yet read the >

more on perl5 modules

2006-09-17 Thread Richard Hainsworth
The .can workaround doesnt seem to work for more complex modules. Here is a working perl5 program that puts up a message with two buttons. use strict; use Gtk2 -init; use Gtk2::Ex::Dialogs(destroy_with_parent=>-1, modal=>-1, no_separator => 0); my $window = Gtk2::Window->new('toplevel'); Gtk2:

Re: Trying to make a new operator

2006-09-17 Thread Daniel Hulme
> What am I doing wrong? Sounds like you need to define (or at least declare) the new operator before you use it. Perl 6, like Perl 5 compiles with a single pass, so when you are using your random operator, it hasn't yet read the declaration further down the file. It does its best to DTRT with mos

Trying to make a new operator

2006-09-17 Thread Richard Hainsworth
I tried to make a new "growth" operator. The code was (32 + 48).say; sub infix:<+> ($left,$right) { return 100 * ($right/$left -1); }; $pugs ./p6test.p6 returns with 50 But if I change the + character to (say) a cyrillic letter Д, I get the following error: $ pugs ./p6test.p6 *** unex

Index of terms

2006-09-17 Thread Richard Hainsworth
It would be useful to have a consolidated global index into the synopses, etc. Also, I noticed in a thread someone asked a question that arose because some topics are covered in more than one synopsis. This problem might eased if a single index had links for all documents in a single place.

Re: HOWTO give options to parrot in tests

2006-09-17 Thread Leopold Toetsch
Am Sonntag, 17. September 2006 15:16 schrieb Karl Forner: > > I'd subclass Parrot::Test and create a function shootout_output_is(), > > which > > takes an extra commandline argument. > > Hmmm but if I subclass Parrot::Test, I won't be able to reuse any code. There are already Test classes: see lib

Re: cur_namespace under imcc.y

2006-09-17 Thread Alberto Simões
Apparently they are the same. Merged as #14635 Alberto Alberto Simões wrote: Hi When searching for globals on PIR parser (most of these globals are in the top of imcc.y file) I found: imcc.y: SymReg *cur_namespace; /* ugly hack for mk_address */ imc.h: typedef struct _imc_info_t {

Re: Web development I: Web::Toolkit

2006-09-17 Thread Amir E. Aharoni
17/09/06, Juerd <[EMAIL PROTECTED]> skribis: This is a very strict language, though, as it is based on XML. A document is either valid and unambiguous, or completely invalid. Just like any programming language should be. And the XHTML rules are quite reasonable. In practice *all* browsers effec

Re: HOWTO give options to parrot in tests

2006-09-17 Thread Karl Forner
On 9/15/06, Leopold Toetsch <[EMAIL PROTECTED]> wrote: Am Freitag, 15. September 2006 01:42 schrieb Karl Forner: > But by looking in other tests and in the Parrot::Test, it seems that the > canonical way > of running a PIR script is through the example_output_is() function. > BUT this function d

Web development I: Web::Toolkit

2006-09-17 Thread Juerd
Juerd's thoughts about Perl 6 web development Part one: Motivation and general thoughts If you know me, you know that I never really liked Perl 5's CGI.pm. In essence, I like that it has enabled a lot of people to build dynamic web pages in a reasonably simple way. However, it was avery large mon

Re: How to pass a ref from a language with no refs (was: Re: use perl5:CGI as a solution)

2006-09-17 Thread Juerd
Mark Stosberg skribis 2006-09-17 8:10 (-0500): > > Please note that eventually, perl5:CGI is supposed to work as expected. > For that to happen, there will first have be some documentation telling > me what expectations to have. Good point, but I think your expectations are natural and logical.

How to pass a ref from a language with no refs (was: Re: use perl5:CGI as a solution)

2006-09-17 Thread Mark Stosberg
Juerd wrote: > > Please note that eventually, perl5:CGI is supposed to work as expected. For that to happen, there will first have be some documentation telling me what expectations to have. When Perl 5 has references and Perl 6 doesn't, I don't know what to expect to when I need to pass a hash

Re: CGI Session management (was Re: the CGI.pm in Perl 6)

2006-09-17 Thread Juerd
Mark Stosberg skribis 2006-09-16 22:04 (-0500): > As far as I'm aware, no work on CGI::Session for Perl 6 has started yet. I'm happy about that, because this module must not have "CGI" in its name. -- korajn salutojn, juerd waalboer: perl hacker <[EMAIL PROTECTED]>

Re: use perl5:CGI as a solution (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Juerd
Mark Stosberg skribis 2006-09-16 21:30 (-0500): > Aankhen wrote: > > The major feeling was that there should be no CGI.pm (if someone was > > hellbent on using it, they could use the Perl 5 module). > In theory, "use perl5:CGI" could be a fine solution. In practice, it > hasn't worked out well fo

Who uses CGI.pm HTML generation? (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
David Cantrell wrote: > > I wonder how many people really use the HTML-generating bits of CGI.pm? > I know I never have, nor have they been used that I can remember > anywhere that I've worked, or in any of the non-work projects I've > collaborated in. It's always been 'print ""' or more recently

use perl5:CGI as a solution (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
Aankhen wrote: > > The major feeling was that there should be no CGI.pm (if someone was > hellbent on using it, they could use the Perl 5 module). In theory, "use perl5:CGI" could be a fine solution. In practice, it hasn't worked out well for me. Even something that seems simple like passing a h

best practice for web form stickiness (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
Juerd wrote: > > Personally, I am *against* HTML generating for elements that are not > form fields. And for form fields, I think the solution should be in the > templating thing, not elsewhere. Stickiness makes sense on invalid data > only anyway, and we need to put the error message and a pointer

Re: CGI Session management (was Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
> > I agree completely. In that vein, I think that one thing a lot of web > developers would like to have available more easily would be session > management. In PHP it's as simple as $_SESSION['key'] = 'value'. I > understand that CGI.pm is a fundemantally different concept from PHP and > tha

Re: Trying to use Perl5 modules (documented on wiki)

2006-09-17 Thread Mark Stosberg
Audrey Tang wrote: > > 在 Sep 11, 2006 2:07 PM 時,Trey Harris 寫到: > >> In a message dated Mon, 11 Sep 2006, Richard Hainsworth writes: >>> I am trying to find out how to use (in perl6) perl5 modules that >>> contain subroutines. >> >> Imports from Perl 5 modules don't currently work. > > Actually,

class attr set defs as their names

2006-09-17 Thread Darren Duncan
Another bit of a questioning brain dump, which topically follows my post of August 30th titled "derived class generators and introspection", since I'm having trouble sleeping at the moment, with it on my mind ... Any answers would be appreciated. I would like to know, first of all, if we anon

PCR replaces PGE in Pugs

2006-09-17 Thread Agent Zhang
Tonight, Audrey implemented the bridge between Pugs' Haskell core and the Perl 5 module Pugs::Compiler::Rule, thus bringing rules support to our pugs ``for free''. This is really good news to us. :) For more than one year, Pugs had required parrot to provide full Perl 6 regexes (rules) support si