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
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
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
> "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
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
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" }
> > >}
> > >
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-
> "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])
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
> "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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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) {
: > [...]
: >
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
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;
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
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" }
}
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
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
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".
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
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
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
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
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
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
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
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
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
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
> 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!
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
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
45 matches
Mail list logo