Re: Open and pipe

2005-05-02 Thread Larry Wall
On Mon, May 02, 2005 at 03:53:42PM -0700, Larry Wall wrote: : On Tue, May 03, 2005 at 12:32:58AM +0200, Juerd wrote: : : How about : : : : &open ::= &File::open : : &URI::open : : &Sys::Pipe::open : : : : And put the other aliases in the module that CGI.pm-:standard-ishly : : pollutes

Re: Open and pipe

2005-05-02 Thread Larry Wall
On Mon, May 02, 2005 at 10:51:57PM -0400, Uri Guttman wrote: : > "LW" == Larry Wall <[EMAIL PROTECTED]> writes: : : LW> multi sub opensocket ( : LW> Str +$mode = 'rw', : LW> Str +$encoding = 'auto', : LW> Str [EMAIL PROTECTED]) retur

Re: [Patch] Win32 thread primitives

2005-05-02 Thread Vladimir Lipsky
threads_4 is testing killing threads. This is achieved by scheduling a terminate event to the running interpreter. This can only succeed, if the event system is running too. see src/events.c/Parrot_new_terinate_event() Though thr_windows.h doesn't contain error checking for now, it luckily fails

Re: Open and pipe

2005-05-02 Thread Uri Guttman
> "MF" == Matt Fowles <[EMAIL PROTECTED]> writes: MF> Currying obviates the need for everything but a sub callback. If you MF> want a callback to a method, curry the object. If you want private MF> data, curry the data. After you are done currying you will have a MF> simple sub to p

Re: Open and pipe

2005-05-02 Thread Matt Fowles
All~ On 5/3/05, Uri Guttman <[EMAIL PROTECTED]> wrote: > > "MF" == Matt Fowles <[EMAIL PROTECTED]> writes: > > MF> All~ > MF> On 5/2/05, Uri Guttman <[EMAIL PROTECTED]> wrote: > >> > "LW" == Larry Wall <[EMAIL PROTECTED]> writes: > >> > LW> multi sub opensocket ( > LW> Str +$m

Re: Junctions of classes, roles, etc.

2005-05-02 Thread Luke Palmer
David Storrs writes: > On Mon, May 02, 2005 at 06:49:10PM +0200, Thomas Sandlaà wrote: > > David Storrs wrote: > > >class Tree { > > > method bark() { die "Cannot instantiate a Tree--it is abstract!" } > > >} > > >class Birch { > > > method bark() { return "White, papery" } > > >} > > >

Re: Junctions of classes, roles, etc.

2005-05-02 Thread David Storrs
On Mon, May 02, 2005 at 06:49:10PM +0200, Thomas Sandlaß wrote: > David Storrs wrote: > >Let's move this away from simple types like Str and Int for a moment. > > If you consider them simple... When compared to "arbitrary-class-that-was-defined-by- arbitrary-programmer-of-

Re: Open and pipe

2005-05-02 Thread Uri Guttman
> "MF" == Matt Fowles <[EMAIL PROTECTED]> writes: MF> All~ MF> On 5/2/05, Uri Guttman <[EMAIL PROTECTED]> wrote: >> > "LW" == Larry Wall <[EMAIL PROTECTED]> writes: >> LW> multi sub opensocket ( LW> Str +$mode = 'rw', LW> Str +$encoding = 'auto', LW> Str [EMAIL PROTECTED])

Re: Open and pipe

2005-05-02 Thread Matt Fowles
All~ On 5/2/05, Uri Guttman <[EMAIL PROTECTED]> wrote: > > "LW" == Larry Wall <[EMAIL PROTECTED]> writes: > > LW> multi sub opensocket ( > LW> Str +$mode = 'rw', > LW> Str +$encoding = 'auto', > LW> Str [EMAIL PROTECTED]) retu

Re: Open and pipe

2005-05-02 Thread Uri Guttman
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> multi sub opensocket ( LW> Str +$mode = 'rw', LW> Str +$encoding = 'auto', LW> Str [EMAIL PROTECTED]) returns IO; and how will that support async (non-blocking) connects? or

Re: LABELS: block

2005-05-02 Thread Larry Wall
On Tue, Apr 26, 2005 at 11:24:34AM -0600, Luke Palmer wrote: : That's true, but the former hasn't been accepted. That's not something : I considered when I was thinking about that proposal, but I think it's : a fairly minor issue. We'll ignore labels as we continue to weigh that : proposal, and r

Re: Code classes

2005-05-02 Thread Larry Wall
On Mon, May 02, 2005 at 11:29:49PM +0300, wolverian wrote: : On Mon, May 02, 2005 at 06:22:03PM +0200, Ingo Blechschmidt wrote: : > &.foo# method of $?SELF : > .foo# method of $?SELF : >$_.foo# method of $_ : : We could also define them as: : : &.foo # method on $?S

Re: Code classes

2005-05-02 Thread wolverian
On Mon, May 02, 2005 at 06:22:03PM +0200, Ingo Blechschmidt wrote: > &.foo# method of $?SELF > .foo# method of $?SELF >$_.foo# method of $_ We could also define them as: &.foo # method on $?SELF .foo# method on $_ $_.foo # method on $_ The .foo syntax

Re: Open and pipe

2005-05-02 Thread Larry Wall
On Tue, May 03, 2005 at 12:32:58AM +0200, Juerd wrote: : Larry Wall skribis 2005-05-02 14:23 (-0700): : > multi sub open ( : > multi sub openuri ( : > multi sub openpipe ( : > multi sub openshell ( : : Starting to look a lot like PHP there. And I care about that because PHP is

Re: S04 -- closure traits clarification

2005-05-02 Thread Larry Wall
On Mon, May 02, 2005 at 03:20:03PM -0700, Larry Wall wrote: : Probably does something like: : : &?BLOCK does First; # no-op if it already does First : &?BLOCK.firstlist.push(&block); Probably shouldn't use up a normal name like "First" for that. Maybe we can just reuse the trait name as

Re: Open and pipe

2005-05-02 Thread Juerd
Larry Wall skribis 2005-05-02 14:23 (-0700): > multi sub open ( > multi sub openuri ( > multi sub openpipe ( > multi sub openshell ( Starting to look a lot like PHP there. How about &open ::= &File::open &URI::open &Sys::Pipe::open And put the other aliases in th

Re: S04 -- closure traits clarification

2005-05-02 Thread Larry Wall
On Fri, Apr 29, 2005 at 10:57:01AM -0500, David Christensen wrote: : 1) What type of introspection, if any, are we providing to the language : level? I.e., are we providing something along the lines of : : %traits = &?BLOCK.traits : : where %traits is keyed on trait name (FIRST, LAST, whate

Re: Formal Parameters To While Block

2005-05-02 Thread Larry Wall
On Sat, Apr 30, 2005 at 08:24:14PM -0600, Luke Palmer wrote: : Yeah, "is lazy" should be fine for now. The feature is definitely : there, but it might end up being called something different. "is : braceless"? I think "is braceless" is better, if only because it's longer. Though I still suspect

Re: Open and pipe

2005-05-02 Thread Larry Wall
On Mon, May 02, 2005 at 02:23:36PM -0700, Larry Wall wrote: : : [1] Should this be "Perl(..5) style"? : : I think that'd be "Perl-{1..5} style", as it currently stands, and : assuming you want to use the "use" syntax. Also, we haven't specced Er, make that Perl-(1..5) instead. One week in Russi

Re: Open and pipe

2005-05-02 Thread Larry Wall
On Mon, May 02, 2005 at 10:25:08PM +0300, Gaal Yahas wrote: : Here's a basic proposal for the open and pipe builtins. It was discussed : on #perl6 today and seemed okay to the people there. I'd like to hear : your comments, since the internals side of much of this is ready and is : looking for an i

Re: Open and pipe

2005-05-02 Thread Mark Reed
On 2005-05-02 16:35, "Juerd" <[EMAIL PROTECTED]> wrote: > What are the characters around the code supposed to be, by the way? Your > mailer tells my mailer that you're sending iso-8859-1, but I seriously > doubt that. > Argh. Bad Entourage, no biscuit. Back to Mail as soon as I get Tiger inst

Re: Open and pipe

2005-05-02 Thread Juerd
Mark Reed skribis 2005-05-02 16:13 (-0400): > Holy matter of opinion, Batman. Œ<Œ and Œ>¹ are much easier to tell apart > than Œr¹ and Œw¹; Obviously we disagree. What are the characters around the code supposed to be, by the way? Your mailer tells my mailer that you're sending iso-8859-1, but I

Re: Open and pipe

2005-05-02 Thread Mark Reed
I take some of that back ­ actually, left-to-right directionality has almost nothing to do with understanding the < and > symbols. The arrow points in the direction information is flowing, which is left-to-right for > but right-to-left for <. I mean, ³>filename² is pointing at the file, so the i

Re: Open and pipe

2005-05-02 Thread Mark Reed
On 2005-05-02 15:52, "Juerd" <[EMAIL PROTECTED]> wrote: > Gaal Yahas skribis 2005-05-02 22:25 (+0300): >> > open 'ls', '|-'; # or even >> > open 'ls', :pipe => 'from' > > I dislike the hard-to-tell-apart symbols '<' and '>' for modes. 'r' and > 'w' are much easier, and get r

Re: Formal Parameters To While Block

2005-05-02 Thread Larry Wall
On Sat, Apr 30, 2005 at 10:06:32AM -0600, Luke Palmer wrote: : Aaron Sherman writes: : > On Tue, 2005-04-26 at 09:37 -0600, Luke Palmer wrote: : > : > > We're thinking at the moment that `while` will probably look like this: : > > : > > sub statement: (&cond is lazy, &block) { : > [...] : >

Re: Open and pipe

2005-05-02 Thread Juerd
Gaal Yahas skribis 2005-05-02 22:25 (+0300): > open 'ls', '|-'; # or even > open 'ls', :pipe => 'from' I dislike the hard-to-tell-apart symbols '<' and '>' for modes. 'r' and 'w' are much easier, and get rid of the awful left/right "mnemonic" that fails to make sense to GUI u

Open and pipe

2005-05-02 Thread Gaal Yahas
Here's a basic proposal for the open and pipe builtins. It was discussed on #perl6 today and seemed okay to the people there. I'd like to hear your comments, since the internals side of much of this is ready and is looking for an interface. module Prelude-0.0.1; class IO;

Re: Junctions of classes, roles, etc.

2005-05-02 Thread Abhijit Mahabal
On Mon, 2 May 2005, [ISO-8859-1] Thomas Sandlaß wrote: David Storrs wrote: Tell me what this does: class Tree { method bark() { die "Cannot instantiate a Tree--it is abstract!" } } class Birch { method bark() { return "White, papery" } } class Oak { method bark() { return "Da

Re: Junctions of classes, roles, etc.

2005-05-02 Thread Thomas Sandlaß
David Storrs wrote: Let's move this away from simple types like Str and Int for a moment. If you consider them simple... Tell me what this does: class Tree { method bark() { die "Cannot instantiate a Tree--it is abstract!" } } class Birch { method bark() { return "White, papery" } }

Re: Code classes

2005-05-02 Thread Ingo Blechschmidt
Hi, Thomas Sandlaà wrote: > the main reason for this mail: aliasing $_ in methods to the first > invocant would badly mix these two concepts! I think so, too. I'd like to see: $.foo# attribute of $?SELF @.foo# ditto %.foo# ditto &.foo# method of $?SELF .foo

Code classes

2005-05-02 Thread Thomas Sandlaß
HaloO, I don't know if this is usefull and if it is were this information should be put. I've reworked the Code class chart from A06 to look as follows: invocant(s) : Code _ :__ ___|___ | |: | | SubMethod Method : SubBlock

Re: [RELEASE] Pugs 6.2.2 released!

2005-05-02 Thread Autrijus Tang
On Mon, May 02, 2005 at 01:44:43PM -0400, vadim wrote: > > You can download Pugs from a nearby CPAN mirror, or from pugscode.org: > > > > http://pugscode.org/dist/Perl6-Pugs-6.2.2.tar.gz > > How can I figure out which patchlevel it corresponds to? Well, you can grep the svn log for "6.2.2".

deprecation? fast_call PIR snytax

2005-05-02 Thread Leopold Toetsch
I'd like to deprecate the usage of these fast_call PIR constructs PIR/fast_call # opcode call _label # bsr _label .param reg # restore reg .result reg# restore reg .arg var # save var .return var# save var These are used with Parrot calling

Re: Pugs on Cygwin

2005-05-02 Thread Gaal Yahas
On Mon, May 02, 2005 at 09:06:42AM -0400, Rob Kinyon wrote: > I'm willing to do any testing needed to get and keep a Cygwin port > happy. If this is something the group wants to pursue, I'll post my > cygghc. Pugs builds on Cygwin as of 6.2.2 (or svn r2460). pugscc needs some cygpath love and if y

Re: parrot and refcounting semantics

2005-05-02 Thread Dan Sugalski
At 8:59 AM +0100 5/1/05, sphillips wrote: I have been enjoying the recent discussion of GC vs refcounting. Thanks. While you're rehashing/justifying sensible design decisions made years ago ;-) I was wondering why you decided to roll-your-own GC rather than use an established one e.g. Hans Boehm

Re: subtype declarations

2005-05-02 Thread Steven Philip Schubiger
On 2 May, Luke Palmer wrote: : S12 says: : : subtype Str_not2b of Str where /^[isnt|arent|amnot|aint]$/; : : My brain parses this as: : : subtype Str_not2b[Str where /.../]; : : Or: : : subtype Str_not2b[Str] where /.../; : : Neither of which really reflect how it is really pars

Re: subtype declarations

2005-05-02 Thread Thomas Sandlaß
Luke Palmer wrote: S12 says: subtype Str_not2b of Str where /^[isnt|arent|amnot|aint]$/; My brain parses this as: subtype Str_not2b[Str where /.../]; Or: subtype Str_not2b[Str] where /.../; I guess my mental parsing problems stem from the fact that it was you who told me about the equiv

Pugs on Cygwin

2005-05-02 Thread Rob Kinyon
I noticed that Makefile.PL has deny_cygwin() very early on in the process. As I hate developing in native Win32, I've been trying to make this problem go away. Please correct me if I'm wrong, but the only problem with Pugs on Cygwin is the pathing requirements that GHC has, all of which are fixabl

Re: [Patch] Win32 thread primitives

2005-05-02 Thread Leopold Toetsch
Vladimir Lipsky wrote: This patch defines Win32 thread primitives. Great. ...Actually it consists of the following files: threads.h.diff thr_windows.h.diff threads.t.diff timer.t.diff Small nitpick - please provide just one patch file - applying is much simpler then, or less work ;) The patch

Re: t/op/n_arithmetics.t

2005-05-02 Thread Leopold Toetsch
Bob Rogers wrote: From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Sun, 1 May 2005 11:18:47 +0200 Bob Rogers <[EMAIL PROTECTED]> wrote: > I have started writing a t/op/n_arithmetics.t test, based directly on > t/op/arithmetics.t. Great, thanks. No problem. See attached. Thanks, a

[Patch] Win32 thread primitives

2005-05-02 Thread Vladimir Lipsky
This patch defines Win32 thread primitives. Actually it consists of the following files: threads.h.diff thr_windows.h.diff threads.t.diff timer.t.diff The patch had been applied, I mananged to pass all the tests from t/pmc/thread.reast and t/pmc/timer.t but thread_4.pasm(don't know yet why it f

subtype declarations

2005-05-02 Thread Luke Palmer
S12 says: subtype Str_not2b of Str where /^[isnt|arent|amnot|aint]$/; My brain parses this as: subtype Str_not2b[Str where /.../]; Or: subtype Str_not2b[Str] where /.../; Neither of which really reflect how it is really parsed. It looks like `subtype` has a special syntax. I fin

Re: [RELEASE] Pugs 6.2.2 released!

2005-05-02 Thread vadim
> You can download Pugs from a nearby CPAN mirror, or from pugscode.org: > > http://pugscode.org/dist/Perl6-Pugs-6.2.2.tar.gz How can I figure out which patchlevel it corresponds to? 'pugs -v' for intermediate versions shows it (like 2616) but not CPAN version. Thanks!

Re: PMC flags

2005-05-02 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > Parrot gives each PMC class 8 private flag bits. I was wondering how to use > these most efficiently for ponie. My thoughts so far are > 1 bit for SVf_IOK > 1 bit for SVf_NOK > 1 bit for SVf_POK > 1 bit for SVf_ROK I'd not mess around with (or introduce

[SVN ci] MMD 39 - builtin MMDs as methods

2005-05-02 Thread Leopold Toetsch
This snippet: .local pmc cl, l, r, d cl = subclass "Integer", "AInt" l = new "AInt" r = new "AInt" d = l."__add"(r)# d = n_add l, r now works as expected. These infix methods always return a new destination PMC so that the function signature matches an HLLs signature for infix operat