On Sun, 14 Jan 2001, David Grove wrote:
> Ladies and gentlemen, maybe licensing isn't the method of choice of
> preventing the abuses that are harming this community, but it seems to be
> the appropriate place to affect at least one of the two:
What abuses? What the heck are you talking about?
On Sun, 14 Jan 2001, David Grove wrote:
> 1. What if a company, ANY company, whether through collusion or by any
> other means, historically has had, currently has, or in the future will
> have, the ability to disregard the perl license mechanism as it stands
> because of questionable "grammar",
On Thu, 1 Feb 2001, Nathan Wiger wrote:
> There's the big problem of overlapping function names. If I say:
>
>$name = param('name');
>
> I probably mean "use CGI". But maybe there's some other module that has
> param() also? What if I really mean "use CGI::Minimal"?
Here's a gross thought (f
On Thu, 1 Feb 2001, Michael G Schwern wrote:
> Problem is, its extremely difficult to figure out what module
> implements what. Sure, if you see a C you have a
I wasn't clear. I was thinking that somehow a module would register with
the core what interfaces it support when it is installed. An
On Fri, 2 Feb 2001, Jarkko Hietaniemi wrote:
> What I think is needed is some sort of opaque tag: the name of the
> 'contract' the API claims to fulfill. The name can be the name of
> the standard, the name of the company, the name of the individual.
> (Java does a very similar thing but they pr
On Tue, 20 Feb 2001, Dan Sugalski wrote:
> At 01:32 PM 2/20/2001 -0600, Dave Rolsky wrote:
> >
> >Hmm, I think of Python as more Babbit than Mahler. Perl is ... John Cage?
>
> Would that mean that perl 6 corresponds to 4'33"? (If I have the composers
> righ
On Tue, 20 Feb 2001, Simon Cozens wrote:
> valuable and interesting. (aside: Python is Mahler. Discuss.) So while we may
Hmm, I think of Python as more Babbit than Mahler. Perl is ... John Cage?
-dave
/*==
www.urth.org
We await the New Sun
==*/
On Tue, 14 Aug 2001, Nathan Wiger wrote:
> This is very similar to what Params::Validate does right now; in fact,
> the module could well inherit from it.
That'd be tricky since its not OO but you could build on it.
Alternately, I'd be happy to add more features to Params::Validate (I
don't feel
e, here.
I would like to hear from Ovid and Dave Rolsky on this issue too, as
they seem to have been researching pure relational models.
My take on this is that with all the features that are supposed to be in
Perl6, implementing a declarative mini-language for relations and tuples
would be
On Tue, 5 Jul 2005, Gaal Yahas wrote:
Regarding Time::Local fields, it's an object now, so the order of things
Should that be Time::localtime? In P5 there are Time::localtime &
Time::gmtime, which are thin OO facades over the language builtins. Then
there's the module Time::Local, which is
On Tue, 5 Jul 2005, Juerd wrote:
No. Humans don't USE numbers for week days! So beginning at 1 makes no
sense, except for humans who like creating lists like (undef, ). In fact, I would prefer to
not having any 0 :)
This should be separated into day() and day_name(). It's hardly obvious
tha
On Wed, 6 Jul 2005, Juerd wrote:
I think the problem one has is much bigger even if a day *number* is
ever displayed. Then beginning with 1 because that's where most humans
begin counting, is wrong. It's a technical thing, and that should be
kept as simple as possible, and as technical as possib
On Wed, 10 Aug 2005, Luke Palmer wrote:
A new development in perl 6 land that will make some folks very happy.
There is now a Set role. Among its operations are (including
parentheses):
(+) Union
(*) Intersection
(-) Difference
(<=) Subset
(<) Proper subset
(>=) Sup
[changing the subject line for the benefit of the summarizer ...]
On Wed, 10 Aug 2005, Larry Wall wrote:
And now some people will begin to wonder how ugly set values will look.
We should also tell them that lists (and possibly any-junctions)
promote to sets in set context, so that the usual way
On Mon, 15 Aug 2005, Larry Wall wrote:
But the best part is that if we abandon UTC leap seconds for civil time,
we don't have to remember leap seconds going forward, only backward from
2000.
So you want to take on the (very irritating, I tell you) burden of leap
seconds going _backwards_ but
On Tue, 16 Aug 2005, zowie wrote:
Hmmm... at least backwards leap-seconds are fixed. Handling leap-seconds for
all time requires net access or frequent software updates, but a single block
of 32 comparisons handles everything up to A.D. 2000.
Well, if you want accuracy you need to get that i
On Wed, 17 Aug 2005, Autrijus Tang wrote:
...This seems to be quite consistent with the rumoured US proposal to
abolish leap seconds by adding leap hours every 500 years or so:
Wow, a piece of US government policy I can actually support! Hell must be
a cold place right now.
-dave
/*=
On Wed, 17 Aug 2005, Sam Vilain wrote:
Why on earth would you want to encourage such a short sighted
programming practise? The earth wobbles like a spinning top. In fact
It's hardly short sighted to want leap seconds to be abandoned (not in
Perl but world wide). The few people who _really_
One of the things I'm looking forward to in Perl6 is greatly improved
sub/method signatures.
I'm hoping that this will eliminate the need for anything like
Params::Validate, which IMO is a nasty hack to make up for a serious
weakness in Perl5.
I'm going to go over the various features in P::
On Wed, 17 Aug 2005, Luke Palmer wrote:
Dependencies, Exclusions, and "Require one-of"
With P::V I can do this:
{ credit_card_number =>
{ optional => 1,
depends => [ 'credit_card_expiration', 'credit_card_holder_name' ] },
credit_card_expiration => { optional => 1 },
On Thu, 18 Aug 2005, Yuval Kogman wrote:
You sortof can:
sub validate (+$credit_card_number,
+$credit_card_expiration,
+$credit_card_holder_name)
where { defined $credit_card_number xor
defined $credit_card_expiration &&
On Wed, 17 Aug 2005, Dave Rolsky wrote:
Type Validation, "isa", & "can"
Params::Validate allows for several ways to check the _value_ of a parameter.
One way is to specify a primitive type like "SCALAR" or "ARRAYREF". In P6 we
have that with
On Thu, 18 Aug 2005, Autrijus Tang wrote:
On Wed, Aug 17, 2005 at 11:45:52PM -0500, Dave Rolsky wrote:
And another question. How will I make Perl6 not do automatic coercion for
me. If I have this sub:
sub date (Int +$year is required, +$month, +$day)
BTW, Pugs supports the ++ syntax
On Mon, 5 Sep 2005, Thomas Klausner wrote:
has_perl_dependency:
In the META.yml (assuming it exists) there is a dependency on the
version of perl required to install the dist.
The goal of this is to make life a little easier on installers and CPAN
testers and a few other things.
Many many mod
On Wed, 14 Sep 2005, Luke Palmer wrote:
my Int $int = $num;
Explicit coercion, however, isn't done with context: it is done with the
.as() method: $num.as(Int). I think that's weird.
Not to mention the fact that you might have put an Int there for
typechecking purposes instead of coersion pur
On Mon, 17 Jan 2005, Andy Lester wrote:
Msql-Mysql-modules
This is just the old distro that contained DBD::mysql and DBD::msql. I
don't think the latter is maintained, and DBD::mysql is already on the
list.
-dave
/*===
VegGuide.Org
On Mon, 20 Oct 2003, Andrew Savige wrote:
> I noticed in Test::Tutorial:
> "Taint mode is a funny thing. It's the globalest of all global features.
> Once you turn it on it effects all code in your program and all modules
> used (and all the modules they use). If a single piece of code isn't
> tai
On Mon, 20 Oct 2003, Michael G Schwern wrote:
> On Tue, Oct 21, 2003 at 12:24:03AM -0500, Dave Rolsky wrote:
> > On Mon, 20 Oct 2003, Andrew Savige wrote:
> > > I noticed in Test::Tutorial:
> > > "Taint mode is a funny thing. It's the globalest of all global f
On Tue, 21 Oct 2003, Michael G Schwern wrote:
> On Tue, Oct 21, 2003 at 12:34:44PM -0500, Dave Rolsky wrote:
> > Anyway, my taint mode experience has been that random things break in very
> > weird ways when using it.
>
> All the more reason to test with it on. :)
At t
On Mon, 17 Nov 2003, darren chamberlain wrote:
> * Andrew Savige [2003-11-15 14:51]:
> > I took a quick look a mod_perl and Template Toolkit (TT).
> > TT has a:
> > lib/Template/Test.pm
> > which looks wrong to me (should that not be under t/lib instead?).
>
> Template::Test contains a bunch of
On 15 Aug 2000, Perl6 RFC Librarian wrote:
> =head2 Exceptions
>
> Exceptions are objects belonging to some C class. Cing
> an exception creates the object; therefore, C above is just a
> class name. C lets you subclass C to create them;
> C appears to be a better name for a core functionality
On Thu, 17 Aug 2000, Tony Olekshy wrote:
> trace
>
> A listref containing a snapshot of the call-stack as at the time
> the exception is first raised. The array contains hashes (one
> per call stack level), each containing one key value pair for
> each snapshot value at that lev
On Sat, 19 Aug 2000, Tony Olekshy wrote:
> die
>
> If argument isa "Exception", raise it as the new exception and
> die in the fashion that Perl 5 does.
>
> If argument is a string, wrap it in a new Error object, setting
> the message ivar to the given string, and raise that in
On Sun, 20 Aug 2000, Tony Olekshy wrote:
> Shared:
>
> try { my $p = P->new; my $q = Q->new; ... }
> finally { $p and $p->Done; }
> finally { $q and $q->Done; }
>
> If P->new throws, then the second finally is going to test
> $q, but it's not "in scope" yet (its my hasn't been seen)
On Sun, 20 Aug 2000, Tony Olekshy wrote:
> That would be nice. But does this mean that in the following
> case:
>
> try { fragile(); }
> catch { my $caught = 1; }
> finally { $caught and ... }
>
> storage for $caught is allocated and initialized to undef at the
> beginning of
On 22 Aug 2000, Chaim Frenkel wrote:
> Could you tell me why you would want two finallys?
>
> Why not put them into one?
> TO> my ($p, $q);
> TO> try { $p = P->new; $q = Q->new; ... }
> TO> finally { $p and $p->Done; }
> TO> finally { $q and $q->Done; }
Presumably because all f
On Thu, 24 Aug 2000, Hildo Biersma wrote:
> Don't impose your religion on others. If people want 'this' instead of
> 'self', that should be just fine.
>
> It should be pretty easy to define the appropriate $ME-reader like this:
>
> use ObjectStyle 'self';
>
> or
>
> use ObjectStyle 'Java
On Sat, 26 Aug 2000, James Mastros wrote:
> This example shows how much easier it would have been to write the
> example on line 170 of perltoot.pod:
>
> package Person;
> use strict;
>
> ##
> ## the object constructor (simplis
On 1 Sep 2000, Perl6 RFC Librarian wrote:
> Private entries of hashes could be I accessed in packages
> that inherit from the entry's package, by qualifying (i.e. prefixing) the
> key with the entry's package name. For example:
>
> package Base;
>
> sub new {
>
On Thu, 7 Sep 2000, Michael G Schwern wrote:
> Refactoring is simply the automated alteration of code without
> effecting its purpose. A simple example would be reversing the order
> of arguments in a subroutine. A refactoring tool would be able to do
> this for you automatically and in all cod
First of all, I think this is a great idea
On 14 Sep 2000, Perl6 RFC Librarian wrote:
> Are there any contexts besides double quotes ("", qq{}, <<"EOF") where this
> need be applied? What about inside regexes? And if so, left and/or right
> hand side?
Regexes are enough like double quoted str
On 19 Sep 2000, Perl6 RFC Librarian wrote:
> =head2 Which modules?
Just to throw out some possibilities for discussion:
Date::Manip or some other date manipulation module. Date::Manip is cool
but awfully huge, I know.
Can't think of others right at this moment.
-dave
/*==
ww
On 17 Sep 2000, Perl6 RFC Librarian wrote:
>my $name = undef;
>my($a, $b, $c, $d, $e, $f) = undef;
Well, these two get the result they want. Try this code:
my($a, $b, $c, $d, $e, $f) = undef;
my %h = ( a => $a, b => $b, c => $c, d => $d, e => $e, f => $f );
while (my ($k, $v) = each %
On Wed, 18 Feb 2009, Timothy S. Nelson wrote:
Agreed, and that's kinda what I'm doing. But I still think there's
room for improvement. I'll try and design an API that does what DateTime
does, but:
1. Uses more variables, of which I expect the getters and setters to be
overridde
After some discussion I made a number of drastic revisions to
S32-setting-library/Temporal.pod
What I want to see in Perl 6 is a set of very minimal roles that can be
used to provide a simply object from gmtime() and localtime(). These
objects should not handle locales, proper Olson timezones,
On Thu, 19 Feb 2009, Darren Duncan wrote:
And which is why subsecond and whole-second *can* be combined. Appropriate
separation allows better accuracy in letting people express what they mean
rather than shoehorning it into a less accurate space, like DateTime.pm
shoehorns into Days+Seconds+N
On Thu, 19 Feb 2009, Darren Duncan wrote:
As per my previous post, I recommend having both, like this:
role Instant {
has Int $.year;
...
has Rat $.second;
}
role DateTime is Instant where defined $.year ... and defined $.second;
role Date is Instant where defined $.year ... and
On Fri, 20 Feb 2009, Timothy S. Nelson wrote:
Format specifiers - this could come from locales (CLDR specifies this)
or strftime, but again, it's more complicated than is needed
[snip]
Added iso8601 output for every role, and made that the
stringification. ISO8601 is unambiguous world-wide, ea
On Thu, 19 Feb 2009, Larry Wall wrote:
Is there a way in which a class which does the Date role could change the
type $.year so it was "Int|Undef"?
Doesn't have to. Int already comes with an undefined value known as
Int, aka the protoobject. Only subset types (and their cousins, native
types
On Fri, 20 Feb 2009, David Green wrote:
On 2009-Feb-19, at 11:26 am, Dave Rolsky wrote:
What I want to see in Perl 6 is a set of very minimal roles that can be
used to provide a simply object from gmtime() and localtime(). These
objects should not handle locales, proper Olson timezones
On Fri, 20 Feb 2009, Richard Hainsworth wrote:
a) I am strongly in favour of "Instant" over "DateTime" for several reasons,
one being that it marks a new approach.
I don't care _that_ much. I'm happy to leave it to @Larry.
b) Although for business we use a calendar derived from the one decree
On Fri, 20 Feb 2009, Leon Timmermans wrote:
On Thu, Feb 19, 2009 at 7:26 PM, Dave Rolsky wrote:
After some discussion I made a number of drastic revisions to
S32-setting-library/Temporal.pod
What I want to see in Perl 6 is a set of very minimal roles that can be used
to provide a simply
On Fri, 20 Feb 2009, Daniel Ruoso wrote:
Em Qui, 2009-02-19 às 15:58 -0800, Larry Wall escreveu:
That being said, I'm thinking that all actual times represented by
floats in Perl are TAI time, not the Unix pseudo time with hidden
leap seconds. I sure wish they'd done away with civic leap secon
On Fri, 20 Feb 2009, Dave Whipp wrote:
I'm getting a bit lost following precisely what's being proposed. What I'm
sort of feeling is that there are two fundamental immutable types needed:
Instants and Durations:
multi sub infix:<-> (Instant, Instant --> Duration)
multi sub infix:<+> (Instan
On Fri, 20 Feb 2009, Larry Wall wrote:
Duration and Instant are both simple (but typed) Num semantics
on seconds. There are no integers unless you specifically ask for
an interpretation in minutes, hours, fortnights, what have you.
The basic flow of time is continuous and stable in Perl 6, or a
On Fri, 20 Feb 2009, mark.a.big...@comcast.net wrote:
"one month from today" is ill-defined regardless what time system you
are using. There are dates from which "one month from today" can be
reasonably argued to be any of 5 different days. This is why bank
contracts are always to be written t
On Thu, 21 Feb 2008, Geoffrey Broadwell wrote:
Someone earlier in this thread mentioned that this can't be done
directly because of rules surrounding TPF's non-profit status. Someone
else pointed out the problems with TPF officers benefitting directly
from the donations, even though some of the
On Thu, 21 Feb 2008, Joshua Gatcomb wrote:
I am mostly ignoring the rest of what others have said in this thread
because I think it is detracting from your intention of getting money to
people to work more. Here is one thing that has frustrated me about TPF.
They are a non-profit organization.
On Fri, 22 Feb 2008, [EMAIL PROTECTED] wrote:
That's what made me come to the conclusion that it's really "The Parrot
Foundation".
As brian mentioned, the NLNet grant is what's driving the Parrot work.
AFAIK, there haven't been any Parrot-related grants for a long time
besides that one and t
On Tue, 26 Feb 2008, Ovid wrote:
How else should we be advertising this?
These mailing lists might be a good place. Basically, places where the
work in question is done also seem like good places to advertise.
-dave
/*===
VegGuide.Org
On Sat, 2 May 2009, Timothy S. Nelson wrote:
Hi. Can someone (Dave Rolsky?) please tell me why rewriting
S32/Temporal in terms of Enum roles would be bad? See the example of Enum
day roles here:
http://www.rakudo.org/node/39
Because day and month names are hardly universal, and forcing
On Thu, 8 Apr 2010, Carl Mäsak wrote:
I do want to explicitly credit Dave Rolsky, whose work on the DateTime
family of modules on CPAN has informed much of the current spec,
sometimes to the point of verbatim copying.
Thanks, but I'd hate to see you copy all my mistakes too!
One th
On Sun, 11 Apr 2010, Moritz Lenz wrote:
I've planned to add such a module to the Perl 6 spec, but some comments
on #perl6 suggested it should be kept out of core to prevent bloat.
Still if the overall opinion is that Perl 6 should have such a module
out of the box, I'll be happy to spec it.
I
On Fri, 9 Apr 2010, Darren Duncan wrote:
conceptual and a usability and a math point of view. If users only want the
integer value, then they can just store the second as an integer in the first
place. As for the name, well "whole_second" can be made shorter, or its
Users will not always co
On Sat, 10 Apr 2010, Mark J. Reed wrote:
I'd much rather see a single consistent style throughout the setting
than backwards compatibility with p5 naming conventions.
Ditto!
If Perl 6 style is hyphens, use hyphens everywhere. That transition from
P5 DateTime to P6 will then be a simple s/_/-
On Mon, 12 Apr 2010, Moritz Lenz wrote:
Am 12.04.2010 03:47, schrieb Dave Rolsky:
On Sun, 11 Apr 2010, Moritz Lenz wrote:
I've planned to add such a module to the Perl 6 spec, but some comments
on #perl6 suggested it should be kept out of core to prevent bloat.
Still if the overall op
On Fri, 16 Apr 2010, pugs-comm...@feather.perl6.nl wrote:
+=head2 Semi-internal methods
+
+[This section is severely conjectural]
+
+For efficient implementation of arithmetics on C objects, two more
+methods are exposed:
+
+$d.daycount
+Date.new-from-daycount(Int $daycount)
I'd _reall
On Wed, 21 Apr 2010, Mark J. Reed wrote:
I recommend not to open this up for 6.0.0 core. Calendar conversion
is easy to do in a module, and the Date class has an absolute day
count, which is really all you need everything for an intermediate
representation. It wouldn't be hard to port Calendr
68 matches
Mail list logo