globs and trees in Perl6

2008-10-01 Thread Timothy S. Nelson
Hi all. I've enjoyed(?) reading over the February/March thread entitled "Musings on operator overloading". I've brought a few thoughts along; if they're old news, please tell me where to do more reading on it :). Over the last year or two, I've discovered XPath. I've always thought XML a

Re: globs and trees in Perl6

2008-10-01 Thread Timothy S. Nelson
On Wed, 1 Oct 2008, Brandon S. Allbery KF8NH wrote: On 2008 Oct 1, at 22:14, Timothy S. Nelson wrote: Hi all. I've enjoyed(?) reading over the February/March thread entitled "Musings on operator overloading". I've brought a few thoughts along; if they're old news

Re: globs and trees in Perl6

2008-10-02 Thread Timothy S. Nelson
On Thu, 2 Oct 2008, Tim Bunce wrote: On Wed, Oct 01, 2008 at 11:24:04PM -0400, Brandon S. Allbery KF8NH wrote: On 2008 Oct 1, at 22:23, Timothy S. Nelson wrote: On Wed, 1 Oct 2008, Brandon S. Allbery KF8NH wrote: On 2008 Oct 1, at 22:14, Timothy S. Nelson wrote: Hi all. I&#x

Re: globs and trees in Perl6

2008-10-02 Thread Timothy S. Nelson
On Thu, 2 Oct 2008, Tim Bunce wrote: The key point Brandon is making, that I'm not sure you're answering, You probably mean "OtherTim" (ie. me) instead of "Brandon" here :). Yeap, sorry Tim. (I've seen comments like this totally confuse everyone, so I thought I'd better mention i

Re: XPath grammars (Was: Re: globs and trees in Perl6)

2008-10-02 Thread Timothy S. Nelson
On Thu, 2 Oct 2008, Daniel Ruoso wrote: One thing we realized at that time is that XPath is good enough, even if it seems to be adressing XML specifically, it has the concept of "dimension" that can be extended to represent arbitrary aspects of objects. Hmm. Back in March, before I discovere

Re: XPath grammars (Was: Re: globs and trees in Perl6)

2008-10-02 Thread Timothy S. Nelson
On Thu, 2 Oct 2008, Timothy S. Nelson wrote: Now that Perl6 is in the mix, though, I think that the best way to do it is to make roles that model eg. Nodes, Plexes (Documents), Elements, and the like, and then have operators on them do all the work (like my idea of using a slash for a

Re: XPath grammars (Was: Re: globs and trees in Perl6)

2008-10-02 Thread Timothy S. Nelson
On Fri, 3 Oct 2008, Timothy S. Nelson wrote: On Thu, 2 Oct 2008, Timothy S. Nelson wrote: Now that Perl6 is in the mix, though, I think that the best way to do it is to make roles that model eg. Nodes, Plexes (Documents), Elements, and the like, and then have operators on them do all the

Re: globs and trees in Perl6

2008-10-02 Thread Timothy S. Nelson
On Thu, 2 Oct 2008, Moritz Lenz wrote: [snip] It sounds like a perfect idea for a very general library or rather library framework. Perl 6 has all the hooks to install stuff like this. Agree 100%. But I thought it might be useful toget some feedback from others on this; I'd like to see the

globs and rules and trees, oh my! (was: Re: XPath grammars (Was: Re: globs and trees in Perl6))

2008-10-02 Thread Timothy S. Nelson
On Fri, 3 Oct 2008, Timothy S. Nelson wrote: On Fri, 3 Oct 2008, Timothy S. Nelson wrote: On Thu, 2 Oct 2008, Timothy S. Nelson wrote: Now that Perl6 is in the mix, though, I think that the best way to do it is to make roles that model eg. Nodes, Plexes (Documents), Elements, and the like

A question about arrays

2008-10-15 Thread Timothy S. Nelson
Hi all. I'm working on the code for trees that I keep talking about, and I have code that somewhat resembles the following: roleTree::Node does Array { has Tree::Node @!children handles ; } The intent of this code is that, if you treat the Tree::Node as an array, you're operatin

Re: Signatures and matching (was "Re: XPath grammars (Was: Re: globs and trees in Perl6)")

2008-10-21 Thread Timothy S. Nelson
On Tue, 21 Oct 2008, David Green wrote: On 2008-Oct-2, at 6:15 pm, Timothy S. Nelson wrote: The guys on IRC convinced me that the way to go might be something like a grammar, but that does trees and tree transformations instead of a text input stream. See the IRC log for details

Re: Signatures and matching (was "Re: XPath grammars (Was: Re: globs and trees in Perl6)")

2008-10-22 Thread Timothy S. Nelson
On Wed, 22 Oct 2008, Brad Bowman wrote: The "scrap your boilerplate" scheme for generics in Haskell addresses traversals, queries, transformations, parallel zipping and the like. I've only briefly felt like I understood it, so I was going to revise before trying to adapt it to Perl 6. (Any lam

Re: Signatures and matching (was "Re: XPath grammars (Was: Re: globs and trees in Perl6)")

2008-10-22 Thread Timothy S. Nelson
On Tue, 21 Oct 2008, Timothy S. Nelson wrote: On Tue, 21 Oct 2008, David Green wrote: On 2008-Oct-2, at 6:15 pm, Timothy S. Nelson wrote: The guys on IRC convinced me that the way to go might be something like a grammar, but that does trees and tree transformations instead of a text input

Re: Files, Directories, Resources, Operating Systems

2008-11-26 Thread Timothy S. Nelson
Can I just remind everyone that (IMO) we shouldn't just be considering filesystems here? I think it would be a pretty useful feature to have a general tree manipulation interface, and then this could be applied to filesystems, or XML, or LDAP, or SQL (although this doesn't map so well), or wh

Iterators and Laziness

2008-11-27 Thread Timothy S. Nelson
No doubt some of you have seen the Draft S07-iterators, but for those who haven't: http://svn.pugscode.org/pugs/docs/Perl6/Spec/S07-iterators.pod I have some questions here (mostly directed to Daniel Ruoso, but others can feel free to chip in if they have thoughts). Should laziness

Re: Files, Directories, Resources, Operating Systems

2008-12-10 Thread Timothy S. Nelson
I''ve been playing with similar sorts of problems when creating an OO model for packaging metadata, that could supposedly represent the data from a .rpm or a .deb or whatever. The first thing I did was set up a method where if we're outputting eg. an RPM, it will mark every piece of metadata

Better "sort" spec?

2008-12-12 Thread Timothy S. Nelson
Hi all. I saw the new "sort" idea on the Rakudo blog: http://www.rakudo.org/2008/12/its-sort-of-like.html ...and wondered if we can get it in the spec, as I haven't seen any discussion on it or anything. :) --

Re: Working with files wish list

2008-12-16 Thread Timothy S. Nelson
On Tue, 16 Dec 2008, jason switzer wrote: You can already easily mix it in using 'does': $fstab = open('/etc/fstab', :r); $fstab does WhitespaceTrim; I don't think it's really necessary to include that into open(), though it might be useful syntactic sugar. I haven't spent the time to unders

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-16 Thread Timothy S. Nelson
On Tue, 16 Dec 2008, David Green wrote: On 2008-Dec-6, at 7:37 am, Aristotle Pagaltzis wrote: Funnily enough, I think you?re onto something here that you didn?t even notice: [...] if we had a NOTFIRST (which would run before ENTER just as FIRST does, but on *every* iteration *except* the first

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-16 Thread Timothy S. Nelson
On Tue, 16 Dec 2008, Jon Lang wrote: How do you compute '*'? That is, how do you know how many more iterations you have to go before you're done? In some cases, it won't have to be computed, in some cases it won't be computeable (which should be an error). I'd say it'd be fair enough to sa

6PAN idea

2008-12-16 Thread Timothy S. Nelson
Hi all. I've been working on some stuff that's vaguely, tangentially CPAN-related. My basic assumption is that there's going to be some kind of packaging system written around 6PAN. One thing I've been working on recently is a (Perl 5) object that models package metadata. In theory, it

Re: 6PAN idea

2008-12-16 Thread Timothy S. Nelson
On Tue, 16 Dec 2008, Brandon S. Allbery KF8NH wrote: On 2008 Dec 16, at 23:00, Timothy S. Nelson wrote: One thing I've been working on recently is a (Perl 5) object that models package metadata. In theory, it should be able to model the metadata from a .rpm, a .deb, a CPAN packag

Re: 6PAN idea

2008-12-17 Thread Timothy S. Nelson
On Wed, 17 Dec 2008, Daniel Ruoso wrote: Em Qua, 2008-12-17 às 15:00 +1100, Timothy S. Nelson escreveu: My basic assumption is that there's going to be some kind of packaging system written around 6PAN. Please take a look in some notes I've written some time

Re: 6PAN idea

2008-12-17 Thread Timothy S. Nelson
On Wed, 17 Dec 2008, Daniel Ruoso wrote: It also allows one source package to generate different binary packages (for instance, having scripts, libs and docs splitted), and makes it easier to do an uninstall, because a "binary"/"installable" package would have a fixed list of files. I agree o

6PAN Spec question

2008-12-17 Thread Timothy S. Nelson
My question is, what sort of information actually belongs in a final version of the 6PAN spec? I'm assuming it will at least include 6PAN Package format (layout, metadata, etc), and I'd suggest that it also include the layout of packages on the 6PAN server. Some have suggested a particular

CPAN6 vs. 6PAN (was: Re: 6PAN Spec question)

2008-12-18 Thread Timothy S. Nelson
Mark, am I right in putting it like this? 6PAN: - Perl6 package format - Client-side part of "CPAN" CPAN6: - Server-side part of "CPAN" (with more stuff) Is that how you see it? :) -

Re: 6PAN Spec question

2008-12-18 Thread Timothy S. Nelson
On Thu, 18 Dec 2008, Daniel Ruoso wrote: Em Qui, 2008-12-18 às 13:08 +1100, Timothy S. Nelson escreveu: My question is, what sort of information actually belongs in a final version of the 6PAN spec? I'm assuming it will at least include 6PAN Package format (layout, metadata, etc)

Re: 6PAN Spec question

2008-12-18 Thread Timothy S. Nelson
On Fri, 19 Dec 2008, Timothy S. Nelson wrote: Are there any objections if I refactor the current S22 into 3 parts, and retain the .jib files stuff in the current S22 (renamed to S22-package-format.pod), a document containing "what S22 said about CPAN6" (which we could then don

Re: 6PAN Spec question

2008-12-19 Thread Timothy S. Nelson
Btw, looks like I was wrong about the terminology of CPAN6/6PAN/whatever. See link below for details (the new Terminology section). http://svn.pugscode.org/pugs/docs/Perl6/Spec/S22-package-format.pod :) - | Name: T

Re: 6PAN Spec question

2008-12-21 Thread Timothy S. Nelson
On Sat, 20 Dec 2008, Mark Overmeer wrote: * Timothy S. Nelson (wayl...@wayland.id.au) [081220 03:45]: Btw, looks like I was wrong about the terminology of CPAN6/6PAN/whatever. See link below for details (the new Terminology section). http://svn.pugscode.org/pugs/docs/Perl6/Spec/S22

Re: Build and Installation of modules should be implementation specific (Was: Re: 6PAN Spec question)

2008-12-23 Thread Timothy S. Nelson
On Mon, 22 Dec 2008, Daniel Ruoso wrote: Em Seg, 2008-12-22 às 15:06 +1100, Timothy S. Nelson escreveu: On Sat, 20 Dec 2008, Mark Overmeer wrote: For ???B. In the current set-up, you use CPAN.pm to download, and then install. The 'cpan' script is a wrapper around CPAN.pm. CPAN

Re: Writing to an iterator

2009-01-07 Thread Timothy S. Nelson
On Wed, 7 Jan 2009, Jon Lang wrote: I was just reading through S07, and it occurred to me that if one wanted to, one could handle stacks and queues as iterators, rather than by push/pop/shift/unshift of a list. All you'd have to do would be to create a stack or queue class with a private list a

Trimming; left or start? (was: Re: [PATCH] Add .trim method)

2009-01-12 Thread Timothy S. Nelson
Can I make a suggestion? From my point of view, it'd be nice if the trim method supported: - left/right (leftmost/rightmost part of the string; language-independent) - start/end (start and end of string; could be leading/trailing instead) - both How would that work?

Re: RFD: Built-in testing

2009-01-22 Thread Timothy S. Nelson
On Thu, 22 Jan 2009, Richard Hainsworth wrote: 4) Testing software is different from debugging or running software. Running is about providing functionality to the user. Debugging is about getting expected behaviour and discovering why behaviour exhibited is not what is expected / specified. T

Re: RFD: Built-in testing

2009-01-22 Thread Timothy S. Nelson
On Wed, 21 Jan 2009, Dave Whipp wrote: Moritz Lenz wrote: A few months ago Larry proposed to add some testing facilites to the language itself, because we want to culturally encourage testing, and because the test suite defines the language, so we need to specify the behaviour of our testing fa

2 questions: Implementations and Roles

2009-02-06 Thread Timothy S. Nelson
Quick question about implementing things like the DBI/DBD split in Perl6. In Perl5, you have code in DBI that essentially says: - $driverpackage = "DBD::$driver"; eval "use $driverpackage; \$obj = $driverpackage->new(\%params);"; - This has always seemed ugly to me. Is there

S16 questions

2009-02-13 Thread Timothy S. Nelson
Hi. I've been trying to help reorganise the draft S16, as I'm also in the process of writing something roughly equivalent to Net::Cmd in Perl6. I have some questions. First question, how do IO::Encoded and eg. IO::Encoded::Readable relate to each other? I'm assuming it's one of the follow

Re: r25328 - docs/Perl6/Spec

2009-02-15 Thread Timothy S. Nelson
On Sat, 14 Feb 2009, Leon Timmermans wrote: On Sat, Feb 14, 2009 at 6:38 AM, wrote: +=head2 IO::Openable + +This role implies that the object can be connected to, or listened on. + +=over 4 + +=item open + + method Bool open(); + +Attempts to open the handle. Depending on the implementation,

Re: r25329 - docs/Perl6/Spec

2009-02-15 Thread Timothy S. Nelson
On Sat, 14 Feb 2009, Mark J. Reed wrote: That mention of $| is confusing, since $| has nothing to do with changing where output goes in p5. All it does is cause output to be autoflushed.. The Perl5 analog to $DEFOUT would seem to be the select() function... Agreed, fixed. Btw, thanks to eve

Re: r25328 - docs/Perl6/Spec

2009-02-15 Thread Timothy S. Nelson
On Sun, 15 Feb 2009, Brandon S. Allbery KF8NH wrote: On 2009 Feb 15, at 22:50, Timothy S. Nelson wrote: On Sat, 14 Feb 2009, Leon Timmermans wrote: +=item sysopen I vote for sysopen (and all other sys functions) to be wiped out of existence. Disagree -- I think these belong in IO

Call-and-response grammars?

2009-02-15 Thread Timothy S. Nelson
Ok, I'm wondering about how a protocol such as ACAP could be implemented as a grammar. For those not familiar with ACAP, it bears some resemblance to IMAP (and a more distant resemblance to POP3 and SMTP), with the difference that the server can send information to the client unsolicited (thi

S17-concurrency question

2009-02-15 Thread Timothy S. Nelson
Hi. I have a question for the S17-concurrency people. Say I wanted to write a POP3 server. I want to receive a username and password from the client. I want things to be interruptable during this, but it's also impossible to sensibly roll things back like they were before the conne

Re: The use of roles in S16 (Was: Re: r25328 - docs/Perl6/Spec)

2009-02-16 Thread Timothy S. Nelson
On Mon, 16 Feb 2009, Daniel Ruoso wrote: Em Sáb, 2009-02-14 às 18:01 +0100, Leon Timmermans escreveu: On Sat, Feb 14, 2009 at 6:38 AM, wrote: +=head2 IO::Openable +This role implies that the object can be connected to, or listened on. I'm not sure if I really hate or love this. I'm not quit

Re: S17-concurrency question

2009-02-16 Thread Timothy S. Nelson
On Mon, 16 Feb 2009, Daniel Ruoso wrote: Em Seg, 2009-02-16 às 17:28 +1100, Timothy S. Nelson escreveu: Say I wanted to write a POP3 server. I want to receive a username and password from the client. I want things to be interruptable during this, but it's also impossible to sen

Exegesis 7/format() question

2009-02-16 Thread Timothy S. Nelson
Hi all. According to S29, the Perl 5 format() function is obsolete, and it says "See Exegesis 7". According to Exegesis 7, there will be a Form.pm which implements similar functionality, but has to be "use"d. My questions are: 1. Is the Form.pm module discussed anywhere in the specs? 2

S16 and File::Spec/Cwd/PathTools

2009-02-17 Thread Timothy S. Nelson
Should the functionality of File::Spec and Cwd be integrated into the IO modules? I'm not advocating the interface, but the functionality might be useful. Thanks, - | Name: Tim Nelson | Because the C

IO, Trees, and Time/Date

2009-02-17 Thread Timothy S. Nelson
Hi all. I know we usually run on forgiveness instead of permission, but I'm suggesting a big change (or extension, anyway), so I wanted to run the ideas by you all before I put the effort in. If I don't get feedback, I'll just make the changes. The first thing I wanted to suggest was that

Re: r25328 - docs/Perl6/Spec (fwd)

2009-02-17 Thread Timothy S. Nelson
I didn't realise this hadn't gone to the list. Enjoy, all :). -- Forwarded message -- Date: Tue, 17 Feb 2009 14:34:07 +1100 (EST) From: Timothy S. Nelson To: Leon Timmermans Subject: Re: r25328 - docs/Perl6/Spec On Mon, 16 Feb 2009, Leon Timmermans wrote

Re: IO, Trees, and Time/Date

2009-02-17 Thread Timothy S. Nelson
On Tue, 17 Feb 2009, Richard Hainsworth wrote: Timothy S. Nelson wrote: Hi all. I know we usually run on forgiveness instead of permission, but I'm suggesting a big change (or extension, anyway), so I wanted to run the ideas by you all before I put the effort in. If I don't ge

Re: IO, Trees, and Time/Date

2009-02-17 Thread Timothy S. Nelson
On Tue, 17 Feb 2009, Geoffrey Broadwell wrote: On Tue, 2009-02-17 at 22:38 +1100, Timothy S. Nelson wrote: My third thought is that it would be very useful also to have date/time objects that integrate well with eg. ctime, mtime, and the like; I'd start with Time::Piece as a

Spec reorganisation

2009-02-17 Thread Timothy S. Nelson
Hi all. I'd like to suggest a slight reorganisation within the specs. The first thing I've observed is that, in defining the IO stuff, and adding in the Tree and DateTime stuff, is that we're getting a lot of non-IO stuff in there. I'm aware that the numbering and ordering of the s

Re: IO, Trees, and Time/Date

2009-02-17 Thread Timothy S. Nelson
On Tue, 17 Feb 2009, Darren Duncan wrote: Talking about dates and times, I have some suggestions. First of all, I don't think that most DateTime stuff belongs in IO. The class definitions to represent a date or time or duration etc value, as well as operators to convert date formats etc or a

Re: r25371 - docs/Perl6/Spec

2009-02-18 Thread Timothy S. Nelson
On Wed, 18 Feb 2009, Leon Timmermans wrote: I'd like to note that FileDescriptors are not reserved unices. I know Windows also has them (though they aren't commonly used), and quite possibly others too. Will be fixed in next update. Also, IO::Socket.close() is not an alternative for

Re: IO, Trees, and Time/Date

2009-02-18 Thread Timothy S. Nelson
On Wed, 18 Feb 2009, Mark J. Reed wrote: On Wed, Feb 18, 2009 at 6:36 AM, Richard Hainsworth wrote: What needs to be abstracted so that a perl6 program can know that a Writeable may not be able to accept data (eg., because the file system is full)? I don't understand the question. To be a W

Re: r25371 - docs/Perl6/Spec

2009-02-18 Thread Timothy S. Nelson
On Wed, 18 Feb 2009, Leon Timmermans wrote: On Wed, Feb 18, 2009 at 12:16 PM, Timothy S. Nelson wrote: On Wed, 18 Feb 2009, Leon Timmermans wrote: The only difference I could see was that shutdown allows changing the readability and writeability. While I agree that this functionality

Re: IO, Trees, and Time/Date

2009-02-18 Thread Timothy S. Nelson
On Wed, 18 Feb 2009, Richard Hainsworth wrote: For what you want, I would think, you need @files = grep { :f } $dir.contents; # note the adverbial form, which is mentioned in one of the other specs. Yup, thanks. By analogy there would be @subdirectories = grep { :d } $dir.contents;

Re: Spec reorganisation

2009-02-18 Thread Timothy S. Nelson
Sorry, this was supposed to go to the mailing list. On Wed, 18 Feb 2009, Timothy S. Nelson wrote: After looking through the Phlanx project (which lists 100 or so top perl modules), and the list in the Camel book, I can only see one or two other things we might eventually need

Re: Spec reorganisation

2009-02-18 Thread Timothy S. Nelson
...and this was too. On Wed, 18 Feb 2009, Moritz Lenz wrote: Hi, Timothy S. Nelson wrote: I'm not suggesting here that we specify the interfaces to all the modules listed in the Camel book, or anything like that. Instead, I'm suggesting that the S32 space b

Re: IO, Trees, and Time/Date

2009-02-18 Thread Timothy S. Nelson
On Wed, 18 Feb 2009, Dave Rolsky wrote: 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, o

Re: Spec reorganisation

2009-02-19 Thread Timothy S. Nelson
On Thu, 19 Feb 2009, Carl Mäsak wrote: Timothy (>), Moritz (>>): Speaking of Tree, let me quote from IRC: 09:23 < masak> it's a bit unfortunate that the identifier 'Tree' is now squatted by an internal class in Perl 6, which is not general enough to reprenest an arbit

Re: r25402 - in docs/Perl6/Spec: . S32-setting-library

2009-02-19 Thread Timothy S. Nelson
On Thu, 19 Feb 2009, Moritz Lenz wrote: Hi, as necessary as this step is, it opens up a new task that I haven't though of before. First all the new POD files should appear in a sensible manner on L, and second there should be good and easy way to smartlink to these n

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

2009-02-19 Thread Timothy S. Nelson
On Thu, 19 Feb 2009, Darren Duncan wrote: +role Temporal::Date { + has Int $.year; + has Int $.month; + has Int $.day; # Day of month + has Int $.dayofweek; You could make month/day into positive integers or "subtype of Int where 1..12" etc, though it isn't strictly

Temporal and purity (was: Re: IO, Trees, and Time/Date)

2009-02-19 Thread Timothy S. Nelson
an be left to CPAN. I've got a few hooks in there to deal with things that CPAN will want, but hopefully that's all. On Thu, 19 Feb 2009, Martin D Kealey wrote: On Wed, 18 Feb 2009, Timothy S. Nelson wrote: I'll try and design an API that does what DateTime does, but: 1. Use

Re: Spec reorganisation

2009-02-19 Thread Timothy S. Nelson
On Thu, 19 Feb 2009, Daniel Ruoso wrote: Em Qui, 2009-02-19 às 22:57 +1100, Timothy S. Nelson escreveu: Interesting. I'm happy to assume that $root is allowed to be Undefined, I think. But let me ask a question; were you to represent an unrooted tree in a computer, how would y

More trees and roles

2009-02-19 Thread Timothy S. Nelson
On IRC, ruoso wrote: wayland, one important thing I didn't mention in the mail is that I understand that if some attribute is going to be undefined for some cases in a Role, then it doesn't belong in that role, but in a more specialized one... the good thing about roles is that they don't r

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

2009-02-19 Thread Timothy S. Nelson
On Thu, 19 Feb 2009, pugs-comm...@feather.perl6.nl wrote: Author: autarch Date: 2009-02-19 19:14:48 +0100 (Thu, 19 Feb 2009) New Revision: 25445 Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: This is a very drastic revision (hopefully this won't turn into a revert war ;) I

Perl's internal time (was: Re: r25445 - docs/Perl6/Spec/S32-setting-library)

2009-02-19 Thread Timothy S. Nelson
On Thu, 19 Feb 2009, Larry Wall wrote: Well, leaving that rant aside, I'm still tempted to say that times in Perl 6 are TAI seconds since 2000. Standard TAI would work too. I've wondered sometimes about the idea of having a dual/moving epoch. By this, I mean that you have eg. two Ints, one

Re: Exegesis 7/format() question

2009-02-19 Thread Timothy S. Nelson
On Thu, 19 Feb 2009, Brandon S. Allbery KF8NH wrote: On 2009 Feb 17, at 1:54, Timothy S. Nelson wrote: Hi all. According to S29, the Perl 5 format() function is obsolete, and it says "See Exegesis 7". According to Exegesis 7, there will be a Form.pm which implements similar fun

Re: Perl's internal time (was: Re: r25445 - docs/Perl6/Spec/S32-setting-library)

2009-02-19 Thread Timothy S. Nelson
On Thu, 19 Feb 2009, Chris Dolan wrote: On Feb 19, 2009, at 10:17 PM, Timothy S. Nelson wrote: On Thu, 19 Feb 2009, Larry Wall wrote: Well, leaving that rant aside, I'm still tempted to say that times in Perl 6 are TAI seconds since 2000. Standard TAI would work too. I'v

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

2009-02-22 Thread Timothy S. Nelson
On Fri, 20 Feb 2009, Dave Rolsky wrote: 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 tha

Two questions; one about adding roles to classes, the other about trees.

2009-02-22 Thread Timothy S. Nelson
Adding roles to classes question: Another question for everyone - is there some way I can extend a class in such a way that it implements another role? For example, say I have a class Class::A that implements role Role::A, and I want it to also implement Role::B (and I provide an implementat

Signals question for S16: IPC / IO / Signals

2009-02-22 Thread Timothy S. Nelson
I have a quick question here. S16 claims to be about IPC, IO, and Signals. So far, it's mostly about IO. My question is, is it intended that IPC and/or signals be part of the core, or should they be converted to addons like Form.pm? Thanks, ---

S16 and S19

2009-02-22 Thread Timothy S. Nelson
Just a note for the people working on S19. Large chunks of the IO stuff will now be documented in S32-setting-library/IO.pod, so you might want to update your references to S16 to point there. Just for any who haven't grasped the distinction, the IO stuff is in 3 places: - S32-setti

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

2009-02-22 Thread Timothy S. Nelson
On Mon, 23 Feb 2009, Martin D Kealey wrote: On Mon, 23 Feb 2009, Timothy S. Nelson wrote: Renamed Temporal::Instant to Temporal::DateTime Hmm. We had some mailing list discussion about this, and agreed on Instant. I'd like to see your reasons in favour of DateTime. Be

Re: $*DEFOUT vs. $*OUT

2009-02-22 Thread Timothy S. Nelson
On Sun, 22 Feb 2009, Chris Dolan wrote: Smack me down if this has already been discussed to death, please... S16 (and now S28) say that $*DEFOUT, $*DEFIN and $*DEFERR are what most programs should use instead of $*OUT, $*IN and $*ERR. That seems anti-huffman to me, and I'll bet many programm

Re: Two questions; one about adding roles to classes, the other about trees.

2009-02-23 Thread Timothy S. Nelson
On Mon, 23 Feb 2009, Moritz Lenz wrote: Timothy S. Nelson wrote: Another question for everyone - is there some way I can extend a class in such a way that it implements another role? class A does B does C { ... } where B and C are roles. For example, say I have a class Class::A

Re: Temporal changes

2009-02-23 Thread Timothy S. Nelson
On Mon, 23 Feb 2009, Ruud H.G. van Tol wrote: Martin D Kealey wrote: Ah, we want a noun that isn't readily confused as an adjective. Suitable terms might include: Instant Jiffy Juncture Moment Occasion Snap Tick ... Once :) Hmm. Temporal::OnceUponATime :). --

Re: Temporal changes

2009-02-23 Thread Timothy S. Nelson
On Mon, 23 Feb 2009, TSa wrote: HaloO, Eirik Berg Hanssen wrote: Suitable terms might include: Instant Jiffy Juncture Moment Occasion Snap Tick ... Time::Point. Of course, being Norwegian, I may be biased. ;-) Same here in German, we have "Zeitpunkt" which literally means timepoint. B

Re: r25490 - docs/Perl6/Spec

2009-02-23 Thread Timothy S. Nelson
On Mon, 23 Feb 2009, jason switzer wrote: On Sun, Feb 22, 2009 at 9:47 PM, wrote: Added: docs/Perl6/Spec/S28-special-variables.pod === +=head2 Named variables (see S02): +$?OS # operating system compiled for +$*

Re: Rules mentioned in specifications, etc

2009-02-24 Thread Timothy S. Nelson
On Tue, 24 Feb 2009, Larry Wall wrote: On Tue, Feb 24, 2009 at 02:04:05PM +0300, Richard Hainsworth wrote: Here is a list of rules (see below) that are spread around the language design documents, but which lack a home in which they are systematically canonically defined. I suggest they be add

Re: Signals question for S16: IPC / IO / Signals

2009-02-24 Thread Timothy S. Nelson
On Tue, 24 Feb 2009, Daniel Ruoso wrote: These signal events will presumably be processed by some kind of underlying event handler that mediates among any and all user-visible event handlers within the process. Now *that* made my eyes shine. ;) I'm in favour of discussing this idea t

Re: r25490 - docs/Perl6/Spec

2009-02-24 Thread Timothy S. Nelson
On Tue, 24 Feb 2009, Brandon S. Allbery KF8NH wrote: On 2009 Feb 23, at 22:43, Timothy S. Nelson wrote: On Mon, 23 Feb 2009, jason switzer wrote: On Sun, Feb 22, 2009 at 9:47 PM, wrote: +$*PROGRAM_NAME # name of the program being executed How does this differ from $*EXECUTABLE_NAME

AnyEvent

2009-02-24 Thread Timothy S. Nelson
Am I right in guessing that the AnyEvent stuff should go in S17 ? :) - | Name: Tim Nelson | Because the Creator is,| | E-mail: wayl...@wayland.id.au| I am |

@*INPLACE_AUTOSPLIT_FIELDS

2009-02-24 Thread Timothy S. Nelson
In the table I'm assembling, the following entry was added: Perl 5 Perl 6 Comment --- ------ @F @*INPLACE_AUTOSPLIT_FIELDS ..or some such Can I just speak in favour of retaining the @F name? My

Re: Signals question for S16: IPC / IO / Signals

2009-02-24 Thread Timothy S. Nelson
On Tue, 24 Feb 2009, Daniel Ruoso wrote: Em Seg, 2009-02-23 às 19:49 -0800, Larry Wall escreveu: On Tue, Feb 24, 2009 at 04:01:40PM +1300, Martin D Kealey wrote: : Conceptually I think they should all go in add-on(s), however I suspect that : when an exception is thrown inside a signal handler,

Re: r25490 - docs/Perl6/Spec

2009-02-24 Thread Timothy S. Nelson
On Tue, 24 Feb 2009, Brandon S. Allbery KF8NH wrote: + $* and $# have been deprecated half of forever and are gone. $[ + is a fossil that I suppose could turn into an evil pragma, if we + try to translate it at all. (Frees up * twigil for $*FOO syntax.) I'm not even sure this makes sense to

S28 update?

2009-02-24 Thread Timothy S. Nelson
Is there any chance someone could have a look at the stuff in the section labelled "Old stuff for p5/p6 comparison" of S28, and give me some info on what's going on with them? In particular, I want to know: - What's going to replace $^V / $PERL_VERSION / $] -- is it $?PERL ? - Wh

Re: S28 update?

2009-02-25 Thread Timothy S. Nelson
For those who missed it, these were answered by Larry in an update to the specs. - | Name: Tim Nelson | Because the Creator is,| | E-mail: wayl...@wayland.id.au| I am |

Re: @*INPLACE_AUTOSPLIT_FIELDS

2009-02-25 Thread Timothy S. Nelson
In answer to this, Larry put something in the spec that says that @F is replaced with @_ Now I'm happy :). - | Name: Tim Nelson | Because the Creator is,| | E-mail: wayl...@wayland.id.au| I

S28 -- more profusion of confusion on my part :)

2009-02-25 Thread Timothy S. Nelson
Hi. I wrote a variable finding program. The output is below for those interested (yes, it relies on ack), but the questions the output raises are: - Does the $?TABSTOP have a special meaning, or is it just an example like $?FOO is in so many places? - Should those @?ROUTIN

Re: r25490 - docs/Perl6/Spec

2009-02-25 Thread Timothy S. Nelson
On Thu, 26 Feb 2009, Martin D Kealey wrote: On Wed, 25 Feb 2009, Timothy S. Nelson wrote: I'm in favour of retaining the $[ functionality, but lets give it some name like $*INDEX_BEGINNING or something like that, so that it's quite long for people to type :). Surely the interpretat

Exceptions question

2009-02-25 Thread Timothy S. Nelson
S04 says: Because the contextual variable C<$!> contains all exceptions collected in the current lexical scope, saying C will throw all exceptions, whether they were handled or not. A bare C/C takes C<$!> as the default argument. Does this mean that $! is a container of some sor

Re: Exceptions question

2009-02-26 Thread Timothy S. Nelson
On Wed, 25 Feb 2009, Larry Wall wrote: On Thu, Feb 26, 2009 at 02:05:28PM +1100, Timothy S. Nelson wrote: Does this mean that $! is a container of some sort? It's an object, which (in the abstract) can contain anything it jolly well pleases. The main question beyond that is h

Re: Exceptions question

2009-02-26 Thread Timothy S. Nelson
On Thu, 26 Feb 2009, Timothy S. Nelson wrote: My suggested solution would be to change $! to an exception container object. But then we have to use it in the implicit given in the CATCH block. If we used an any() Junction, would that do what we want? Ok, Moritz told me on IRC that this

Re: Exceptions question

2009-02-26 Thread Timothy S. Nelson
On Thu, 26 Feb 2009, Daniel Ruoso wrote: Em Qui, 2009-02-26 às 08:55 -0300, Daniel Ruoso escreveu: for @! {} might provide the needed semantics... After sending this mail I've just realized I don't know exactly which are the needed semantics... what happens if you have several unthrown excep

Masak's S29 list

2009-02-26 Thread Timothy S. Nelson
Here's my comments on Carl Masak's S29 list. Note that some of the things that say that they're "now in" something still need a lot of work. # Range objects have .from, .to, .min, .max and .minmax methods Now in S32/Containers.pod # .contains on Hash and Array Where's this from? #

More S29/S32 Masak ideas

2009-02-26 Thread Timothy S. Nelson
Apologies to Carl Masak for writing his name in ASCII. # context(). Added to S29, but I still don't know where these should go. Maybe on Block? # .wrap, .unwrap and .assuming. Added to S32/Callable. # callsame, callwith, nextsame, nextwith, lastcall. Didn't know where t

Re: Masak's S29 list

2009-02-26 Thread Timothy S. Nelson
On Thu, 26 Feb 2009, David Green wrote: On 2009-Feb-26, at 7:46 pm, Timothy S. Nelson wrote: # Object has .print and .say. [...] My question is, would we be better off having the string conversion routine for arrays worry about the input/output record/field separators, rather than the IO

Re: r25573 - in docs/Perl6/Spec: . S32-setting-library

2009-02-26 Thread Timothy S. Nelson
On Fri, 27 Feb 2009, Martin D Kealey wrote: On Thu, 26 Feb 2009, pugs-comm...@feather.perl6.nl wrote: +The exceptions are: + + Signal Action R Comment + -- + ControlExceptionSigHUPTerm? Hangup detect

Re: Masak's S29 list

2009-02-27 Thread Timothy S. Nelson
On Fri, 27 Feb 2009, Moritz Lenz wrote: # Code has a .sig Seems (from what I can tell) to be synonymous with .signature, so I standardised on .signature. This leads me to another question - afaict we also have .arity on the code object, but shouldn't that be method on the .signature i

  1   2   3   >