Re: RFC 48 (v1) Replace localtime() and gmtime() with da
[email protected] (Tim Jenness) Mon, 7 Aug 2000 09:15:46 -1000 (HST)
| Newsgroups | perl.perl6.stdlib,perl.perl6.language |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 7 Aug 2000, Philip Newton wrote: > On Mon, 7 Aug 2000, Tim Jenness wrote: > > > Is localtime() used often enough to justify being part of > > the language? > > You're kidding, right? > > We wouldn't have had all those script kiddies complaining about year 19100 > bugs and month-being-off-by-one errors if localtime() wasn't being used > all of the time, whether in CGI code or not. > Well yes, except I was trying to say "how big a performance hit do you get if localtime() is a loadable module rather than core language?" If localtime() is only used once per program the slow down when using a module compared to native op will be insignificant (especially since one of the aims for perl6 is to make XS (or whatever) as fast as core operations (almost)). There is an argument for moving all system calls out of the language and placing them in modules. -- Tim Jenness JCMT software engineer/Support scientist http://www.jach.hawaii.edu/~timj