| Store | Cart

Re: maintainer wanted: Time::Piece

From: Jarkko Hietaniemi <j...@iki.fi>
Tue, 29 Jul 2014 22:15:07 -0400
On Tuesday-201407-29, 19:29, Jarkko Hietaniemi wrote:
> to time functions than the C std library.  (Which sucks on so many levels.)

If I may up the meta and muse some more on this subject: not just in 
time functions, but in many places Perl historically has decided to 
imitate closely the C std library or the nebulous 'UNIX'.  (Which 
roughly translates as Sun OS 4, BSD 4.2/4.3, when the mammoths and 
Larry, roamed the land.)  This was pre-POSIX and pre-SUS.

(Cue in multiple position-based arguments and return values, and of 
course also wantarray.)

Of course Perl was kind of marketed as "system admin's C, C with less 
core dumps", so let's give some design slack there.

This model of course broke as the glaciers melted.  The POSIX module was 
needed for all the new stuff, and for stuff that didn't fit in with the 
old simpler stuff (the signals being the most horrifying example).

But even without POSIX happening things didn't map perfectly to even 
other UNIXes: the uids/gids model were different between different 
legacy UNIXes.  The pwent fields, another mess: some new fields couldn't 
be returned, some old fields weren't there.

By the time the _r variant hordes swept in, the old model was running to 
the hills.  And then there was this new kid on the block, Win32, which 
sort of roughly could be mapped to 60% of UNIX/POSIX APIs... and 
ActiveState rode into the town, sheriff Sarathy leading.

Hindsight is of course easy, but maybe reimplementing low-level APIs as 
high-level APIs is not the best idea.

Recent Messages in this Thread
Ricardo Signes Jul 29, 2014 02:21 am
Samuel Smith Jul 29, 2014 02:22 pm
Ricardo Signes Aug 06, 2014 01:10 am
James E Keenan Jul 29, 2014 10:57 pm
Jarkko Hietaniemi Jul 29, 2014 11:29 pm
Jarkko Hietaniemi Jul 30, 2014 02:15 am
Neil Bowers Jul 30, 2014 09:26 am
Aristotle Pagaltzis Jul 30, 2014 02:50 pm
demerphq Jul 30, 2014 03:28 pm
Jarkko Hietaniemi Jul 30, 2014 03:42 pm
demerphq Jul 30, 2014 03:45 pm
Jarkko Hietaniemi Jul 30, 2014 03:49 pm
Abigail Jul 30, 2014 03:46 pm
Chris Prather Jul 30, 2014 04:33 pm
Ricardo Signes Jul 30, 2014 04:21 pm
Rocco Caputo Jul 30, 2014 04:12 pm
demerphq Jul 30, 2014 04:29 pm
Aristotle Pagaltzis Jul 30, 2014 08:31 pm
Rocco Caputo Jul 30, 2014 09:34 pm
John Imrie Jul 30, 2014 10:51 pm
Ricardo Signes Jul 30, 2014 11:25 pm
Jarkko Hietaniemi Jul 30, 2014 03:09 pm
Abigail Jul 30, 2014 03:41 pm
Neil Bowers Jul 31, 2014 11:51 am
Reini Urban Jul 31, 2014 10:31 pm
Jarkko Hietaniemi Jul 31, 2014 10:35 pm
Craig A. Berry Jul 31, 2014 11:07 pm
Kent Fredric Aug 01, 2014 01:38 am
Ricardo Signes Jul 30, 2014 01:49 pm
Messages in this thread