Re: Proposal for a new Temporal time-measurement paradigm

2010-04-22 Thread Dave Rolsky
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

Re: A new era for Temporal

2010-04-20 Thread Dave Rolsky
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 opinion

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

2010-04-20 Thread Dave Rolsky
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 CDate objects, two more +methods are exposed: + +$d.daycount +Date.new-from-daycount(Int $daycount) I'd

Re: A new era for Temporal

2010-04-11 Thread 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 opinion is that Perl 6 should have such a module out of the box, I'll be happy to spec it. I

Re: expression of seconds (was Re: A new era for Temporal)

2010-04-11 Thread Dave Rolsky
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

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

2010-04-11 Thread Dave Rolsky
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

Re: A new era for Temporal

2010-04-09 Thread Dave Rolsky
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 thing I

Re: Temporal

2009-05-25 Thread Dave Rolsky
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

Re: Temporal changes (was: Re: r25445 - docs/Perl6/Spec/S32-setting-library)

2009-02-20 Thread Dave Rolsky
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,

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

2009-02-20 Thread Dave Rolsky
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)

Re: Temporal revisited

2009-02-20 Thread Dave Rolsky
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

Re: Temporal revisited

2009-02-20 Thread Dave Rolsky
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 decreed

Re: Temporal revisited

2009-02-20 Thread Dave Rolsky
On Fri, 20 Feb 2009, Leon Timmermans wrote: On Thu, Feb 19, 2009 at 7:26 PM, Dave Rolsky auta...@urth.org 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

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

2009-02-20 Thread Dave Rolsky
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

Re: Temporal revisited

2009-02-20 Thread Dave Rolsky
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:+ (Instant,

Re: Temporal revisited

2009-02-20 Thread Dave Rolsky
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

Re: Temporal revisited

2009-02-20 Thread Dave Rolsky
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 to

Temporal revisited

2009-02-19 Thread Dave Rolsky
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

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

2009-02-19 Thread Dave Rolsky
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

Re: IO, Trees, and Time/Date

2009-02-18 Thread Dave Rolsky
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

Re: Perl 6 fundraising and related topics.

2008-02-29 Thread Dave Rolsky
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

Re: Perl 6 fundraising and related topics.

2008-02-22 Thread Dave Rolsky
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

Re: Perl 6 fundraising and related topics.

2008-02-22 Thread Dave Rolsky
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.

Re: Perl 6 fundraising and related topics.

2008-02-22 Thread Dave Rolsky
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

Re: relational data models and Perl 6

2005-12-19 Thread Dave Rolsky
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 a simple matter of programming

Re: coercion and context

2005-09-14 Thread Dave Rolsky
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

Re: Adding more kwalitee tests

2005-09-06 Thread Dave Rolsky
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

Re: Hoping that Params::Validate is not needed in Perl6

2005-08-18 Thread Dave Rolsky
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

Re: Time::Local

2005-08-17 Thread Dave Rolsky
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

Hoping that Params::Validate is not needed in Perl6

2005-08-17 Thread Dave Rolsky
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

Re: Hoping that Params::Validate is not needed in Perl6

2005-08-17 Thread Dave Rolsky
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 },

Re: Hoping that Params::Validate is not needed in Perl6

2005-08-17 Thread Dave Rolsky
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

Re: Hoping that Params::Validate is not needed in Perl6

2005-08-17 Thread Dave Rolsky
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 this: sub date (Scalar +$year is required, ...) I'm

Re: Time::Local

2005-08-16 Thread Dave Rolsky
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

Re: Time::Local

2005-08-16 Thread Dave Rolsky
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

Re: Time::Local

2005-08-16 Thread Dave Rolsky
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

Re: $object.meta.isa(?) redux

2005-08-10 Thread Dave Rolsky
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 (=)

Set operators in Perl 6 [was Re: $object.meta.isa(?) redux]

2005-08-10 Thread Dave Rolsky
[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

Re: Time::Local

2005-07-06 Thread Dave Rolsky
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

Re: Time::Local

2005-07-05 Thread Dave Rolsky
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

Re: Time::Local

2005-07-05 Thread Dave Rolsky
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, Sunday Monday ...). In fact, I would prefer Saturday Sunday Monday ... to not having any 0 :) This should be separated into

Re: Test run of the new Phalanx 100

2005-01-19 Thread Dave Rolsky
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

Re: Refactoring a test program: advice sought

2003-11-17 Thread Dave Rolsky
On Mon, 17 Nov 2003, darren chamberlain wrote: * Andrew Savige ajsavige at yahoo.com.au [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

Re: Taint mode testing and project Phalanx

2003-10-21 Thread Dave Rolsky
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 features. Once you turn it on it effects all

Re: Taint mode testing and project Phalanx

2003-10-21 Thread Dave Rolsky
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 this point I've become rather

Re: Taint mode testing and project Phalanx

2003-10-20 Thread Dave Rolsky
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 taint

Re: Perl 6 modules plan

2001-08-14 Thread Dave Rolsky
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

Re: Things have paused... really?

2001-02-20 Thread Dave Rolsky
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 right...) As someone else pointed out

Re: Things have paused... really?

2001-02-20 Thread Dave Rolsky
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 ==*/

Re: Really auto autoloaded modules

2001-02-02 Thread Dave Rolsky
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 Csub foo {...} 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

Re: Really auto autoloaded modules

2001-02-02 Thread Dave Rolsky
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

Re: licensing issues

2001-01-14 Thread Dave Rolsky
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?

Re: licensing issues

2001-01-14 Thread Dave Rolsky
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", or

Re: RFC 260 (v1) More modules

2000-09-19 Thread Dave Rolsky
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 /*==

Re: RFC 222 (v1) Interpolation of method calls

2000-09-14 Thread Dave Rolsky
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 strings

Re: code repository

2000-09-08 Thread Dave Rolsky
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 code

Re: RFC 188 (v1) Objects : Private keys and methods

2000-09-04 Thread Dave Rolsky
On 1 Sep 2000, Perl6 RFC Librarian wrote: Private entries of hashes could be Iindirectly 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 {

Re: RFC: Automatic accessors for hash-based objects

2000-08-26 Thread Dave Rolsky
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 (simplistic

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-24 Thread Dave Rolsky
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'; for

Re: RFC 88: Possible problem with shared lexical scope.

2000-08-21 Thread Dave Rolsky
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 finally blocks

Re: RFC 88: Possible problem with shared lexical scope.

2000-08-20 Thread Dave Rolsky
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). Or is it?

Re: Draft 1 of RFC 88 version 2.

2000-08-17 Thread Dave Rolsky
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 level.