Re: Type::Class::Haskell does Role

2005-07-15 Thread Autrijus Tang
On Sat, Jul 16, 2005 at 12:24:21AM +0300, Yuval Kogman wrote: > > There is a new generic comparison operator known as ~~. > > ~~ is just Eq, there is also Ord Hmm, <~ and ~> for generic comparators? ;) > and Show That is already prefix ~ for that. > and a multitude of other things, which are m

Re: Is namespace qualification really required

2005-07-15 Thread Autrijus Tang
On Fri, Jul 15, 2005 at 02:16:48PM -0500, [EMAIL PROTECTED] wrote: > package MyModule; > > use v6; > sub doubler( Num $x ) { >return 2 * $x; > } > > sub value_v( Code +$func = &MyModule::doubler ) is export { >return $func( 5 ); > } > > This works. But I think I should be able to say: >

Re: GMC for dummies

2005-07-15 Thread Nattfodd
Nattfodd wrote: >It's here : >http://perso.ens-lyon.fr/alexandre.buisse/divers/gmc_for_dummies.pod >A more complete document is http://perso.ens-lyon.fr/divers/gmc_design.pod > > Sorry, the second URL is actually http://perso.ens-lyon.fr/alexandre.buisse/divers/gmc_design.pod

Re: [PATCH] Pass all of spawnw.t on Win32/MSVC++

2005-07-15 Thread Jonathan Worthington
"jerry gay" <[EMAIL PROTECTED]> wrote: Any input on why we have the tests right shift by 8 bits what spwanw gives them back would be helpful. If its that the exit code on a UNIXy platform is in the upper byte, then surely it's better to right shift it in the platform specific stuff (in platfor

GMC for dummies

2005-07-15 Thread Nattfodd
Hi, I've produced a new document on GMC (Generational Mark & Compact), the GC I'm trying to implement as a Summer of Code project. It's called gmc for dummies and I hope it's plainly understandable (if not, tell me so and I'll try to make it better). It should explain how things will hopefully work

Re: [perl #36567] t/perl/Parrot_Docs.t doesn't clean up properly.

2005-07-15 Thread chromatic
On Fri, 2005-07-15 at 08:27 -0700, Andy Dougherty wrote: > After running 'make test', Parrot leaves the following files lying around > in /tmp. I think there's from t/perl/Parrot_Docs.t. > There are two problems: > 1. Parrot should clean up after itself. > 2. Parrot should probably pic

Re: Perl 6 Modules

2005-07-15 Thread Nathan Gray
On Fri, Jul 15, 2005 at 09:54:57PM +0800, Gav wrote: > Being a relative newcomer to all that is Perl 6, can someone tell me what > differences > I need to know in order to write/amend Perl 6 extension Modules as opposed > to > Perl 5 versions ? A good starting place is: http://svn.openfou

[perl #36567] t/perl/Parrot_Docs.t doesn't clean up properly.

2005-07-15 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #36567] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=36567 > After running 'make test', Parrot leaves the following files lying around in /tmp. I

Re: WTF? - Re: method calls on $self

2005-07-15 Thread Graham Barr
On Thu, July 14, 2005 10:47 am, Autrijus Tang said: > If this were a straw poll, I'd say... > > 1. Meaning of $_ > > .method should mean $_.method always. Making it into a runtime > error is extremely awkward; a compile-time error with detailed > explanataion is acceptable but suboptim

STM semantics, the Transactional role

2005-07-15 Thread Yuval Kogman
Hey! Welcome back our show, gay camels[1] in denial! On todays show, those who can't shut up won't, and will send you another email! Today's issues cover STM, and just that. Perl6 should have some kind of atomic { ... } going on, AFAIK. W

Re: Optimization pipeline

2005-07-15 Thread Yuval Kogman
On Thu, Jul 14, 2005 at 18:06:24 -0700, Dave Whipp wrote: > Yuval Kogman wrote: > > > - optimizers stack on top of each other > > - the output of each one is executable > > - optimizers work in a coroutine, and are preemptable > > - optimizers are small > > - optimizers operate

Re: Type::Class::Haskell does Role

2005-07-15 Thread Yuval Kogman
On Fri, Jul 15, 2005 at 10:01:43 +0800, Autrijus Tang wrote: > On Fri, Jul 15, 2005 at 02:38:22AM +0300, Yuval Kogman wrote: > > As I see it == is the generic comparison, and 'eq' is == with > > coercing parameters (in Haskell it'd be > > eq :: (Show a) => a -> a -> Bool or so... Isn't that lovely?

Re: WTF? - Re: method calls on $self

2005-07-15 Thread Paul Seamons
I'd have to agree. I also think that .foo should always mean $_.foo in methods, without causing any errors if $?SELF =:= $_ becomes false. OK. There is a lot of historical threads on the subject and already a lot of "legacy" in the Perl6 language. OK - As I understand it, this is what A12 say

Is namespace qualification really required

2005-07-15 Thread philcrow
I've been playing with pugs a little bit. I like it a lot. I'm especially interested in passing parameters to subs and giving them defaults. While trying to Curry in the default of a Code reference parameter, I ran into the following oddity (it seems odd to me). It looks like I must fully qu

Re: [PATCH] Pass all of spawnw.t on Win32/MSVC++

2005-07-15 Thread jerry gay
On 7/15/05, Jonathan Worthington <[EMAIL PROTECTED]> wrote: > Hi, > > This patch implements a missing function in config\gen\win32\exec.c to make > all of the tests in t\op\spawnw.t work. > excellent! > Any input on why we have the tests right shift by 8 bits what spwanw gives > them back would

Perl 6 Modules

2005-07-15 Thread Gav....
Hi All, Being a relative newcomer to all that is Perl 6, can someone tell me what differences I need to know in order to write/amend Perl 6 extension Modules as opposed to Perl 5 versions ? I have downloaded PXPerl for Windows (which seems a bit broken to me atm) and wanted to start writing so

[PATCH] Pass all of spawnw.t on Win32/MSVC++

2005-07-15 Thread Jonathan Worthington
Hi, This patch implements a missing function in config\gen\win32\exec.c to make all of the tests in t\op\spawnw.t work. Any input on why we have the tests right shift by 8 bits what spwanw gives them back would be helpful. If its that the exit code on a UNIXy platform is in the upper byte, t

Re: partcl accelerator

2005-07-15 Thread Leopold Toetsch
Patrick R. Michaud wrote: On Wed, Jul 13, 2005 at 12:29:29AM -0400, Will Coleda wrote: Ah, there we go. partcl is back down to about 4.5 times slower. Running a trace, I see the top two opcodes are: Code J Name Calls Total/s Avg/ms 177 - compile_p_p_s

Re: Pugs 6.2.8 installbin, installscript, installsitelib problems

2005-07-15 Thread Autrijus Tang
On Thu, Jul 14, 2005 at 11:53:02AM -0700, Hill, Ronald wrote: > I just finished running a nmake and wanted to check the version of the > exe file that was generated and found this. > C:\Perl6\site\lib > . > Notice some of the directories listed here. they are pointing to my > Perl5 directory struct

Re: Devel::Cover Problem: testing || for a default value.

2005-07-15 Thread Smylers
Michael G Schwern writes: > On Tue, Jul 12, 2005 at 07:45:35AM +, Smylers wrote: > > > A good way of putting assumptions into code is with (Michael's > > excellent) Carp::Assert: > > > > assert $p || $q, 'Either $p or $q must be supplied' if DEBUG; > > > While I get where you're going, I

Re: creating threas in BEGIN

2005-07-15 Thread Elizabeth Mattijsen
At 4:32 PM +0100 7/14/05, Nicholas Clark wrote: This is more a "note to collective 'self'" question than one I expect the answer to right now. (The answer I expect right now is a glib "it will") How will the perl6 compiler cope with people creating threads inside BEGIN blocks? Whatever the docs

Pugs 6.2.8 installbin, installscript, installsitelib problems

2005-07-15 Thread Ron Hill
Hello, I just finished running a nmake and wanted to check the version of the exe file that was generated and found this. D:\Perl6-Pugs-6.2.8>dir *.exe Volume in drive D is LOCAL Volume Serial Number is E47E-AC64 Directory of D:\Perl6-Pugs-6.2.8 07/14/2005 11:14 AM 8,791,942 pugs.ex

Re: standard asynchronous deferred-to-result syntax RFP

2005-07-15 Thread Matt Sergeant
On 14 Jul 2005, at 13:16, David Nicol wrote: I have uploaded asynchronous::universal::ready and asynchronous::universal::set_callback to CPAN. They are both entirely trivial packages with a mess of documentation. The idea behind them is to support asynchonous frameworks in which the immediate

Re: partcl accelerator

2005-07-15 Thread Patrick R. Michaud
On Wed, Jul 13, 2005 at 12:29:29AM -0400, Will Coleda wrote: > Ah, there we go. partcl is back down to about 4.5 times slower. > Running a trace, I see the top two opcodes are: > > Code J Name Calls Total/s Avg/ms > 177 - compile_p_p_s20.

Pugs 6.2.8 installbin, installscript, installsitelib problems

2005-07-15 Thread Hill, Ronald
Hello, I just finished running a nmake and wanted to check the version of the exe file that was generated and found this. D:\Perl6-Pugs-6.2.8>dir *.exe Volume in drive D is LOCAL Volume Serial Number is E47E-AC64 Directory of D:\Perl6-Pugs-6.2.8 07/14/2005 11:14 AM 8,791,942 pugs.ex

Re: Mobilizing PM groups for parrot..

2005-07-15 Thread Allison Randal
On Jul 14, 2005, at 12:51, Will Coleda wrote: http://dev.perl.org/perl6/people.html Perhaps we need a similar page on parrotcode. =-) Seems unnecessary to maintain it in two locations, but you could link to that one from parrotcode.org. Ok. Does parrot/perl6 have a project planning tool?