Re: Reduce [was: Re: Random items (old p5p issues)]

2000-08-02 Thread Tom Hughes
though - well actually foldl or foldr depending on which end of the list you start at. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...Hacking's just another word for nothing left to kludge.

Re: BiDirectional Support in Perl6

2000-08-03 Thread Tom Hughes
overloaded so easily... He means right to left as in languages which are written starting at the right of the page and moving left instead of the other way round. Hebrew being the example Roman was interested in. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...The revolution will not be televised.

Re: Reduce [was: Re: Random items (old p5p issues)]

2000-08-03 Thread Tom Hughes
mments were particularly concrete suggestions they were more just a question of throwing more data on what other languages do onto the pile so we can choose the best bits to steal ;-) Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/

Re: switch/case (c) vs. case (pascal)

2000-08-03 Thread Tom Hughes
uch more flexible but which isn't what C or pascal do. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...Are we THERE yet? My MIND is a SUBMARINE!!

Re: switch/case (c) vs. case (pascal)

2000-08-04 Thread Tom Hughes
In message <2804054645$[EMAIL PROTECTED]> Tom Christiansen <[EMAIL PROTECTED]> wrote: > Please, please, *PLEASE* read through Damian's fine paper on this > entire matter before rendering judgment. URL? Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.comp

Re: switch/case (c) vs. case (pascal)

2000-08-04 Thread Tom Hughes
damian/TPC/2000/switch/paper.txt Very interesting. I look forward to your RFC on the matter ;-) Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/

Re: DRAFT RFC: Enhanced Pack/Unpack

2000-08-06 Thread Tom Hughes
7;s own?? Or is this to do > with bit order?) VAX is either big or little. I can't remember which off the top of my head. You may be getting confused here with the middle-endian system used by the PDP machines which goes 3412 or something rather than the 1234 or 4321 that most machine

Re: RFC 48 (v1) Replace localtime() and gmtime() with da

2000-08-06 Thread Tom Hughes
much the same. It also means you can sort the dates to whatever accuracy you want by comparing each of the first n elements in turn for some value of n defined bu the accuracy you want. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...If we left the bones out it wouldn't be crunchy.

Re: DRAFT RFC: Enhanced Pack/Unpack

2000-08-07 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Glenn Linderman <[EMAIL PROTECTED]> wrote: > Tom Hughes wrote: > > > VAX is either big or little. I can't remember which off the top > > of my head. > > > > You may be getting confused here with the middle-e

Re: hash to hash reduction operator

2000-08-13 Thread Tom Hughes
foreach (keys %h) {if (/\+NY\+/) {$h2{$_}=$h{$_}} > > but try it on 50,000 keys.. ACK, time for a coffee break. It may not be helping that a list of the 5 keys is implicitly constructed by that syntax. If we get iterator support in perl6 then that should hopefully make it somewhat more eff

Re: RFC 90 (v1) Builtins: zip() and unzip()

2000-08-14 Thread Tom Hughes
default (I am asuming here) Currently... I thought one idea for perl6 was to make more things use iterators instead of creating large temporary lists. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...I'm so close to hell I can almost see Vegas!

Re: draft RFC: example of C keyword affecting a list context

2000-08-14 Thread Tom Hughes
vid raises are serious ones that must be addressed by any solution. I realise that much of this is really about internals so I will ask that any followups which relate to implementation rather than syntax changes need to support this go to the internals list rather than the language list. Tom -- T

Re: RFC 90 (v1) Builtins: zip() and unzip()

2000-08-14 Thread Tom Hughes
people are really after is efficient implementations of these sort of primitives and so long as perl6 has support for things like fast XSUBs and iterators an efficient implementation of things like zip and reduce could probably be done as part of the standard library rather than in the core engine

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Tom Hughes
de time_t time(time_t *timer); Description [#2] The time function determines the current calendar time. The encoding of the value is unspecified. So it isn't necessarily true to say that all platforms will return a number of seconds since the unix epo

Re: RFC 124 (v1) Sort order for any hash

2000-08-17 Thread Tom Hughes
h > replace keys, values, and each functions on sorted arrays I would have thought the obvious way to handle a sorted map would be to keep it as a balanced tree instead of a hash internally - that way you don't need to keep sorting it when you access it. Of course it does make key acc

Re: RFC 123 (v1) Builtin: lazy

2000-08-17 Thread Tom Hughes
he new keyword C. I think I've actually come up with a way to solve your problem of modifying the hash during the iteration so that I can make my implicit iterator strategy work again... I'm planning to write it up as an internals RFC over the weekend. Tom -- Tom Hughes ([EMAIL PROTECTED])

Re: RFC 99 (v1) Maintain internal time in Modified Julian (not epoch)

2000-08-15 Thread Tom Hughes
u're in) I think you mean Gregorian, not Julian. If that's going to be your requirement then you need to pick a date in the 20th century I think as IIRC Russia didn't go Gregorian until then... Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...I haven't had sex in so long, I forget who gets tied up!

Re: Idea: minor %hash changes

2000-08-30 Thread Tom Hughes
hat, but I guess somebody might be relying on it without realising it. As far as I can tell reset %x currently tries to reset any variables which start with either % or x even though no variable can start with %... Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...I can't remember where I parked my Hard Disk

Re: Change "($one, $two)=" behavior for optimization? (was Re: RFC 175 (v1) Add C keyword to force list context (like C))

2000-09-02 Thread Tom Hughes
xt to apply a side effect to the elements. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...The two great tragedies in life: not getting what one wants and getting it.

Re: Change "($one, $two)=" behavior for optimization? (was Re: RFC 175 (v1) Add C keyword to force list context (like C))

2000-09-04 Thread Tom Hughes
gt; > >I think this is a superb idea, and look forward to someone's RFC'ing it. > > Should be part of the want() context. Permit operations to discover > (as does split) how many elements they're being assigned to. Alternatively could just push an iterator on th

Re: Idea: minor %hash changes

2000-08-31 Thread Tom Hughes
quot;%percent"} = "Quoth the raven"; > print ${"%percent"}, "\n"; > reset("%"); > print ${"%percent"}, "\n"; > Quoth the raven > > Sure looks like it starts with a % to me... OK so you can manage it if you diddle with the symbol table... Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...FATAL LOGIC ERROR - Engage Brain and (R)etry

Re: Idea: minor %hash changes

2000-08-31 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Nathan Torkington <[EMAIL PROTECTED]> wrote: > Tom Hughes writes: > > I must admit it had never occurred to me that somebody might > > deliberately use keys or values to achieve that, but I guess > > somebody might be r

Re: RFC 255 (v1) Fix iteration of nested hashes

2000-09-19 Thread Tom Hughes
or might behave > differently, if nested. See RFC 136 for some thoughts on how this issue can be resolved when multiple iterators are needed. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...The early worm gets the bird.

Re: Pre-Freeze notice for RFC: 199 Short-circuiting built-in function s and user-defined subroutines

2000-09-20 Thread Tom Hughes
of context. For data sensitive terminate I don't have a big problem with it. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...Somehow, somewhere along the line, this town lost its pride.

Re: RFC 255 (v2) Fix iteration of nested hashes

2000-09-20 Thread Tom Hughes
at isn't coming to mind See the "Freezing state for keys and values efficiently" section of RFC 136 for some powerful magic that could achieve this... Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...Reading is thinking with someone else's head instead of one's own.