Re: Fwd: Renaming grep

2005-11-18 Thread Chip Salzenberg
On Sat, Nov 19, 2005 at 05:46:51AM +0200, Ilmari Vacklin wrote: > I don't much like it - it looks like a mistyped 'shift'. > Is 'filter' too long? I usually avoid P6L discussions, but: GNU Make has "filter" and "filter-out", and I've always found the polarity hard to remember. I like grep. -- C

Re: Fwd: Renaming grep

2005-11-18 Thread Ilmari Vacklin
On to, 2005-11-17 at 22:44 -0500, David Storrs wrote: > 'sift' is the same number of characters as 'grep'. It's something > of a bikeshed to me whether this rename is implemented or not, though. I don't much like it - it looks like a mistyped 'shift'. Is 'filter' too long? -- wolverian <[EMAI

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Larry Wall
On Fri, Nov 18, 2005 at 01:41:33PM -0800, Brent 'Dax' Royal-Gordon wrote: : Larry Wall <[EMAIL PROTECTED]> wrote: : > The name is relatively unimportant in the overall scheme of things. : > I'm more worried about the fact that it's difficult to partition a : > list into multiple lists in one pass w

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Flavio S. Glock
2005/11/18, Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]>: > Larry Wall <[EMAIL PROTECTED]> wrote: > > The name is relatively unimportant in the overall scheme of things. > > I'm more worried about the fact that it's difficult to partition a > > list into multiple lists in one pass without declaring

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Brent 'Dax' Royal-Gordon
Larry Wall <[EMAIL PROTECTED]> wrote: > The name is relatively unimportant in the overall scheme of things. > I'm more worried about the fact that it's difficult to partition a > list into multiple lists in one pass without declaring temp arrays. Didn't the list agree long ago on a `part` builtin?

Re: Test Case: Complex Numbers

2005-11-18 Thread Larry Wall
On Thu, Nov 17, 2005 at 10:18:19PM +0100, TSa wrote: : Another idea is to model nums to have a directional bit where the : polar complex have a full range angle. This whole thing strikes me as a "units" problem. Much like we don't care if the internal representation is meters or furlongs, so long

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Flavio S. Glock
Larry Wall wrote: > If we had some kind of partitioning operator, it'd probably be generalized > to sorting into bins by number, where 0 and 1 are degenerate cases for > booleans. Cool! This doesn't solve the general case, but how about a left-side zip: zip( @keys, @values ) = %hash; zip( @e

Re: Test Case: Complex Numbers

2005-11-18 Thread Larry Wall
On Fri, Nov 18, 2005 at 06:54:42PM -0200, Flavio S. Glock wrote: : 2005/11/11, Larry Wall <[EMAIL PROTECTED]>: : > : > While you're there, also think about the gray area between arrays and hashes, : > and whether .[...] subscripts are just a specialized form of .{...} subscripts. : : By the way,

Re: Test Case: Complex Numbers

2005-11-18 Thread Flavio S. Glock
2005/11/11, Larry Wall <[EMAIL PROTECTED]>: > > While you're there, also think about the gray area between arrays and hashes, > and whether .[...] subscripts are just a specialized form of .{...} > subscripts. By the way, are lazy hash slices allowed? %h{1...} I asked this in #perl6 when I wa

Re: [perl #37700] [TODO] Changing Default STDOUT/STDERR Filehandles for PIR Code

2005-11-18 Thread Chip Salzenberg
On Thu, Nov 17, 2005 at 08:10:59AM -0800, jerry gay wrote: > it seems we're missing an op (freopen) that would make this > possible. we've already got fdopen, getfd, getstdout, getstderr, so > we're mostly there. Sounds more like you want fdreopen. -- Chip Salzenberg <[EMAIL PROTECTED]>

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Juerd
Larry Wall skribis 2005-11-18 11:36 (-0800): > In Perl 5, to set a slice, you have to write > %hash{ @keys } = @values; "@"... :) > whereas in Perl 6, it'd be nice to be able to say that with all > the keys and values on the right side somehow. Shouldn't a simple %hash = @keys Y @values

test suite refactoring

2005-11-18 Thread jerry gay
i've been thinking about ways to reorganize parrot's test files, which are currently spread throughout the source tree. so, here's my proposal for refactoring them, for your consideration. all parrot core tests should live under t/. notably, this includes imcc, and other compilers like pge and tge

Classification syntax [Was: Renaming grep]

2005-11-18 Thread Larry Wall
On Fri, Nov 18, 2005 at 03:31:10AM +0200, Ilmari Vacklin wrote: : Hi all, : : I think that grep should be renamed to something English and more, well, : semantic. 'Filter' comes to mind as a suggestion. I realise there's a : lot of cultural background (from Unix and Perl 5) that favours 'grep', :

Re: New pmc syntax for HLLs.

2005-11-18 Thread Chip Salzenberg
On Fri, Nov 18, 2005 at 10:23:24AM -0500, Will Coleda wrote: > pmclass TclString extends TclObject extends String dynpmc group > tcl_group hll Tcl maps String { ... } Nice improvisation on an existing theme. One of these months I'll get around to making op and pmc definitions less clunky. Mean

Re: =>'s autoquoted identifiers

2005-11-18 Thread Larry Wall
On Fri, Nov 18, 2005 at 12:12:02PM +0100, TSa wrote: : I hope all these are now the same: : : foo => bar ; # result of evaluating bar available under foo key : :foo( bar ); : :foobar ; # does that exist? No. :foo with trailing whitespace is taken to mean :foo(1), so the "bar" would

Re: =>'s autoquoted identifiers

2005-11-18 Thread Larry Wall
On Thu, Nov 17, 2005 at 10:05:55PM -0700, Luke Palmer wrote: : On 11/17/05, Joshua Choi <[EMAIL PROTECTED]> wrote: : > But what does that mean for =>'s signature? What type would be its : > first parameter? Would you call it "&infix:{'=>'}:(Bareword | Any, : > Any)" or something like that? And in a

New pmc syntax for HLLs.

2005-11-18 Thread Will Coleda
In trying to bring Tcl up to date with PDD20 and avoid the deprecation of newsub, that led me to having to implement TclLexPad (which would correspond to the new LexPad base type. The PDD says this happens automatically, but: Leo pointed out that while Tcl is using the '.HLL' directive, ...

Re: =>'s autoquoted identifiers

2005-11-18 Thread TSa
HaloO, Luke Palmer wrote: I think => gets special treatment from the parser; i.e. it is undeclarable. It's probably not even declarable as a macro, since it needs to look behind itself for what to quote. And I think this is okay. For some reason, we are not satisfied if "if" is undeclarable,

Re: [perl #37703] [BUG] Branches to many undefined labels = PIR compiler segfault

2005-11-18 Thread Leopold Toetsch
Jonathan Worthington (via RT) wrote: Don't have time to track this down myself right now, but if you do parrot -o it.pbc it.pir With the attached, it segfaults. Thanks, fixed - r10089 leo

cycle counter (was: transactional memory in Parrot)

2005-11-18 Thread Leopold Toetsch
Erik Paulson wrote: Some basic questions: is there a notion of "current time" in Parrot, like a cycle counter or anything? It would be rather easy to add a cycle counter. I was thinking of: - new field interpreter->cycle_counter - increment it on each opcode executed that involves PMC argumen

filling a role different ways

2005-11-18 Thread Christopher D. Malon
I'd like to see a way to map methods and variables expected by a role, onto methods and variables provided by a class. I'd like it to be possible for a class to provide several such maps, having the appropriate one selected according to context. Continuing an example from an earlier thread www

[perl #37703] [BUG] Branches to many undefined labels = PIR compiler segfault

2005-11-18 Thread via RT
# New Ticket Created by Jonathan Worthington # Please include the string: [perl #37703] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37703 > Hi, Don't have time to track this down myself right now, but if you do parrot

[perl #37700] [TODO] Changing Default STDOUT/STDERR Filehandles for PIR Code

2005-11-18 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #37700] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37700 > On 11/12/05, chromatic <[EMAIL PROTECTED]> wrote: > Hi there, > > I'd like to change where