Re: r31789 -[S32] DateTime immutable, leap seconds validation

2010-07-23 Thread Geoffrey Broadwell
On Fri, 2010-07-23 at 15:26 +0200, Raphael Descamps wrote: > Have a look at nqp-rx + kakapo + plumage + proto/PLS for some examples > where you can help without any C or Perl 5 knowledge: > > http://gitorious.org/parrot-plumage Best. Suggestion. Ever. :-) -'f

Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-12 Thread Geoffrey Broadwell
On Mon, 2010-04-12 at 11:23 -0700, Larry Wall wrote: > The standard parser will likely be pointing out spelling errors and > conjecturing emendations for near misses. Whole-program analysis can > even do this for any method names that look wrongish. The difference > between Acme-X and Acme_X is n

Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-11 Thread Geoffrey Broadwell
On Sat, 2010-04-10 at 17:20 -0700, yary wrote: > Adjectives and nouns aren't English-only. So Damian's proposal is > multi-culti. One could argue that Perl's identifiers, keywords, etc > are based on English so that it is more difficult for a non-English > speaker to discern why underscore is used

Re: A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-06 Thread Geoffrey Broadwell
First: what Damian said. Second: Whatever syntax people come up with has to make it easy and type-safe to name particular combinations of those bits. In other words, you should be able to make a bitset with Unix-style permissions: OTHER_EXECUTE OTHER_WRITE OTHER_READ GROUP_EXECUT

Re: r30205 - docs/Perl6/Spec

2010-03-26 Thread Geoffrey Broadwell
On Fri, 2010-03-26 at 08:38 +0100, pugs-comm...@feather.perl6.nl wrote: > .doit: { $^a <=> $^b } # okay > .doit(): { $^a <=> $^b }# okay > .doit(1,2,3): { $^a <=> $^b } # okay > +.doit(1,2,3): { $^a <=> $^b } # okay > +.doit:{ $^a <=> $^b

Re: p6 Q: How do I metaprogram this?

2009-12-08 Thread Geoffrey Broadwell
On Wed, 2009-12-09 at 00:16 -0500, Austin Hastings wrote: > Geoffrey Broadwell wrote: > > On Tue, 2009-12-08 at 18:58 -0500, Austin Hastings wrote: > > > >> I know that I could 'metaprogram' this stuff by using string > >> manipulation on t

Re: p6 Q: How do I metaprogram this?

2009-12-08 Thread Geoffrey Broadwell
On Tue, 2009-12-08 at 18:58 -0500, Austin Hastings wrote: > I know that I could 'metaprogram' this stuff by using string > manipulation on the various method names, and then calling a > (self-built) call_method($obj, $method_name, ...args...) function. You don't need to write this by hand. NQP-

Re: Parrot and Perl 6 Summary

2009-11-23 Thread Geoffrey Broadwell
On Mon, 2009-11-23 at 01:15 +0100, Lithos wrote: > Today I posted my first attempt at summarizing Perl 6 and Parrot things at > >http://lith-ology.blogspot.com/ > > Any comments and corrections welcome! This is *very* valuable to us. Please keep it up! -'f

Re: r29129 - docs/Perl6/Spec

2009-11-19 Thread Geoffrey Broadwell
I kinda like 'blorst'. The word makes me think of a warm stew on a cold winter night. And I agree with the searchability advantage of 'blorst' as well. -'f

Re: S26 - The Next Generation

2009-09-17 Thread Geoffrey Broadwell
On Thu, 2009-09-17 at 11:12 -0700, yary wrote: > On Thu, Sep 17, 2009 at 1:05 AM, Damian Conway wrote: > > Aaron Sherman asked: > ... > >> I'd very much like to establish that at default optimization levels for > >> execution, this information is not guaranteed to be maintained past the > >> creat

Re: How can i contribute for perl 6 ?

2009-09-16 Thread Geoffrey Broadwell
On Wed, 2009-09-16 at 19:49 +1000, Timothy S. Nelson wrote: > +1. I have a set of 7 bookmarks that load in tabs that I call my "Perl 6" > bookmarks. I load this group of tabs into a separate web browser window when > I'm doing Perl 6 stuff. That link is one of the 7 links. Perhaps your other

Re: patch for t/spec/s06-multi/type-based.t

2009-08-20 Thread Geoffrey Broadwell
On Fri, 2009-08-21 at 14:24 +1100, Илья wrote: > -multi foo (@bar) { "Array " ~ join(', ', @bar) } > -multi foo (%bar) { "Hash " ~ join(', ', %bar.keys.sort) } > +multi foo (@bar) { "Positioanl " ~ join(', ', @bar) } > +multi foo (%bar) { "Associative " ~ join(', ', %bar.keys.sort) } Typo in thi

Re: r27605 - docs/Perl6/Spec/S32-setting-library

2009-07-19 Thread Geoffrey Broadwell
On Sat, 2009-07-18 at 21:22 -0400, James Cloos wrote: > lwall> + enum TrigBase is export ; > > Is Circles of much value? > > I can see Semicircles, since that would make the range (-1,1] or [-1,1). > But a range of [0,1) or (0,1] seems *much* less useful. > > Or am I missing an obvious use case?

Re: Amazing Perl 6

2009-05-29 Thread Geoffrey Broadwell
Tim Nelson: > There's some standard that says this is how to generate unicode: > > 1.Hold down Ctrl+Shift > 2.Press U > 3.Type the hexadecimal for the unicode character > 4.Release Ctrl+Shift This works under GNOME, which also has a variant that is a little friendlier to the fi

Re: Comparing inexact values (was "Re: Temporal changes")

2009-02-24 Thread Geoffrey Broadwell
On Tue, 2009-02-24 at 12:31 -0800, Jon Lang wrote: > $y ± 5 # same as ($y - 5) | ($y + 5) > $y within 5 # same as ($y - 5) .. ($y + 5) Oh, that's just beautiful. -'f

Re: Temporal revisited

2009-02-20 Thread Geoffrey Broadwell
On Fri, 2009-02-20 at 15:33 -0600, Dave Rolsky wrote: > Of course, if you're dealing with TAI only, you're safe for constants up > to ONE_WEEK. So we just define ONE_MONTH as 4 * ONE_WEEK, right? *duck* -'f

Re: Spec reorganisation

2009-02-19 Thread Geoffrey Broadwell
On Thu, 2009-02-19 at 22:57 +1100, Timothy S. Nelson wrote: > On Thu, 19 Feb 2009, Carl Mäsak wrote: > > A tree is a graph without cycles. That's insufficient. In fact, there are a number of ways that the general concept of an acyclic graph must be constrained before you get something you can cal

Re: IO, Trees, and Time/Date

2009-02-17 Thread Geoffrey Broadwell
On Tue, 2009-02-17 at 22:38 +1100, Timothy S. Nelson wrote: > My third thought is that it would be very useful also to have > date/time objects that integrate well with eg. ctime, mtime, and the like; > I'd > start with Time::Piece as a model. > > http://search.cpan.org/dist/Time-Piece/Pi

Re: r25122 - docs/Perl6/Spec

2009-01-30 Thread Geoffrey Broadwell
On Fri, 2009-01-30 at 08:12 +0100, pugs-comm...@feather.perl6.nl wrote: > @@ -103,7 +106,7 @@ > =item * > > POD sections may be used reliably as multiline comments in Perl 6. > -Unlike in Perl 5, POD syntax now requires that C<=begin comment> > +Unlike in Perl 5, POD syntax now lets you use C<=

Re: RFD: Built-in testing

2009-01-21 Thread Geoffrey Broadwell
On Wed, 2009-01-21 at 14:23 +, Peter Scott wrote: > On Wed, 21 Jan 2009 13:35:50 +0100, Carl Mäsak wrote: > > I'm trying to explain to myself why I don't like this idea at all. I'm > > only partially successful. Other people seem to have no problem with it, > > so I might just be wrong, or part

Re: design of the Prelude (was Re: Rakudo leaving the Parrot nest)

2009-01-15 Thread Geoffrey Broadwell
On Thu, 2009-01-15 at 16:03 -0800, Darren Duncan wrote: > Patrick R. Michaud wrote (on p6c): > > On Thu, Jan 15, 2009 at 08:53:33AM +0100, Moritz Lenz wrote: > >> Another thing to keep in mind is that once we start to have a Perl 6 > >> prelude, we might decide to be nice neighbors and share it wit

Re: [PATCH] Add .trim method

2009-01-12 Thread Geoffrey Broadwell
On Mon, 2009-01-12 at 07:01 -0800, Ovid wrote: > - Original Message > > > > > > I could optionally make the following work: > > > > > > > > $string.trim(:leading<0>); > > > > $string.trim(:trailing<0>); > > Alternatively, those could be ltrim() and rtrim(). If you need to > dynamica

Re: r24809 - docs/Perl6/Spec

2009-01-08 Thread Geoffrey Broadwell
On Thu, 2009-01-08 at 23:06 +0100, pugs-comm...@feather.perl6.nl wrote: > +=item -0 *octal/hex* > + > +Sets input record separator. Missing due to lack of specification in > +L. There is a comment about this in the L > +section at the end of this document. I use this option quite a bit -- but on

Re: r24737 - docs/Perl6/Spec

2009-01-02 Thread Geoffrey Broadwell
On Fri, 2009-01-02 at 12:27 -0800, jerry gay wrote: > oh, yes, whoops! i responded to someone else in #pugs earlier, and > forgot to address the item here. C replaces p5's > C (that's the latest idea from damian, although it seems not > to be published yet). Ah, I get it! What about perldoc's spe

Re: Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-02 Thread Geoffrey Broadwell
On Fri, 2009-01-02 at 22:56 +0100, Aristotle Pagaltzis wrote: > > When I asked this question on #perl6, pmurias suggested using > > gather/take syntax, but that didn't feel right to me either -- > > it's contrived in a similar way to using a one-off closure. > > Contrived how? Meaning, the gather

Re: r24737 - docs/Perl6/Spec

2009-01-02 Thread Geoffrey Broadwell
Thank you for the quick turnaround! On Fri, 2009-01-02 at 10:55 -0800, jerry gay wrote: > On Fri, Jan 2, 2009 at 09:27, Geoffrey Broadwell wrote: > > It's also not > > obvious what a boolean named $doc does -- which probably means either > > that it's not supposed

Re: r24737 - docs/Perl6/Spec

2009-01-02 Thread Geoffrey Broadwell
On Fri, 2009-01-02 at 17:08 +0100, pugs-comm...@feather.perl6.nl wrote: > +=head2 Synopsis > + > + multi sub perl6( > +Bool :a($autosplit), > +Bool :c($check-syntax), > +Bool :$doc, > +:e($execute), > +:$execute-lax, #TODO fix illegal -e6 syntax. -6? not legal. -x? hrmm > +

Re: Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-02 Thread Geoffrey Broadwell
On Fri, 2009-01-02 at 14:19 +0200, Leon Timmermans wrote: > When going OO, I'd say an augment()/inner() approach would be > cleanest. See > http://search.cpan.org/~drolsky/Moose/lib/Moose/Cookbook/Basics/Recipe6.pod > for an example. I don't know how to express that in Perl 6 though. There's no d

Re: Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-01 Thread Geoffrey Broadwell
On Fri, 2009-01-02 at 00:30 +0200, Leon Timmermans wrote: > I can't help wondering "why does pid_file_handler need to be split up > in the first place?" Why wouldn't it be possible to simply call > pid_file_handler after become_daemon? Two answers: 1. If an error occurs that will not allow the PI

Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-01 Thread Geoffrey Broadwell
In the below Perl 5 code, I refactored to pull the two halves of the PID file handling out of init_server(), but to do so, I had to return a sub from pid_file_handler() that acted as a "continuation". The syntax is a bit ugly, though. Is there a cleaner way to this in Perl 6? ## sub init_ser

Re: how to write literals of some Perl 6 types?

2008-12-02 Thread Geoffrey Broadwell
On Tue, 2008-12-02 at 21:21 +0100, Leon Timmermans wrote: > If you really want it, a macro can fix all of this for you. > That's the beauty of macros: these kinds of things are possible if you > need them. Sure, but user-written macros are also an easy out that allows one to avoid making hard deci

Re: how to write literals of some Perl 6 types?

2008-12-02 Thread Geoffrey Broadwell
On Tue, 2008-12-02 at 13:07 -0700, David Green wrote: > On 2008-Dec-2, at 12:33 pm, Geoffrey Broadwell wrote: > > On Tue, 2008-12-02 at 08:50 +0100, Carl Mäsak wrote: > >> Darren (>): > >>> How does one write anonymous value literals of those types? > >

Re: how to write literals of some Perl 6 types?

2008-12-02 Thread Geoffrey Broadwell
On Tue, 2008-12-02 at 08:50 +0100, Carl Mäsak wrote: > Darren (>): > > Bit > > Blob > > Set > > Bag > > Mapping > > > > How does one write anonymous value literals of those types? And I mean > > directly, not by writing a literal of some other type and using a conversion > > function to deriv

Re: Files, Directories, Resources, Operating Systems

2008-11-26 Thread Geoffrey Broadwell
On Wed, 2008-11-26 at 11:34 -0800, Darren Duncan wrote: > I agree with the idea of making Perl 6's filesystem/etc interface more > abstract, > as previously discussed, and also that users should be able to choose between > different levels of abstraction where that makes sense, either picking a

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

2008-10-05 Thread Geoffrey Broadwell
On Sun, 2008-10-05 at 17:05 -0700, [EMAIL PROTECTED] wrote: > +C<< infix:<...> >>, the series operator. Lovely, just lovely. > +1, 3, 5 ... *# odd numbers > +1. 2. 4 ... *# powers of 2 Did you mean to use commas on that second line? -'f

Re: Speccing Test.pm?

2008-09-02 Thread Geoffrey Broadwell
On Tue, 2008-09-02 at 12:32 -0700, Darren Duncan wrote: > Now a common factor to both of my proposals is that this Test.pm is > intentionally kept as simple as possible and contains just the > functionality needed to bootstrap the official Perl 6 test suite; if the > official test suite doesn't

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

2008-02-26 Thread Geoffrey Broadwell
Typo nit: On Tue, 2008-02-26 at 09:42 -0800, [EMAIL PROTECTED] wrote: > +file in the Standard Dialect (which itself has versions that correspond > +to the same version of the official Perl test suite. Eval strings, Appears to be missing a ')' before the '.' -'f

Re: Perl 6 fundraising and related topics.

2008-02-21 Thread Geoffrey Broadwell
On Thu, 2008-02-21 at 18:45 -0500, Joshua Gatcomb wrote: > On Thu, Feb 21, 2008 at 4:23 PM, chromatic <[EMAIL PROTECTED]> wrote: > 2. Allow people to choose where their money will go (if that's what they > want to do) Someone earlier in this thread mentioned that this can't be done directly beca

Re: xml and perl 6

2007-11-28 Thread Geoffrey Broadwell
On Wed, 2007-11-28 at 11:46 -0800, chromatic wrote: > The criterion for including a module in the core is "Is this necessary to get > and install other modules?" not "Why not include this module?" WELL SAID. -'f

Re: xml and perl 6

2007-11-28 Thread Geoffrey Broadwell
On Wed, 2007-11-28 at 19:59 +0100, James Fuller wrote: > XML Parser is what I am talking about OK -- do you want an event-based parser? Do you want a DOM parser? Do you want a simplified tree generator parser? Do you care about memory limitations? Run time? Does the parser need to be robust a

Re: xml and perl 6

2007-11-28 Thread Geoffrey Broadwell
Not too put too strong a bias on it, but: XML processors are a dime a dozen. There is no way for us to know *now* what the "best" XML processor(s) will be a decade from now, and Perl 6 is intended to be a very long term language. And frankly there are enough different use cases to ensure that no

Re: &, &&, and backtracking.

2007-09-06 Thread Geoffrey Broadwell
On Thu, 2007-09-06 at 12:37 -0700, Larry Wall wrote: > Yow. ICATBW. The what now? -'f

Re: Should a dirhandle be a filehandle-like iterator?

2007-04-13 Thread Geoffrey Broadwell
On Fri, 2007-04-13 at 19:00 -0700, Jonathan Lang wrote: > Please. I've always found the "opendir ... readdir ... closedir" set > to be clunky. > > Also: why distinguish between "open" and "opendir"? If the string is > the name of a file, 'open' means "open the file"; if it is the name of > a dir

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

2007-03-08 Thread Geoffrey Broadwell
On Wed, 2007-03-07 at 21:35 -0800, [EMAIL PROTECTED] wrote: > +So these are in sorted version order: > + > +1.2.0.999 > +1.2.1_01 > +1.2.1_2 > +1.2.1_003 > +1.2.1a1 > +1.2.1.alpha1 > +1.2.1b1 > +1.2.1.beta1 > +1.2.1.gamma > +1.2.1α1 > +1.2.1β1 > +1.2.

Re: Expressions with mixed types including low-level types

2007-02-27 Thread Geoffrey Broadwell
On Tue, 2007-02-27 at 09:20 -0800, Geoffrey Broadwell wrote: > How is casting and coersion handled with expressions involving mixed low > and high level types? > > For example, what is the output of this? > > my Int $ten = 10; > my int4 $a = 0; > my in

Expressions with mixed types including low-level types

2007-02-27 Thread Geoffrey Broadwell
How is casting and coersion handled with expressions involving mixed low and high level types? For example, what is the output of this? my Int $ten = 10; my int4 $a = 0; my int4 $b; $b = ($a + 2.4 * $ten) / 4; say $b; The answers to the above questions may alter my view o

Compact structs and "byte-stringification"

2007-02-27 Thread Geoffrey Broadwell
How do you specify that you want to byte-stringify a compact struct, rather than "normal" stringify it? Does the byte-stringified version include internal and/or trailing alignment padding? How do you specify the other choices? Whether or not trailing padding is included when byte-stringifying a

Casting and low-level types

2007-02-27 Thread Geoffrey Broadwell
What happens when you cast between low-level types? If the source value is out of range of the destination type, do you get: 1. An exception? 2. Clip to finite range always? 3. Clip to finite range for ints, clip to infinities for nums? 4. Exception when dest is int, clip to infinities when dest

Low-level types and over/underflow

2007-02-27 Thread Geoffrey Broadwell
What happens when a low-level type overflows or underflows? For example, if you decrement an int1 twice, what happens? If you increment a uint8 past 255, do you get: 1. A uint8 with value 0? 2. A uint16 with value 256? 3. A failure? What about incrementing an int8 past 127? Do you get: 1. An

Rotation ops?

2007-02-27 Thread Geoffrey Broadwell
Does Perl 6 have (bit/string) rotation ops? Especially bit rotation on low-level integer types would be Nifty for making some numeric algorithms cleaner, more self documenting, and potentially faster than forcing the use of a combination of other bitwise ops to do the same thing. -'f

Bit shifts on low-level types

2007-02-27 Thread Geoffrey Broadwell
How are the bitwise shifts defined on low level types? In particular, for right shift, does high bit extension or zero fill occur? Does the answer depend on whether the low level type is signed or not? On the flip side, it seems more useful if we have both operators available for either signed o

request: num16

2007-02-27 Thread Geoffrey Broadwell
I'd like to request that num16 and therefore complex16 be added to S09, and made optional just as num128 and complex128 are. The half-sized floating point type is commonly used in computer graphics and widely supported by GPUs and High Dynamic Range image formats such as OpenEXR. -'f

Re: Packed array status?

2007-02-26 Thread Geoffrey Broadwell
On Mon, 2007-02-26 at 16:29 -0800, chromatic wrote: > On Monday 26 February 2007 11:29, Geoffrey Broadwell wrote: > > > Does Perl 6 on Parrot have Perl 5 connectivity? > > Not until Perl 6 can use PIR code. After that, it depends on what you want > to > do with the

Re: Packed array status?

2007-02-26 Thread Geoffrey Broadwell
On Tue, 2007-02-27 at 03:02 +0800, Audrey Tang wrote: > 2007/2/27, Geoffrey Broadwell <[EMAIL PROTECTED]>: > > Are you looking for Perl code that creates such packed arrays and passes > > them to OpenGL? Or are you looking for links to manpages for the OpenGL > >

Re: Packed array status?

2007-02-26 Thread Geoffrey Broadwell
> Pugs at the moment support all of the above, using the Perl 5 bridge > for "use perl5:SDL" and "use perl5:OpenGL". So the sole requirement > seems to be: Cool beans. I'd had some simple OpenGL code working-with-hacks on Pugs many months ago, but I did not know the current status after all the

Re: Packed array status?

2007-02-26 Thread Geoffrey Broadwell
On Mon, 2007-02-26 at 08:25 -0600, Patrick R. Michaud wrote: > On Sun, Feb 25, 2007 at 03:48:47PM -0800, chromatic wrote: > > On Sunday 25 February 2007 12:40, Geoffrey Broadwell wrote: > > > > > What backends support packed native arrays at this point? And what'

Re: What criteria mark the closure of perl6 specification

2007-02-25 Thread Geoffrey Broadwell
On Sun, 2007-02-25 at 14:16 -0800, chromatic wrote: > On Sunday 25 February 2007 13:57, Geoffrey Broadwell wrote: > > > I'm not trying to say that the implementors should rush either, nor am I > > complaining about current status; I grok the dynamics of volunteer code. >

Re: What criteria mark the closure of perl6 specification

2007-02-25 Thread Geoffrey Broadwell
On Sun, 2007-02-25 at 13:26 -0800, chromatic wrote: > On Sunday 25 February 2007 12:56, Geoffrey Broadwell wrote: > > > As I mentioned in another thread, but didn't make clear in that email: I > > don't need a "finished" spec. I need the *current* ver

Re: What criteria mark the closure of perl6 specification

2007-02-25 Thread Geoffrey Broadwell
On Sun, 2007-02-25 at 12:15 -0800, Jonathan Lang wrote: > I submit that you'll have even more luck discouraging such things if > you can give a reasonable and believable timeline as to when the 6.0 > spec will be ready and perl 6.1 features can start being considered. As I mentioned in another thr

Packed array status?

2007-02-25 Thread Geoffrey Broadwell
What backends support packed native arrays at this point? And what's the performance like? Native access to packed arrays is the big thing I'm looking for before I port a pile of source filtered Perl 5 code to Perl 6. It's a simple 3D engine, so all of the libraries I need to work with want to w

Mismatching text and example in S06

2006-04-21 Thread Geoffrey Broadwell
>From S06: * As we saw earlier, "zip" produces little arrays by taking one element from each list in turn, so (0..2; 'a'..'c') ==> my @;tmp; for @;tmp.zip { say } produces [0,'a'],[1,'b'],[2,'c']. If you don't want the subarrays, then use C instead: (0..2; 'a'..'c') ==> my @;tm

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

2006-04-21 Thread Geoffrey Broadwell
On Fri, 2006-04-21 at 13:27 -0700, [EMAIL PROTECTED] wrote: > Bitwise operations on a C generally fail unless the > +C in question can provide an abstract C interface somehow. > +Coercion to C should generally invalidate the C interface. > +As a generic type C may be instantiated as (or bound to) a

"Perl6 Polyglot"

2005-09-28 Thread Geoffrey Broadwell
The first entry in my new weekly "Perl etc." O'Reilly blog is up: http://www.oreillynet.com/pub/wlg/7928 When I mentioned it on #perl6, nothingmuch suggested I post to p6l as well. So here you go. :-) -'f