Announce: Niecza Perl 6 v24

2012-11-26 Thread Stefan O'Rear
Announce: Niecza Perl 6 v24 This is release number 24 of Niecza Perl 6, marking 24 months since the first public release. How time flies. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable for use with Mono or

Re: Rewrite of S21

2012-11-23 Thread Stefan O'Rear
On Fri, Nov 23, 2012 at 03:24:00PM +0100, Arne Skjærholt wrote: Hi all. I have rewritten S21 so that Zavolaj/NativeCall is spec. S21 as of right now is probably the most thorough documentation of the current state of NativeCall. Most of the basic functionality is fairly stable I think, and

Announce: Niecza Perl 6 v22

2012-09-25 Thread Stefan O'Rear
Announce: Niecza Perl 6 v22 This is the twenty-second release of Niecza Perl 6, scheduled on the last Monday of the month. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable for use with Mono or Microsoft .NET. If you

Re: perl6 spec tests results ?

2012-09-11 Thread Stefan O'Rear
On Fri, Aug 31, 2012 at 09:38:43AM -0700, Carey Tilden wrote: On Tue, Aug 28, 2012 at 2:01 PM, Moritz Lenz mor...@faui2k3.org wrote: I've tried to come up with some sort of stability rating for the specs, and this is as far as I got: https://gist.github.com/2346494 I like that a lot. Any

Re: [perl #114634] over-eager multi dispatcher optimization

2012-08-28 Thread Stefan O'Rear
On Tue, Aug 28, 2012 at 09:15:41AM -0400, yary wrote: I'm a little confused by this report. The two code snippets are exactly the same- I checked with diff. Does the same code have different results with different runs, or is there a copy/paste error? Also is the space between the brackets in

Re: perl6 spec tests results ?

2012-08-28 Thread Stefan O'Rear
On Tue, Aug 28, 2012 at 10:09:35PM +0200, Marc Chantreux wrote: hello, i'm writing an article on Perl6 and i would like some facts to reassure early adopters. according to the test suite and the will of Perl6 implentors, what proportion (in %) of Perl6 can be concidered as stable? what are

ANNOUNCE: Niecza Perl 6 v21

2012-08-27 Thread Stefan O'Rear
Announce: Niecza Perl 6 v21 This is the twenty-first release of Niecza Perl 6, scheduled on the last Monday of the month. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable for use with Mono or Microsoft .NET. If you

Announce: Niecza Perl 6 v20

2012-08-01 Thread Stefan O'Rear
Announce: Niecza Perl 6 v20 This is the twentieth release of Niecza Perl 6, where I pretend I'm on the UTC-36 timezone and thank Solomon Foster for the first release where he did all the real work. non-bootstrap has run into a dead end; I need to regroup and decide the next direction. You

Re: Rakudo compilation failure

2012-06-27 Thread Stefan O'Rear
On Wed, Jun 27, 2012 at 11:12:19PM +0300, Gabor Szabo wrote: I have a freshly cloned rakudo and tried to build it on an Ubuntu 12.04 (32 bit) it failed here. The machine has 512Mb RAM and 256 Mb swaps space and it seems they were both full. Is that it or they are unrelated? How much is the

Announce: Niecza Perl 6 v19

2012-06-26 Thread Stefan O'Rear
Announce: Niecza Perl 6 v19 This is the nineteenth release of Niecza Perl 6, as usual scheduled on the last Monday of the month. Most of the activity this month has been on the non-bootstrap branch (see below). It has now been two years since the first commit to the Niecza repository.

Announce: Niecza Perl 6 v18

2012-05-28 Thread Stefan O'Rear
Announce: Niecza Perl 6 v18 This is the eighteenth release of Niecza Perl 6, as usual scheduled on the last Monday of the month. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable for use with Mono or Microsoft .NET.

Re: Is rindex broken or does my brain need a reboot?

2012-05-08 Thread Stefan O'Rear
On Tue, May 08, 2012 at 05:19:40AM +0200, Frederik Schwarzer wrote: Hi, I had a little problem with rindex and wrote a small demo code that shows what I found. The code is: use v6; my $string = perl; say $string; say $string.WHAT; say $string.index(e); say $string.rindex(e); say ;

Announce: Niecza Perl 6 v16

2012-03-27 Thread Stefan O'Rear
Announce: Niecza Perl 6 v16 This is the sixteenth release of Niecza Perl 6, as usual scheduled on the last Monday of the month. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable for use with Mono or Microsoft .NET.

Re: How to make a new operator.

2012-03-24 Thread Stefan O'Rear
On Sat, Mar 24, 2012 at 06:16:58PM -0700, Jonathan Lang wrote: IMHO: if we're going to take loss of precision into account, we should do so explicitly. I'm a bit rusty, so forgive me if I misuse the terminology: if a number has an epsilon, the epsilon should be attached to it as a trait so

Re: N-dimensional arrays and compiler support

2012-03-22 Thread Stefan O'Rear
On Thu, Mar 22, 2012 at 11:14:54PM +0100, Daniel Carrera wrote: Hey, I have a few slightly related questions: 1. The semicolon operator would allow Perl 6 to support N-dimensional arrays... How would one iterate over that type of array? my num @matrix[ 10 ; 10 ; 10 ]; I ask because a

Announce: Niecza Perl 6 v15

2012-02-27 Thread Stefan O'Rear
Announce: Niecza Perl 6 v15 This is the fifteenth release of Niecza Perl 6, as usual scheduled on the last Monday of the month. No, it's not dead. Niecza now passes more spectests than Rakudo, but that is not an entirely fair comparison, and we have the feature matrix now which is much

Re: Announce: Niecza Perl 6 v14

2012-02-04 Thread Stefan O'Rear
On Tue, Jan 31, 2012 at 12:15:17AM -0800, Darren Duncan wrote: You said, provided said call does not throw an exception. So does that mean you have also promoted some runtime exceptions to compile time exceptions, or inlined the exception toss? That would be useful. You don't have to wait

Announce: Niecza Perl 6 v14

2012-01-30 Thread Stefan O'Rear
Announce: Niecza Perl 6 v14 This is the fourteenth release of Niecza Perl 6, as usual scheduled on the last Monday of the month. I'm on winter break now, which means lots of time for improvements. Muahahaha. This month hasn't seen much of a focus. With this release, Niecza now passes a

Announce: Niecza Perl 6 v13

2011-12-26 Thread Stefan O'Rear
that it is O(n)). The regex infix operators and are now supported (currently treated as synonyms, but don't rely on this). pow is a little bit smarter and needlessly returns NaN in fewer cases (Solomon Foster, Stefan O'Rear). Imported a few tweaks from STD, including a better message for say

Re: Operator precedence fiddling

2011-12-23 Thread Stefan O'Rear
On Fri, Dec 23, 2011 at 10:59:58PM +1100, Kris Shannon wrote: sub infix:foo ($a, $b = ($a foo 2 * 3 - $a)) is tighter(infix:*) { $a == 0 ?? 1 foo 2 * 3 !! $a + $b } say 1 foo (2 * 3); # 7 say (1 foo 2) * 3; # 9 say 1 foo 2 * 3; # 9 say infix:foo(1); # Niecza: 7 say 0 foo

Re: [perl #105186] cannot use self() to invoke a callable invocant

2011-12-02 Thread Stefan O'Rear
On Fri, Dec 02, 2011 at 02:57:31AM -0800, Moritz Lenz wrote: 11:26 moritz nom: use MONKEY_TYPING; augment class Sub { method my_invoke { self() } }; join.my_invoke 11:26 +p6eval nom b9aa5b: OUTPUT«===SORRY!===␤CHECK FAILED:␤Undefined routine 'self' called

Announce: Niecza Perl 6 v12

2011-11-28 Thread Stefan O'Rear
Announce: Niecza Perl 6 v12 This is the twelth release of Niecza Perl 6, as usual scheduled on the last Monday of the month. I've not had very much time for Niecza this month. This release marks one year since the first public release, and about a year and a half since the project began.

Announce: Niecza Perl 6 v11

2011-10-31 Thread Stefan O'Rear
Announce: Niecza Perl 6 v11 This is the eleventh release of Niecza Perl 6, as usual scheduled on the last Monday of the month, at least in the US west coast time zone. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable

Announce: Niecza Perl 6 v10

2011-09-26 Thread Stefan O'Rear
Announce: Niecza Perl 6 v10 This is the tenth release of Niecza Perl 6, as usual scheduled on the last Monday of the month. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable for use with Mono or Microsoft .NET. If

Re: More bugs or PEBKAC

2011-09-05 Thread Stefan O'Rear
On Mon, Sep 05, 2011 at 11:03:08AM -0400, aroc...@vex.net wrote: 1. Should there be a way to make die behave like the Perl 5 version, reporting the place of death unless the message is terminated by \n ? The \n no longer suppresses the location indormation. I can't find a definition either way

Announce: Niecza Perl 6 v9

2011-08-29 Thread Stefan O'Rear
Announce: Niecza Perl 6 v9 This is the ninth release of Niecza Perl 6, as usual scheduled on the last Monday of the month. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable for use with Mono. If you wish to follow

Re: Encapsulating the contents of container types

2011-08-20 Thread Stefan O'Rear
On Thu, Aug 18, 2011 at 04:06:47PM +0200, Carl Mäsak wrote: I was working on the Little Animal Farm game yesterday, and wanted to make it totally safe against tampering from the outside. (See http://masak.org/carl/yapc-eu-2011-little-animal-farm/talk.pdf.) I ended up implementing a custom

Announce: Niecza Perl 6 v8

2011-07-26 Thread Stefan O'Rear
Announce: Niecza Perl 6 v8 This is the eighth release of Niecza Perl 6, as usual scheduled on the last Monday of the month. No major general updates; having courted alternatives I feel satisfied with the name Niecza again. You can obtain a build of Niecza from [1]. This build contains a

eval and try should be separate

2011-06-29 Thread Stefan O'Rear
I intend to change the definition of eval such that it does not catch exceptions. String eval's role as the catcher of exceptions is a legacy of Perl 1, which had no block eval, and I feel it has no place in Perl 6. The exception catching and associated unwinding makes it impossible to use

Announce: Niecza Perl 6 v7

2011-06-27 Thread Stefan O'Rear
Announce: Niecza Perl 6 v7 This is the seventh release of Niecza Perl 6, as usual scheduled on the last Monday of the month. I am pleased to note that Niecza is starting to attract attention from the broader community. However, this probably means a better name is needed; Niecza was OK as

Announce: Niecza Perl 6 v6

2011-05-30 Thread Stefan O'Rear
Announce: Niecza Perl 6 v6 My summer has started. That is to say, hacking season. Many new and exciting things are in this release, and I want to see many more. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable for

Re: Bug or brain-fade?

2011-05-16 Thread Stefan O'Rear
On Mon, May 16, 2011 at 03:45:08PM -0400, Parrot Raiser wrote: The following piece of trivial code, (drastically simplified from an example I was trying to convert), produces different results (3rd line) under Perl 5 and Perl 6. (Saved as t_f_int2) print sqrt (1.5 * 1) ; print \n;

Re: eval should throw an exception on compile error

2011-05-07 Thread Stefan O'Rear
On Sat, May 07, 2011 at 03:45:02PM +1000, Michael G Schwern wrote: I was just playing around with eval, trying to figure out if you can define an operator overload at runtime (seems you can't, good) and noticed this in the spec... [1] Returns whatever $code returns, or fails. How does

Announce: Niecza Perl 6 v5

2011-05-05 Thread Stefan O'Rear
Announce: Niecza Perl 6 v5 This release of Niecza is delayed slightly because of my personal business. For the same reason there isn't as much cool new stuff as I'd like. Sorry. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll

Announce: Niecza Perl 6 v4

2011-03-28 Thread Stefan O'Rear
Announce: Niecza Perl 6 v4 Niecza tag announcements occur on the last Monday of each month, irrespective of the rate of development. You can obtain a build of Niecza from [1]. This build contains a working compiler as a set of .exe and .dll files suitable for use with Mono or Microsoft

Enumerating prefix operators, and spec changes

2011-03-09 Thread Stefan O'Rear
[In response to a comment on perl6-compiler, in the thread [perl #85746] spec/S29-context/sleep.t is way too relax] On Wed, Mar 09, 2011 at 12:31:34PM -0600, Patrick R. Michaud wrote: While researching this ticket, I notice that S29 has a Csleep function defined (line 246); this seems to be in

Announce: Niecza v3

2011-03-03 Thread Stefan O'Rear
[Sorry about the delay. I mistyped the addresses the first time, and the goodfornothing local mailer took 5 * 10^8 ms to bounce the mail.] Announce: Niecza Perl 6 v3 This is the third announcement of a distinguished Niecza version, and we seem to be settling into a routine here. *Yay* On

Announce: Niecza v2

2011-01-31 Thread Stefan O'Rear
Announce: Niecza Perl 6 v2 This is the second announcement of a distinguished Niecza version, and the first to be regularly scheduled. Niecza tag announcements occur on the last Monday of each month. You can obtain a build of Niecza from [1]. This build contains a working compiler as a

Announce: Niecza v1

2010-12-27 Thread Stefan O'Rear
Announce: Niecza Perl 6 v1 To mark one month since the first announcement of Niecza, to be known retroactively as v0, this is another announcement, to be known as v1. Further announcements will occur at intervals on the last Monday of each month. You have my assurance that the 'v1' tag,

Re: [perl #80540] User-defined .ACCEPTS is not called if smart-matching against $_

2010-12-10 Thread Stefan O'Rear
I'm pretty sure this is correct. ~~ is supposed to temporarily set $_ to the LHS; this is how $obj ~~ .defined works.

Announce: Niecza Perl 6

2010-11-29 Thread Stefan O'Rear
Announce: Niecza Perl 6 I am happy to make the first general announcement of Niecza Perl 6[1], a Perl 6 compiler project focusing on optimization research. I have been tinkering with this for about 6 months now and I feel I finally have something worth sharing. While other Perl 6 compilers

Re: Unable to build Rakudo - make fails on perl6-grammar.pir with 'Killed'

2010-11-19 Thread Stefan O'Rear
On Fri, Nov 19, 2010 at 09:45:26AM +0100, Moritz Lenz wrote: Hi, thanks for your report Am 19.11.2010 09:24, schrieb Ian Kent: I've been trying to build Rakudo from source using Ubuntu Server 10.10. Configure.pl ran successfully but running make always ends with the following error:

Re: Packed arrays and assignment vs binding

2010-11-13 Thread Stefan O'Rear
On Sat, Nov 13, 2010 at 06:09:00PM +0100, Jonathan Worthington wrote: ... With packed arrays, however, I'm less clear what they mean. Since the point of a packed array is compact storage, there's no chance to actually have containers. Thus does assignment to a slot in a compact array ever make

Re: IO Multiplexing

2010-11-13 Thread Stefan O'Rear
On Fri, Nov 12, 2010 at 06:59:59PM -0800, Ben Goldberg wrote: (snip plea to paint the bikeshed fuchsia) The design of the I/O system will be chosen by the first person to implement it. If you want any say in the matter, you need to be that person. Bonus points if you also port at least one app

Re: IO Multiplexing

2010-11-12 Thread Stefan O'Rear
On Thu, Nov 11, 2010 at 05:47:46PM -0800, Ben Goldberg wrote: I would like to know, is perl6 going to have something like select (with arguments created by fileno/vec), or something like IO::Select (with which the user doesn't need to know about the implementation, which happens to be done

Re: Ruby Fibers (was: threads?)

2010-10-15 Thread Stefan O'Rear
On Fri, Oct 15, 2010 at 01:42:06PM +0200, Leon Timmermans wrote: On Wed, Oct 13, 2010 at 1:20 AM, Tim Bunce tim.bu...@pobox.com wrote: I've not used them, but Ruby 1.9 Fibers (continuations) and the EventMachine Reactor pattern seem interesting. Continuations and fibers are incredibly

Re: rakudo star performance

2010-08-01 Thread Stefan O'Rear
On Sun, Aug 01, 2010 at 12:04:55PM -0400, Ben Bowers wrote: I've also noticed that 64 bit linux binaries for rakudo builds are ~2x the size of the 32 bit builds, FWIW. That shouldn't suprise anyone. The perl6 fakecutable (don't call it a binary, please) consists of several million Parrot

Re: Breaking encapsulation by detaching a private-variable-accessing method from one object and calling it on another

2010-07-31 Thread Stefan O'Rear
On Sat, Jul 31, 2010 at 08:23:29PM +0200, Carl Mäsak wrote: * It has been decided that attribute slots of the type $!foo are only allowed *syntactically* within the class block that declares them. (The exception to this, I guess, is the 'trusts' directive.) But this means that something like

Re: Breaking encapsulation by detaching a private-variable-accessing method from one object and calling it on another

2010-07-31 Thread Stefan O'Rear
On Sat, Jul 31, 2010 at 02:36:02PM -0400, Brandon S Allbery KF8NH wrote: On 7/31/10 14:23 , Carl Mäsak wrote: a. Allow this form of encapsulation breakage. b. Disallow detaching of certain methods. c. Disallow attaching of certain anonymous methods. I must confess I don't particularly

Re: Learning to Grok Rakudo Perl6/Grammar.pm (was: unexpected failure with trailing white space in use)

2010-07-12 Thread Stefan O'Rear
On Mon, Jul 12, 2010 at 09:26:15PM -0400, Todd Olson wrote: Question: Can Rakudo show its steps in applying the Perl6 grammer to a Perl6 program similar to use re 'debug' in Perl5? perl6 --parsetrace -sorear signature.asc Description: Digital signature

Re: Question about @_ for a sub given no arguments

2010-06-29 Thread Stefan O'Rear
On Tue, Jun 29, 2010 at 04:02:19PM -0700, Jonathan Leto wrote: Howdy, I have a question about @_[0] for a sub that defines no arguments. In the current Rakudo I get: $ parrot ./perl6.pbc my $r = sub { say @_[0].WHAT }; $r.() Proxy() whereas Pugs calls it a Scalar. Which is correct?

Re: Announce: Rakudo Perl 6 development release #30 (Kiev)

2010-06-17 Thread Stefan O'Rear
On Thu, Jun 17, 2010 at 04:55:38PM -0700, Darren Duncan wrote: So, is Rakudo Star meant to be a parallel release series, sort of like Perl 5.12.x vs 5.13.x are now, or are the monthly Rakudo releases we've been seeing going to be named Star at some point? I thought I read recently that

Re: Reversible grammars

2010-06-04 Thread Stefan O'Rear
On Sat, Jun 05, 2010 at 09:19:01AM +1000, Timothy S. Nelson wrote: Hi. I've been thinking more about reversible grammars. Specifically, I'm wondering if the following pseudo-code will be possible: ## Match a grammar here $match = Grammar.match($text) ## Need some code here to get

Re: r31082 -[S32/Str] rethinking of tab characters

2010-06-03 Thread Stefan O'Rear
On Thu, Jun 03, 2010 at 03:52:02PM +0200, pugs-comm...@feather.perl6.nl wrote: Author: masak Date: 2010-06-03 15:52:01 +0200 (Thu, 03 Jun 2010) New Revision: 31082 Modified: docs/Perl6/Spec/S32-setting-library/Str.pod Log: [S32/Str] rethinking of tab characters Also added a

Re: r31082 -[S32/Str] rethinking of tab characters

2010-06-03 Thread Stefan O'Rear
On Thu, Jun 03, 2010 at 07:00:17PM +0200, Carl Mäsak wrote: sorear (): 2. Indenting a blank line results in a blank line, not a line with only   whitespace. What about indenting a line with only whitespace? Implementor's choice; it won't come up in the viv port. I think I can see use

Re: [perl #75030] [PATCH] Lexical persistence autoprinting for the REPL

2010-05-11 Thread Stefan O'Rear
On Tue, May 11, 2010 at 08:25:47AM -0700, Patrick R. Michaud via RT wrote: 1. I don't like that it modifies the parameters of !UNIT_START. I see three alternatives - clone UNIT_START (DRY), inline UNIT_START in the PAST (DRY), and unify !RESUME_HERE with !YOU_ARE_HERE (makes modules run in the

Re: optional rules cluttering parse trees

2010-04-27 Thread Stefan O'Rear
On Tue, Apr 27, 2010 at 06:31:01AM +0200, Stéphane Payrard wrote: When doing an analyse of a sample parse tree, I note that it is cluttered by the reduction of optional subrules to generate a zero length parse subtree. That is, rules with a '?' quantifier matching zero time. Suppressing such

Methodicals: A better way to monkey type

2010-04-21 Thread Stefan O'Rear
(The following describes a proposed extension to Perl 6, methodical scoped operators or methodicals for short. It is written in the present tense for simplicity but should be understood as the future conditional.) Normally, when you write a method call, the definition of the method is entirely

Re: Methodicals: A better way to monkey type

2010-04-21 Thread Stefan O'Rear
On Wed, Apr 21, 2010 at 12:35:11PM -0300, Daniel Ruoso wrote: Em Qua, 2010-04-21 às 00:16 -0700, Stefan O'Rear escreveu: Normally, when you write a method call, the definition of the method is entirely in the domain of the receiver's class: $object.make-me-a-sandwich; # $object gets