NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Why? (Score:2)
The docs make the excuse that loading time modules takes 3-4MB (only true for DateTime - try something lighter like Date::Class or Time::Piece), but for *::Tiny to do anything useful it looks like you'd have to do that anyway.
I (for obvious reasons) totally disagree with the flamebait in your docs about how DateTime.pm is the
Re:Why? (Score:1)
What I found was that quite a significant amount of work was having to be done just to create the DateTime objects, far more than I was comfortable with.
And yet the data did not require that level of rigour, I wasn't going to be doing anything with the dates, just holding them in memory, possibly converting to a different format, and possible dumping them back out later in the same of a different format.
What I needed was an extremely light, very quick to parse, implementation of a simple data object for date/time/datetime that I could use when speed and lightness were essential.
But having something like that disconnected from DateTime entirely made things difficult for the two places I needed full DateTime logic, and compromised the concept.
Hence the light implementation, with a optional converter to a DateTime object.
I would expect these modules to be used in those scenarios, time-critical or speed-important applications, where no significant manipulation needs to be done, but you still want a sane object form for a date/time/datetime.
As for DateTime being the only module to get it "right", perhaps the term "comprehensive" is better. I've hit various limitations with various date and time modules over the years (and I've written one of my own, a fork of Time::Piece under a previous name) and I never felt they were comprehensive enough to be the One True Solution.
And after doing a lot of date and time work, I've eventually reached the opinion that DateTime is the Right approach to the problem.
Reply to This
Parent
Re: (Score:1)
*hint*
Re: (Score:2)
I guess I'm lucky enough to have never really needed that much comprehensiveness. 4MB just to load one damn perl module (never mind the hassle of installing the thing) is just asking too much.
Re: (Score:1)
The only problem was on Windows, and the DateTime guys have fixed that now.
But yes, it is expensive. Which is why the Tiny modules exist.
And while I have your attention, any chance of getting some small releases of the modules you have commit on (that I mentioned a few posts ago).
The bugs are tiny things, but it would help us out a LOT to have some of your high profile modules working on Windows.
Re: (Score:2)
Re: (Score:1)
The specific bugs causing the problem are on win32.perl.org
http://win32.perl.org/wiki/index.php?title=Problem_Modules [perl.org]
Re: (Score:2)
I'll try and get around to DBD::SQLite later today.
Re: (Score:1)
Just double checked and not working here either.
I'm CC'ing you on the particular failure.