sprintf and snake envy

2006-07-04 Thread Brad Bowman
Hello, It seems that sprintf is will still be around in Perl 6 [1], and that sprintf formats will be available using the .as() method. While looking at some Python docs [2] I noticed two things that might be worth stealing; a sprintf operator (%) and named parameters in the format string: a =

[perl #39706] [TODO] IMCC Change the type of register number from unsigned char to unsigned int or unsingned long

2006-07-04 Thread via RT
# New Ticket Created by Vishal Soni # Please include the string: [perl #39706] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=39706 > The Register Number are declare of type unsigned char in IMCC (compilers/imcc/pcc.c). Thi

[perl #39704] [TODO] Tcl - Convert TODO/XXX comments to RT tickets

2006-07-04 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #39704] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=39704 > mini:~/Projects/parrot/languages/tcl mdiep$ grep -r XXX . | grep - v .svn | wc -l

Re: TAP extension proposal: test groups

2006-07-04 Thread Jonathan Rockway
>> Anything else >> Any output line that is not a plan, a test line or a diagnostic is >> incorrect. How a harness handles the incorrect line is undefined. >> Test::Harness silently ignores incorrect lines, but will become more >> stringent in the future. This leads me to another question -- what

Re: TAP extension proposal: test groups

2006-07-04 Thread Ovid
Original Message From: Jonathan Rockway <[EMAIL PROTECTED]> > This leads me to another question -- what to do about output that the > program prints to STDOUT or STDERR? There are some modules that I use > that insist on C-ing whenever something weird happens... will > these mess up my

More on the TAP::Grammar

2006-07-04 Thread Ovid
Hi all, I'm going to be heading out town tonight and will be gone for the next two days, but don't take my silence to mean that I've dropped this. I have started on the TAP::Parser module and have the lexer *mostly* working. There are a couple of extra tests I need to write for it and it will

Re: sprintf and snake envy

2006-07-04 Thread Larry Wall
On Tue, Jul 04, 2006 at 05:06:54PM +1000, Brad Bowman wrote: : Hello, : : It seems that sprintf is will still be around in Perl 6 [1], : and that sprintf formats will be available using the .as() method. : While looking at some Python docs [2] I noticed two things that might : be worth stealing; a

Re: sprintf and snake envy

2006-07-04 Thread Nicholas Clark
On Tue, Jul 04, 2006 at 05:06:54PM +1000, Brad Bowman wrote: > Hello, > > It seems that sprintf is will still be around in Perl 6 [1], > and that sprintf formats will be available using the .as() method. > While looking at some Python docs [2] I noticed two things that might > be worth stealing; a

Re: sprintf and snake envy

2006-07-04 Thread Larry Wall
On Tue, Jul 04, 2006 at 05:27:33PM +0100, Nicholas Clark wrote: : I'm not convinced that sprintf needs an operator. It's not commonly used in : any code I've looked at, which to me suggests that it's not good huffman : coding to use up a terse symbol for it, denying that symbol to something : else.

Re: Are CATCH blocks still in effect when run?

2006-07-04 Thread Larry Wall
On Sun, Jul 02, 2006 at 09:26:20PM -0400, Bob Rogers wrote: :However, I notice that S04 doesn't explicitly specify the dynamic : environment for anything evaluated in a CATCH block. Does now. Thanks! Larry

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

2006-07-04 Thread allison
Author: allison Date: Tue Jul 4 10:43:19 2006 New Revision: 13151 Modified: trunk/docs/pdds/pdd23_exceptions.pod Changes in other areas also in this revision: Modified: trunk/ (props changed) Log: [pdds]: Review and revise the Exceptions PDD. Modified: trunk/docs/pdds/pdd23_exceptions

TAP::Parser 0.01 (major alpha!)

2006-07-04 Thread Ovid
Hi all, Because I'll be gone a couple of days, I wanted to get a quick alpha of the TAP parser out there. It has no docs. Here's how you use it (or you could look at the tests): my $parser = TAP::Parser->new; $parser->parse($tap); # croaks on bad TAP print $parser->plan;

a smarter form of whitespace

2006-07-04 Thread Allison Randal
I'm writing a parser for a language that treats a double newline as a statement terminator. It works if I make every rule a 'regex' (to turn off smart whitespace). But I want spaces and tabs to act as smart whitespace, and newlines to act as literal whitespace. I've overloaded to match only spaces

Re: [PATCH] #38627: [TODO] fill Parrot_register_move() with code

2006-07-04 Thread Leopold Toetsch
On Mon, Jul 03, 2006 at 02:27:30PM -0700, Chip Salzenberg wrote: > On Mon, Jul 03, 2006 at 03:39:19PM -0500, Vishal Soni wrote: > > src_regs and dest_regs are pointers to unsigned char. Unsinged char > > being 1 byte will store 256 distinct values. Hence I declared the > > MAX_REGISTER to 256. >

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

2006-07-04 Thread Bob Rogers
If, as seems likely, exception bookkeeping is moved to a separate stack in the interpreter (with or without dynamic-wind actions), then C/C addresses can stay in the Parrot_Context, and all of pdd23_exceptions.pod that is quoted below ceases to be problematic. Does that seem reasonable?

(FW) Pugs 6.2.12 and v6.pm released!

2006-07-04 Thread Conrad Schneiker
(Audry, could you also cc perl.perl6.users on future announcements? Thanks much.) Despite the date, this actually showed up on http://planetsix.perl.org/ today, in very truncated and mangled form. The version I looked up in the nntp perl.perl6.announce archives was also difficult to read (html

[svn:perl6-synopsis] r9812 - doc/trunk/design/syn

2006-07-04 Thread audreyt
Author: audreyt Date: Tue Jul 4 15:37:53 2006 New Revision: 9812 Modified: doc/trunk/design/syn/S11.pod Log: * S11: To maintain implementation neutrality, the p6-in-p5 incantation is no longer: use v6-pugs; it's now: use v6-**; Modified: doc/trunk/design/syn/S11.pod =

Vanilla Perl, Win32, and Data::Bind support.

2006-07-04 Thread Audrey Tang
Hi Flavio: You asked me on #perl6 to build a Data::Bind binary distribution for Win32-ActivePerl. After working on it for 2 hours, I (re)discovered that it's impossible to do that, using the current generation of gratis downloads of Visual Studio C++ Express 2005, as it seems that Perl

[perl #39711] [TODO] Make PIR->PBC reentrant

2006-07-04 Thread Will Coleda via RT
On Tue Jul 04 12:21:06 2006, [EMAIL PROTECTED] wrote: > Currently, if you use IMCC inside embedded parrot (eg. when compiling > via PGE), when a syntax error occurs, imcc calls Parrot_exit (or > downright exit() -- see imclexer.c)), and it terminates the > interpreter right there without any

[ANNOUNCE] Pugs 6.2.12 and v6.pm released! (reformatted)

2006-07-04 Thread Audrey Tang
(Mail.app totally scrambled the previous mail; sorry about this re- post.) I'm glad to announce that Pugs 6.2.12 is now available from CPAN: http://search.cpan.org/dist/Perl6-Pugs-6.2.12/ SIZE: 2693459 SHA1: c9731da8e597591ca7e279766481ce0bece8cfa4 This release features much better

Re: [perl #39711] [TODO] Make PIR->PBC reentrant

2006-07-04 Thread Audrey Tang
在 2006/7/4 下午 8:50 時,Allison Randal via RT 寫到: The :immediate feature isn't really a question of reentrancy (it doesn't hold static data over successive calls, and it doesn't return a pointer to static data). That depends on the :immediate code. The equivalence of BEGIN { $Static::d

Re: [perl #39711] [TODO] Make PIR->PBC reentrant

2006-07-04 Thread Allison Randal
Audrey Tang wrote: > 在 2006/7/4 下午 8:50 時,Allison Randal via RT 寫到: > >> The :immediate feature isn't really a question of reentrancy (it doesn't >> hold static data over successive calls, and it doesn't return a pointer >> to static data). > > That depends on the :immediate code. The equivalenc

Re: [perl #39711] [TODO] Make PIR->PBC reentrant

2006-07-04 Thread Allison Randal
Will Coleda via RT wrote: This feature is needed for how parrot currently handles dynamic pmcs. If :immediate is deprecated, part of that deprecation needs to include keeping languages which use dynamic pmcs (perl6, tcl) functioning. :immediate won't be deprecated. It's a dynamic feature app

Re: [perl #39711] [TODO] Make PIR->PBC reentrant

2006-07-04 Thread Audrey Tang
在 2006/7/4 下午 10:05 時,Allison Randal 寫到: Perl tends to take the strategy of making the power accessible and teaching people to use it wisely (a philosophy that Parrot carries on). I would note that only Perl 5, and Perl 5 alone, has this interleaved- parsing-with-evaluation feature with f

Re: TAP Grammar

2006-07-04 Thread Michael G Schwern
On 7/3/06, Ovid <[EMAIL PROTECTED]> wrote: - Original Message From: Michael G Schwern <[EMAIL PROTECTED]> > Diagnostic information *is* unreliable in TAP. > Do not parse it. It is now being discarded. Don't discard it, just pass it straight through. Consider the use case of wanting

[perl #39712] [TODO] Tcl - handle default args in [proc]

2006-07-04 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #39712] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=39712 > From the [proc] man page: "Each argument specifier is also a list with either one or

Re: [perl #39711] [TODO] Make PIR->PBC reentrant

2006-07-04 Thread Allison Randal
Audrey Tang wrote: > > But again, it's the architect's decision to make, and I will stop to > quibble. :-) I'd rather help you understand why it's the right choice for a virtual machine targeting dynamic languages, but if I can't, I can't. :) Allison

Re: [perl #39711] [TODO] Make PIR->PBC reentrant

2006-07-04 Thread Audrey Tang
在 2006/7/4 下午 11:36 時,Allison Randal 寫到: Audrey Tang wrote: But again, it's the architect's decision to make, and I will stop to quibble. :-) I'd rather help you understand why it's the right choice for a virtual machine targeting dynamic languages, but if I can't, I can't. :) Well, I'm c

Re: [perl #39711] [TODO] Make PIR->PBC reentrant

2006-07-04 Thread Audrey Tang
在 2006/7/4 下午 11:54 時,Audrey Tang 寫到: Indeed, I'll welcome a writeup of why :immediate is useful and how you envision it to be used; that'd be much better than "because it's a dynamic-evaluation-during-compilation feature, and we are working with dynamic-typing-during-runtime languages, so

"Dynamic" (was discussion for #39711 -- [TODO] Make PIR->PBC reentrant)

2006-07-04 Thread chromatic
On Tuesday 04 July 2006 21:01, Audrey Tang wrote: > Hence I'm puzzled why you raise the "dynamic language" categorization > as a justification, for that term usually refers to dynamic typing, > not to :immediate. If it is referring to :immediate, then Python/ > Ruby/PHP would become static langua

The exact value of infinity [Was: Re: sprintf and snake envy]

2006-07-04 Thread Dan Kogai
On Jul 05, 2006, at 01:25 , Larry Wall wrote: What made me laugh is that Pugs knows the exact value of infinity: pugs> my $a = {"$^lang has $^c.as('%03d') quote types."}(:c (Inf),:lang) "Perl has 1797693134862315907729305190789024733617976978942306572734300811577326 75805500963132708

[perl #39717] [TODO] Tcl - Add tests for [uplevel] + [info level]

2006-07-04 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #39717] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=39717 > From the Tcl man page for [uplevel]: "The uplevel command causes the invoking proced

On "Gaming" CPANTS, and a Kwalitee Suggestion

2006-07-04 Thread Randy J. Ray
I'm a fairly-recent addition to the list. I've read a good part of the archives, but not all. So forgive me if what I suggest has already been put forward and dismissed. First, not to resume the physical abuse of deceased equines, but just to briefly address the whole "gaming of CPANTS" matter. W

[perl #39718] [TODO] Tcl - Add tests for untested, implemented commands

2006-07-04 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #39718] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=39718 > The following commands are implemented but have no tests: after binary close file get

[perl #39719] [TODO] Tcl - Design a template syntax for subcommands

2006-07-04 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #39719] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=39719 > Commands like [array set] can't be inlined with templates because there's no syntax