[perl #37003] [PATCH] Change GCD and LCM opcode to use Binary GCD algorithm

2005-08-25 Thread via RT
# New Ticket Created by Imran Ghory # Please include the string: [perl #37003] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37003 > Presently GCD/LCM use the Euclidlean algorithm to calculate the GCD, the attached path r

pirate refactoring update

2005-08-25 Thread Michal Wallace
Hello! Here's an update on pirate (the python to parrot compiler) from the trenches. Pirate started as an example that fit in one small file and it stayed in that single file over the years while it grew into a *huge* mess: one monolithic object performing a variety of transformations on python'

Re: Demagicalizing pairs

2005-08-25 Thread Luke Palmer
On 8/24/05, Damian Conway <[EMAIL PROTECTED]> wrote: > Larry wrote: > > > Plus I still think it's a really bad idea to allow intermixing of > > positionals and named. We could allow named at the beginning or end > > but still keep a constraint that all positionals must occur together > > in one z

Re: Demagicalizing pairs

2005-08-25 Thread Stuart Cook
Here's a suggestion: Outside of argument lists, both a=>'b' and :a('b') (and friends) are equivalent, and denote an ordinary pair value. Within argument lists, both of them are special syntactic forms for named arguments: foo(a => 'b', :c); # both named args If you want to pass pair values i

Re: Demagicalizing pairs

2005-08-25 Thread Yuval Kogman
On Thu, Aug 25, 2005 at 20:23:55 +1000, Stuart Cook wrote: > Here's a suggestion: > Within argument lists, both of them are special syntactic forms for > named arguments: > > foo(a => 'b', :c); # both named args > my $pair = :a; > foo($pair); # not a named-arg call > ...or else find new

Re: [perl #37003] [PATCH] Change GCD and LCM opcode to use Binary GCD algorithm

2005-08-25 Thread Leopold Toetsch
the attached path replaces it with the Binary GCD algorithm. The Thanks, applied. leo

[PATCH] PIR Syntax: (end)namespace

2005-08-25 Thread Klaas-Jan Stol
hi, In the current docs of PIR, the .namespace .endnamespace directives are not mentioned. This patch adds a short description of both to syntax.pod. Regards, klaas-jan --- syntax.pod 2005-08-08 19:44:47.0 +0200 +++ syntax_patched.pod 2005-08-25 16:02:33.0 +0200 @@ -1,4 +1

Re: [PATCH] PIR Syntax: (end)namespace

2005-08-25 Thread Klaas-Jan Stol
woops, I used tabs to indent, that gives ugly layout. Here's a NEW version with spaces. regards, klaas-jan Klaas-Jan Stol wrote: hi, In the current docs of PIR, the .namespace .endnamespace directives are not mentioned. This patch adds a short description of both to syntax.pod. Regards

Re: Perl 6 code - a possible compile, link, run cycle

2005-08-25 Thread David Formosa \(aka ? the Platypus\)
On Wed, 24 Aug 2005 16:13:03 +0300, Yuval Kogman <[EMAIL PROTECTED]> wrote: [...] > perl6 creates a new instance of the perl compiler (presumably an > object). The compiler will only compile the actual file 'foo.pl', > and disregard any 'require', 'use', or 'eval' statements. use has the potenti

Re: Perl 6 code - a possible compile, link, run cycle

2005-08-25 Thread Yuval Kogman
On Thu, Aug 25, 2005 at 11:16:56 -, David Formosa (aka ? the Platypus) wrote: > On Wed, 24 Aug 2005 16:13:03 +0300, Yuval Kogman <[EMAIL PROTECTED]> wrote: > > [...] > > > perl6 creates a new instance of the perl compiler (presumably an > > object). The compiler will only compile the actual

Re: Perl 6 code - a possible compile, link, run cycle

2005-08-25 Thread David Storrs
On Aug 25, 2005, at 7:16 AM, David Formosa (aka ? the Platypus) wrote: On Wed, 24 Aug 2005 16:13:03 +0300, Yuval Kogman <[EMAIL PROTECTED]> wrote: [...] perl6 creates a new instance of the perl compiler (presumably an object). The compiler will only compile the actual file 'foo.pl', and d

Re: Perl 6 code - a possible compile, link, run cycle

2005-08-25 Thread Ingo Blechschmidt
Hi, Yuval Kogman wrote: > On Thu, Aug 25, 2005 at 11:16:56 -, David Formosa (aka ? the > Platypus) wrote: >> On Wed, 24 Aug 2005 16:13:03 +0300, Yuval Kogman >> <[EMAIL PROTECTED]> wrote: >> > perl6 creates a new instance of the perl compiler (presumably an >> > object). The compiler will only

Re: [PATCH] PIR Syntax: (end)namespace

2005-08-25 Thread jerry gay
On 8/25/05, Klaas-Jan Stol <[EMAIL PROTECTED]> wrote: > woops, I used tabs to indent, that gives ugly layout. Here's a NEW > version with spaces. > [snip] > > --- syntax.pod 2005-08-25 16:13:16.0 +0200 > +++ syntax_patched.pod 2005-08-25 16:13:59.0 +0200 > @@ -176,6 +176,29 @@ >

Re: [PATCH] PIR Syntax: (end)namespace

2005-08-25 Thread Klaas-Jan Stol
thanks, applied. in the future, please provide diffs relative to the parrot base directory, it makes it easier to find the files to patch. that is, I should do (for instance) $ diff -u imcc/docs/file.pod imcc/docs/newfile.pod > patchfile ? also, this patch brings up an interesting poi

Re: [PATCH] PIR Syntax: (end)namespace

2005-08-25 Thread jerry gay
On 8/25/05, Klaas-Jan Stol <[EMAIL PROTECTED]> wrote: > > >thanks, applied. in the future, please provide diffs relative to the > >parrot base directory, it makes it easier to find the files to patch. > > > > > that is, I should do (for instance) > > $ diff -u imcc/docs/file.pod imcc/docs/new

Re: Perl 6 code - a possible compile, link, run cycle

2005-08-25 Thread Ingo Blechschmidt
Hi, Yuval Kogman wrote: > On Thu, Aug 25, 2005 at 15:42:28 +0200, Ingo Blechschmidt wrote: >> This section will contain all information needed: >> * User-defined operators >> * Other symbols exported by "is export" >> * Exported macros > > Okay, this raises a distinction: > > Compile time export

Re: Perl 6 code - a possible compile, link, run cycle

2005-08-25 Thread Yuval Kogman
On Thu, Aug 25, 2005 at 15:42:28 +0200, Ingo Blechschmidt wrote: > This section will contain all information needed: > * User-defined operators > * Other symbols exported by "is export" > * Exported macros Okay, this raises a distinction: Compile time exports Runtime exports Modu

(r9051) leo-ctx5 test failures on win32--msvc-7.1--perl-5.8.6

2005-08-25 Thread jerry gay
Failed Test Stat Wstat Total Fail Failed List of Failed --- t\dynclass\gdbmhash.t 13 332813 13 100.00% 1-13 t\library\streams.t 2 512202 10.00% 18 20 t\op\gc.t1 256

Binding of array elements

2005-08-25 Thread Ingo Blechschmidt
Hi, with PIL-Run (Perl 6 to Perl 5 compiler) progressing rapidly, the topic "binding" came up on #perl6. "Binding is a simple symbol table manipulation, right?" "No, consider @array[$idx] := $var or more generally $sub(@args) := $var." Then we wondered what should happen to array elements

Re: Perl 6 code - a possible compile, link, run cycle

2005-08-25 Thread Luke Palmer
On 8/25/05, Yuval Kogman <[EMAIL PROTECTED]> wrote: > On Thu, Aug 25, 2005 at 11:16:56 -, David Formosa (aka ? the Platypus) > wrote: > > On Wed, 24 Aug 2005 16:13:03 +0300, Yuval Kogman <[EMAIL PROTECTED]> wrote: > > > > [...] > > > > > perl6 creates a new instance of the perl compiler (presu

Native object execution and shared libraries

2005-08-25 Thread Bogdan Calmac
The "Native Object Execution Subsystem" section of the parrot documentation provides instructions for how to generate a native executable. I was wondering if it's possible (or planned) to create native shared libraries (so, dll) and have the executable link to it dynamically. Coming from a java bac

Who is @Larry?

2005-08-25 Thread Matt Fowles
All~ I have a simple question. Who comprises @Larry? I am fairly sure that I know a few people in it, but I am highly doubtful that I know all of them. Thanks, Matt -- "Computer Science is merely the post-Turing Decline of Formal Systems Theory." -Stan Kelly-Bootle, The Devil's DP Dictionary

Re: Who is @Larry?

2005-08-25 Thread Uri Guttman
> "MF" == Matt Fowles <[EMAIL PROTECTED]> writes: MF> All~ MF> I have a simple question. Who comprises @Larry? I am fairly sure MF> that I know a few people in it, but I am highly doubtful that I know MF> all of them. if $you_have_to_ask ~~ @Larry { say 'you are not in @Larr

Re: Who is @Larry?

2005-08-25 Thread Autrijus Tang
On Thu, Aug 25, 2005 at 09:25:30PM -0400, Matt Fowles wrote: > I have a simple question. Who comprises @Larry? I am fairly sure > that I know a few people in it, but I am highly doubtful that I know > all of them. dev.perl.org has a "Who's Who" list: http://dev.perl.org/perl6/people.html T