[PATCH] Shared libraries on MacOS

2006-01-04 Thread Nick Glencross
Thanks to everyone, particularly rafl, for getting shared libraries in. I hope that it hasn't been too painful, and that we get support for most platforms. Here's a patch which provides initial support for Darwin. I've only just got a Mac, so am learning as I go along (e.g. http://fink.sourceforge

[PATCH] Three pushaction bugs

2006-01-04 Thread Bob Rogers
This patch fixes two find_exception_handler bugs, and identifies a third, all related to executing pushaction subs: 1. It is necessary to wait until after popping the action before calling it, lest the signalling of another error during action execution causes you to lose, and lose, and los

Re: Junctions again (was Re: binding arguments)

2006-01-04 Thread Jonathan Lang
Luke Palmer wrote: > Of course, this was introduced for a reason: > > sub min($x,$y) { > $x <= $y ?? $x !! $y > } > sub min2($x, $y) { > if $x <= $y { return $x } > if $x > $y { return $y } > } > > In the presence of junctions, these two functions are not equ

Re: Table of Perl 6 "Types"

2006-01-04 Thread Dave Whipp
Larry Wall wrote: : - : Num : : Base Numeric type : Int : : : Float : : : Complex : : This bothers me. The reason we put in Num in the first pla

A quick(doubtfully simple) namespace question

2006-01-04 Thread Joshua Isom
The PIR syntax.pod file says that nested namespaces can be used by separating namespaces with a semicolon, ala nested array/hash structures. But the common writing convention seems to be along the lines of perl5 packages with a double colon to separate. After looking at the "find_global Foo::

Re: S3 vs. S4: parallel lists

2006-01-04 Thread Larry Wall
On Tue, Jan 03, 2006 at 11:58:38PM -0800, Jonathan Lang wrote: : I think there might be a discrepency between S3 and S4. You are correct--S4 was out of date. Thanks. Larry

Re: Junctions again (was Re: binding arguments)

2006-01-04 Thread TSa
HaloO, Luke Palmer wrote: But junctions are so "special", that this abstraction wouldn't work. Well my point is that I dought that it is tractible for the compiler to come up with the dwimmery to pull the invocation of .values on the return value out of toomany and leave the cardinality check

Re: Another prerequisit issue?

2006-01-04 Thread jerry gay
On 1/4/06, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > t/run/optionsok 2/10Can't locate object method > "new" via package "File::Temp" at t/run/options.t line 78. > # Looks like you planned 10 tests but only ran 2. > # Looks like your test died just after 2. > t/run/options

Re: Junctions again (was Re: binding arguments)

2006-01-04 Thread TSa
HaloO, Rob Kinyon wrote: I'm confused at the confusion. To me, junctions are just magical values, not magical scalars. In theory, one should be able to create junctions of arrays, hashes, or subs just as easily. my @junc = any( @a, @b, @c ); my %junc = any( %a, %b, %c ); Hmm, and this

Re: Junctions again (was Re: binding arguments)

2006-01-04 Thread Luke Palmer
On 1/4/06, Rob Kinyon <[EMAIL PROTECTED]> wrote: > Luke Palmer wrote: > > The point was that you should know when you're passing a named > > argument, always. Objects that behave specially when passed to a > > function prevent the ability to abstract uniformly using functions.[1] > > ... > > [1] T

Another prerequisit issue?

2006-01-04 Thread Leopold Toetsch
t/run/optionsok 2/10Can't locate object method "new" via package "File::Temp" at t/run/options.t line 78. # Looks like you planned 10 tests but only ran 2. # Looks like your test died just after 2. t/run/optionsdubious Test returned status 2

Re: Junctions again (was Re: binding arguments)

2006-01-04 Thread Rob Kinyon
On 1/2/06, TSa <[EMAIL PROTECTED]> wrote: > HaloO, > > Luke Palmer wrote: > > The point was that you should know when you're passing a named > > argument, always. Objects that behave specially when passed to a > > function prevent the ability to abstract uniformly using functions.[1] > > ... > > [

Re: Table of Perl 6 "Types"

2006-01-04 Thread Larry Wall
On Tue, Jan 03, 2006 at 07:34:41PM -0500, Stevan Little wrote: : Hello again, : : Chip pointed out to me that my post was severely mangaled because it : was too wide, so I have reformatted to fit within 70 columns, hope : this works better. : : NOTE: I realize that this format may be entirely

Re: choice of signatures

2006-01-04 Thread Miroslav Silovic
[EMAIL PROTECTED] wrote: Jonathan Lang wrote: Instead of multi sub *infix:<~>(ArabicStr $s1, ArabicStr $s2) {...} multi sub *infix:<~>(Str $s1, ArabicStr $s2) {...} multi sub *infix:<~>(ArabicStr $s1, Str $s2) {...} as S13 say multi sub infix:<+> (Us $us, Them $them) is c

Re: [perl #38141] [PATCH] CFLAGS missed two files in src/ reorganization

2006-01-04 Thread Leopold Toetsch
jerry gay wrote: i'd like reports from a third compiler/arch to know how it should behave... enabled by default, or disabled. so far, we have: gcc - disabled It's not that easy and depends on a lot of factors (available mem is a major issue). Then there are some brpken gcc versions around. An

Re: [perl #38141] [PATCH] CFLAGS missed two files in src/ reorganization

2006-01-04 Thread jerry gay
On 1/4/06, Andy Dougherty <[EMAIL PROTECTED]> wrote: > And, just to be clear, that's building with > Configure.pl --optimize=??? > (that is, exactly what optimization flags did you use?) > configure.pl --optimize (which means i used perl's optimize flags: -MD -Zi -DNDEBUG -O1) ~jerry

Re: choice of signatures

2006-01-04 Thread Fayland Lam
Jonathan Lang wrote: Instead of multi sub *infix:<~>(ArabicStr $s1, ArabicStr $s2) {...} multi sub *infix:<~>(Str $s1, ArabicStr $s2) {...} multi sub *infix:<~>(ArabicStr $s1, Str $s2) {...} as S13 say multi sub infix:<+> (Us $us, Them $them) is commutative { myadd($us,$them

Re: [perl #38141] [PATCH] CFLAGS missed two files in src/ reorganization

2006-01-04 Thread Andy Dougherty
On Wed, 4 Jan 2006, jerry gay via RT wrote: > On 1/4/06, Andy Dougherty <[EMAIL PROTECTED]> wrote: > > On Wed, 4 Jan 2006, Joshua Hoblitt via RT wrote: > > > I'm wondering if it's worth disabling optimizations for > > > those compilation units if nobody noticed a problem in the period

Re: [perl #38141] [PATCH] CFLAGS missed two files in src/ reorganization

2006-01-04 Thread jerry gay
On 1/4/06, Andy Dougherty <[EMAIL PROTECTED]> wrote: > On Wed, 4 Jan 2006, Joshua Hoblitt via RT wrote: > > I'm wondering if it's worth disabling optimizations for > > those compilation units if nobody noticed a problem in the period > > between the tree reorganization and the breakage

Re: [perl #38141] [PATCH] CFLAGS missed two files in src/ reorganization

2006-01-04 Thread Andy Dougherty
On Wed, 4 Jan 2006, Joshua Hoblitt via RT wrote: > Andy, > > Were you caught by either "takes too long" or "Overwhelms some > compilers."? Well, it hadn't quite overwhelmed the compiler yet -- it was swapping like mad for at least 20 minutes and still growing, and several other processes (incl

Event sub-system implementation

2006-01-04 Thread Klaas-Jan Stol
Hi, As you know, I'm currently busy writing a paper on the architecture of Parrot, and during my attempt to describe the exception sub-system, something came to mind. I'm not sure if the event system is fully operational (I thought it was already implemented), but I do know the plan was to che

Re: Event system implementation

2006-01-04 Thread Leopold Toetsch
Klaas-Jan Stol wrote: Hi, As you know, I'm currently busy writing a paper on the architecture of Parrot, and during my attempt to describe the exception sub-system, something came to mind. I'm not sure if the event system is fully operational (I thought it was already implemented),... The im

Re: Junctions again (was Re: binding arguments)

2006-01-04 Thread TSa
HaloO, Luke Palmer wrote: Junctions are frightfully more abstract than that. They only take on meaning when you evaluate them in boolean context. Before that, they represent only a potential to become a boolean test. This is very well spoken err written---except that I would use beautifully

Event system implementation

2006-01-04 Thread Klaas-Jan Stol
Hi, As you know, I'm currently busy writing a paper on the architecture of Parrot, and during my attempt to describe the exception sub-system, something came to mind. I'm not sure if the event system is fully operational (I thought it was already implemented), but I do know the plan was to che

Context and coercion.

2006-01-04 Thread Audrey Tang (autrijus)
(More brain dump.) "Context" is implemented as type coercion calls, implicitly inserted by the compiler. There are five types used in these calls. The "..." below denote the positions where these contexts typically occur, using common Perl 5 operations as examples: Void # ...;

choice of signatures

2006-01-04 Thread Jonathan Lang
Instead of multi sub *infix:<~>(ArabicStr $s1, ArabicStr $s2) {...} multi sub *infix:<~>(Str $s1, ArabicStr $s2) {...} multi sub *infix:<~>(ArabicStr $s1, Str $s2) {...} could you say multi sub *infix:<~>(ArabicStr $s1, ArabicStr | Str $s2) | (Str $s1, ArabicStr $s2) {...} or so

Re: [perl #38141] [PATCH] CFLAGS missed two files in src/ reorganization

2006-01-04 Thread Joshua Hoblitt
Andy, Were you caught by either "takes too long" or "Overwhelms some compilers."? I'm wondering if it's worth disabling optimizations for those compilation units if nobody noticed a problem in the period between the tree reorganization and the breakage of --optimize. Cheers, -J -- On Tue, Jan