Re: A natural opportunity for Raku?

2022-02-12 Thread Matthew Stuckwisch
Yes, absolutely. There were some early examples with Tony O'Dell's inline SQL module. It doesn't actually check the syntax, and just passes off everything between 'sql' and ';'. You can see it at . I'm sure it could be updated today to check off some

Re: about binary protocol porting

2021-12-29 Thread Matthew Stuckwisch
The SNES compiler write ups reminded me I need to get back into creating a made-for-binary regex system. Once I get done with some other projects I'm knee deep in, I'll sit down to really get a feel for RakuAST and then it'll be all go from there (and of course, as always, I welcome comments/fe

Re: Date.new("2024-02-29").later( :1year)

2021-12-13 Thread Matthew Stuckwisch
I don't think there is a standard. But the same will happen with .later(:1month) on a month with 31 days where the day is 31, or a DateTime with a leapsecond advancing by a unit larger than a second. It minimizes the changes in nominal units. On Mon, Dec 13, 2021, 05:23 rir wrote: > > REPL says:

Re: Why does .new initialize?

2021-07-19 Thread Matthew Stuckwisch
In general, the idea of initialized doesn't mean a lot in Raku, at least not at the language level. At any given time, any variable has a value. By default, if you've typed a variable, it's initially set to the type itself (Any is the default type, so the default default value). The only exception

Re: searching for a blog

2021-07-18 Thread Matthew Stuckwisch
I think it was Daniel Sockwell (codesections) that played around with it. See the blog entry at and the associated Pod::Literate module at . There's also my Test::Inline (I know I

Re: Buf to Str

2021-06-09 Thread Matthew Stuckwisch
Another way to do this could be to just create your own method. my method decode-c(Blob:) { self.subbuf(^self.first(0,:kv)[0]).decode } my $string-with-zero = Buf.new: 72, 101, 108, 108, 111, 0, 32, 119, 111, 114, 108, 100, 33; say $string-with-zero.decode; say $string-with-zero.&decode-c; The o

Re: locations relative to script location

2021-03-30 Thread Matthew Stuckwisch
Using $*PROGRAM.parent for the directory of the current script is what I've always used, and it works well. Note that if you do .add('../../../'), you may need to also call .resolve at some point, but I generally just use .parent several times. (I think at worst case I've only ever gone up two

Re: Module Documentation

2021-03-15 Thread Matthew Stuckwisch
So here's my 2¢, which will probably be followed up with some actual development of stuff (I do put my money where my mouth is… although it might take me a while to save up to spend it ha). Some of the minor details could, of course, easily be adjusted, so don't fixate too much on them. Right

Re: 'CALL-ME' Math problem?

2021-03-02 Thread Matthew Stuckwisch
But why do that when you can add a CALL-ME to the number classes that does multiplication? 😇 Int.^add_fallback( {$^i.defined && $^m eq 'CALL-ME'}, -> $, $ { * * * } ); say 5(4); # 20 On Tue, Mar 2, 2021, 09:08 Daniel Sockwell wrote: > Kevin Pye wrote: > > Just because mathematics al

Re: dimensions in a multidimensional array

2021-02-05 Thread Matthew Stuckwisch
I think he meant doing something like this (with fuller handling for out of bounds, exceptions throwing, slices, etc): role Shaped[*@dimensions] { has @!multipliers = @dimensions.reverse.produce(&[*])[0..*-2].reverse.Slip, 1; method AT-POS(*@indices where all @dimensions Z>

Re: \n and array question

2020-11-14 Thread Matthew Stuckwisch
The <…> and «…» constructors break on whitespace. So will actually produce the following array: ["a,b,c,d,e,f"] It's only one item. If we placed space after the comma, that is, , you'd get a six item list, but with the commas attached to all but the final: ["a,", "b,", "c,", "d,", "e,

Re: "ICU - International Components for Unicode"

2020-09-29 Thread Matthew Stuckwisch
In #raku it was mentioned that it would be nice to have a $*UNICODE variable of sorts that reports back the version, but not sure how that would be from an implementation POV. I'm also late to the discussion, so pardon me jumping back a bit. Basically, ICU is something that lets you quickly ad

Re: lines :$nl-in question

2020-08-31 Thread Stuckwisch, Matthew
So I guess I got included on this as the resident language professor :-) (although I probably should subscribe to p6 users at some point) I didn't see the whole thread in the e-mail I got copied in on, so apologizes if I repeat much. I'll spare everyone all the linguistic details, but suffice

[perl #116423] [BUG] say 1.0000000000000000000000000000001 makes wrong denominator

2016-04-07 Thread Matthew Wilson via RT
13:56 < diakopter> m: say 1.001 # Rat fail? 13:56 <+camelia> rakudo-moar 61d231: OUTPUT«1.3641037050347531␤» 13:57 < psch> m: say 1.001.WHAT 13:57 <+camelia> rakudo-moar 61d231: OUTPUT«(Rat)␤» 13:57 < psch> m: say 1.000

[perl #115566] [BUG] Variables declared in quasi blocks don't work in Rakudo

2016-04-07 Thread Matthew Wilson via RT
new behavior: 13:48 m: use experimental :macros; macro foo { quasi { my $a = "OH HAI"; say $a } }; foo 13:48 rakudo-moar 61d231: OUTPUT«===SORRY!===␤Optimizer: No lexical $a found␤»

[perl #114672] [BUG] LTA error message: wrong class reported in non-existent attribute error in Rakudo

2016-04-07 Thread Matthew Wilson via RT
Moar still segfaults: 13:35 m: class A {}; class B is A { has $!x = 5; our method foo(A:) { say $!x } }; &B::foo(A.new) 13:36 rakudo-moar 61d231: OUTPUT«(signal SEGV)»

[perl #114554] [BUG] Definition of zero-length postfix operator wrongly allowed in Rakudo

2016-04-07 Thread Matthew Wilson via RT
new behavior: 13:30 m: sub postfix:{}($a) { say "$a bracey brace" }; 42{} 13:30 rakudo-moar 61d231: OUTPUT«===SORRY!===␤Internal error: find_var_decl could not find $_␤»

[perl #109586] .pick on a large range needs more entropy

2016-04-07 Thread Matthew Wilson via RT
12:52 < diakopter> m: say (^2**64).pick.fmt('%64b') 12:52 <+camelia> rakudo-moar 61d231: OUTPUT« 111001010001011100011101000␤» 12:52 < diakopter> m: say (^2**64).pick.fmt('%64b') 12:52 <+camelia> rakudo-moar 61d231: OUTPUT«010001

[perl #81974] [BUG] LTA error message when something isn't a number in a sequence operator in Rakudo

2016-04-07 Thread Matthew Wilson via RT
resolved 12:27 m: (0, {last if $^a==$^b; (1..5).pick} ... *).perl.say 12:27 rakudo-moar 61d231: OUTPUT«Cannot .elems a lazy list␤ in block at /tmp/s8pj85e1Wc line 1␤␤Actually thrown at:␤ in block at /tmp/s8pj85e1Wc line 1␤␤»

[perl #79294] [BUG] $*PERL should be version of Perl, not version of Rakudo in Rakudo

2016-04-07 Thread Matthew Wilson via RT
resolved 12:25 m: say $*PERL 12:25 rakudo-moar 61d231: OUTPUT«Perl 6 (6.c)␤»

[perl #78278] [BUG] The optional $_ seems to default to $CALLER::_, not $OUTER::_ in Rakudo

2016-04-07 Thread Matthew Wilson via RT
new behavior: 12:18 m: my $b; { my $_ = 5; $b = { .say } }; $_ = 42; $b() 12:18 rakudo-moar 61d231: OUTPUT«Potential difficulties:␤ Redeclaration of symbol $_␤at /tmp/7gI9FhwrCH:1␤--> my $b; { my $_⏏ = 5; $b = { .say } }; $_ = 42; $b()␤42␤»

[perl #78870] [BUG] Wrapping a detached method breaks method deferral in Rakudo

2016-04-07 Thread Matthew Wilson via RT
new behavior: 12:16 rakudo: class A { method foo { say "A" } }; class B is A { method foo { say "B"; nextsame } }; my &x = B.WALK(:name)[0]; &x.wrap: { say "wrap"; nextsame }; x(B.new) 12:16 rakudo-moar 61d231: OUTPUT«wrap␤B␤Attempt to ret

[perl #81136] Capture reference doesn't work in lookahead assertions

2016-04-07 Thread Matthew Wilson via RT
seems fixed to me 12:12 m: grammar test { token a { a }; token b { b }; token TOP { > };}; test.parse("abc").say 12:12 rakudo-moar 61d231: OUTPUT«Nil␤»

[perl #78276] [BUG] Null PMC access when calling a multi sub with a parameter narrowed by a subtype that does a regex match in Rakudo

2016-04-07 Thread Matthew Wilson via RT
The original code works now 12:09 m: subset Greeting of Str where { /:i ^oh \s+ \w+ '!'?$/ }; subset LolGreeting of Str where { .words[1].lc eq 'hai' }; multi detect(Str) { "not a greeting" }; multi detect(Greeting) { "regular greeting" };

Rakudo Star 2013.12 Released!

2013-12-25 Thread Matthew
# Announce: Rakudo Star Release 2013.12 ## A useful, usable, "early adopter" distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the December 2013 release of "Rakudo Star", a useful and usable distribution of Perl 6. The tarball for the December 2013

Fwd: [Boston.pm] Tech Meeting Tuesday

2013-12-06 Thread Matthew Wilson
FYI -- Forwarded message -- From: "Bill Ricker" Date: Dec 6, 2013 6:25 PM Subject: [Boston.pm] Tech Meeting Tuesday To: "Boston Perl Mongers" , "Boston Perl Mongers (announce)" Cc: Tuesday December 10, 2013 E51-376 Tim King - Benchmarking Perl6 vs Perl5 * Perl 6's suitability fo

Re: [perl #120480] recursion_limit bad assumption

2013-11-14 Thread Matthew Wilson
"Even though we don't have a recursion limit for other backends, I can greatly imagine there would be some utility to adding one at some point in the future." +1 On Thu, Nov 14, 2013 at 6:34 AM, Patrick R. Michaud wrote: > On Thu, Nov 14, 2013 at 06:13:39AM -0800, Will Coleda via RT wrote: > >

Re: Licensing: Perl 6 specification and test suite

2013-11-05 Thread Matthew Wilson
frettled, Right, it's just the AL2 requires you to thoroughly rename the project's main name(s) if you redistribute a modified version.. -Matthew On Tue, Nov 5, 2013 at 7:21 AM, Jan Ingvoldstad wrote: > On Tue, Nov 5, 2013 at 3:36 PM, Moritz Lenz wrote: > >> I have

Announce: Rakudo Star 2013.10 Released!

2013-10-29 Thread Matthew
## A useful, usable, "early adopter" distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the October 2013 release of "Rakudo Star", a useful and usable distribution of Perl 6. The tarball for the October 2013 release is available from

Re: NQP JVM prototype faster than Perl 5

2013-02-02 Thread Matthew Wilson
Did you mean to use $z in the say output of the nqp and perl versions of the microbenchmark, or did you mean to run it twice? On Sat, Feb 2, 2013 at 10:43 AM, Nicholas Clark wrote: > This is surprising, interesting and pleasing... > > There's some example NQP code to time calculating Fibonacci

Re: NQP JVM prototype faster than Perl 5

2013-02-02 Thread Matthew Wilson
nk you. -- Darren Duncan > > > On 2013.02.02 4:29 PM, Matthew Wilson wrote: > >> QAST is the protocol rakudo and NQP use to send abstract syntax trees to >> the VM-specific compiler. PIRT is the target for parrot, and JAST is the >> target for nqp-jvm. You can view it

Re: NQP JVM prototype faster than Perl 5

2013-02-02 Thread Matthew Wilson
while parsing NQP code. On Sat, Feb 2, 2013 at 4:26 PM, Matthew Wilson wrote: > I'm sorry; I was just filling out what the last letter in the acronym QAST > is. Search for QAST instead. > > > On Sat, Feb 2, 2013 at 4:21 PM, yary wrote: > >> This doesn't happen

Re: NQP JVM prototype faster than Perl 5

2013-02-02 Thread Matthew Wilson
I'm sorry; I was just filling out what the last letter in the acronym QAST is. Search for QAST instead. On Sat, Feb 2, 2013 at 4:21 PM, yary wrote: > This doesn't happen very often. Google tells me > > Your search - *QASTree nqp* - did not match any documents. > > where does one read more abou

Re: NQP JVM prototype faster than Perl 5

2013-02-02 Thread Matthew Wilson
absolutely, though to be precise you'll want to compile to QASTrees in the NQP environment (not to NQP code itself). On Sat, Feb 2, 2013 at 2:32 PM, Darren Duncan wrote: > So here's a question ... > > Is it now, or should it soon be, reasonable to treat NQP as its own entity > that is a build ta

[perl #74622] GatherIterator.perl flattens output sometimes.

2012-05-30 Thread Matthew Wilson via RT
different behavior for the first one: 13:34 < diakopter> r: say ((1,2) X ).perl 13:34 <+p6eval> rakudo e2d876: OUTPUT«((ListIter.new(),), (ListIter.new(),), (ListIter.new(),), (ListIter.new(),)).list␤»

Re: STDOUT = WWW

2011-07-08 Thread Matthew Walton
On 8 July 2011 12:28, Rajeev Prasad wrote: > will apps made for one distribution of Rakudo work with another? Yes, provided that the versions of Rakudo used are sufficiently compatible (one might have newer features that you used that another one hasn't updated to include yet, for example), and t

Re: threads?

2010-10-12 Thread Matthew Walton
Damian, I use threads in C++ a lot in my day to day job. We use an in-house library which isn't much more than a thread class which you inherit from and give a Run method to, and a load of locks of various (sometimes ill-defined) kinds. Let me say: it's not good. Threads with semaphores and mutexe

Pragma to change presentation of numbers in Perl 6.

2010-09-01 Thread Matthew
Today I propose a pragma that changes how numbers are presented in Perl 6. The idea arises from a discussion on the freenode channel #perl6, available here: http://irclog.perlgeek.de/perl6/2010-09-01#i_2773432 The most important thing to remember is that the presentation of numbers in Perl 6 i

[announce] Rakudo Perl 6 release #32 "Pisa"

2010-08-19 Thread Matthew Walton
On behalf of the Rakudo development team, I'm happy to announce the August 2010 release of Rakudo Perl #32 "Pisa". Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine (see ). The tarball for the August 2010 release is available from

Re: Ideas for a "Object-Belongs-to-Thread" threading model

2010-05-12 Thread Matthew Wilson
On Wed, May 12, 2010 at 8:57 PM, Alex Elsayed wrote: > Forgot to send this to the list. > > -- Forwarded message -- > From: Alex Elsayed ... > It's also CPS based, which fits pretty well. > Here's another, one that might fit more readily with perlesque/CLR: Actors that Unify T

Re: Proposal for a new Temporal time-measurement paradigm

2010-04-21 Thread Matthew
I whole-heartedly agree that we need to make a system independent of any sort of time measurement system. I think the conclusion reached on IRC was that most of the world uses or is at least familiar with the Gregorian system. Now, I can't help but think how we would define an Instant. The bes

Re: Documentaion Details (was: underscores vs hyphens)

2010-04-12 Thread Matthew Walton
On Mon, Apr 12, 2010 at 8:04 PM, Shawn H Corey wrote: > Matthew Walton wrote: >> >> On Mon, Apr 12, 2010 at 1:22 PM, Shawn H Corey >> wrote: >>> >>> So, I'll ask again:  Where in the official documentation does it state >>> that >>

Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-12 Thread Matthew Walton
On Mon, Apr 12, 2010 at 1:22 PM, Shawn H Corey wrote: > Darren Duncan wrote: >> >> See http://perlcabal.org/syn/S02.html#Names for your answers. > > Thanks for the link but nowhere in it does it state tha Perl 6 names are > case sensitive.  The best the do is this, which implies it is but doesn't

Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-11 Thread Matthew
I can't help but agree with Damian. I don't see much of a point in making a distinction between - and _. More specifically, if a user were to define a function (say, i-hate-camel-case()), it would not be good to let them be the same. Readability would suffer when examining someone's code and y

Re: perl6 compiler

2010-03-19 Thread Matthew Wilson
read of this: >>> >>> <http://www.parrot.org/> <http://www.parrot.org/>http://www.parrot.org/ >>> >>> The parrot project is to build a virtual machine for dynamic languages, >>> like perl 6. >>> >>> On Wed, Mar 17, 2010 at 1

Re: perl6 compiler

2010-03-16 Thread Matthew Walton
Rakudo in its normal operation will compile the program, then run it immediately. You can, however, get it to save the compiled code for later use i fyou wish. On Sun, Mar 14, 2010 at 4:09 PM, dell wrote: > Hello, > >            I had just began looking at the perl6 raduko compiler and have a > q

Re: Functional-style pattern matching

2010-03-09 Thread Matthew Walton
I think the closest things we've got to pattern matching come from a combination of multiple dispatch, where clauses and signature unpacking. I don't know much about the latter, but a where clause can discriminate multiple dispatch variants based on parameter values rather than just the type, so yo

Re: One-pass parsing and forward type references

2010-02-01 Thread Matthew Wilson
On Mon, Feb 1, 2010 at 9:32 AM, Larry Wall wrote: > But I also think that type recursion is likelier to indicate a design > error than function recursion, so I'm not sure how far down this road > we want to go.  We could, for instance, create a new type name every I was going to say "I use self-r

Re: Counting characters

2010-01-27 Thread Matthew Walton
On Wed, Jan 27, 2010 at 1:19 PM, Carl Mäsak wrote: > Mark (>), Carl (>>): >>> S05 describes tr/// in terms of the .trans function, a handsome but >>> very different beast. Specifically, it doesn't seem to have a "scalar >>> context", with which one could count things. >> >> What does trans return

Re: error installing Perl6

2009-11-12 Thread Matthew Walton
On Thu, Nov 12, 2009 at 2:30 PM, Richard Hainsworth wrote: > Can't exec "svn": No such file or directory at build/gen_parrot.pl line 47. You need to install Subversion in order to allow the build script to obtain Parrot.

Re: unusual invocants

2009-10-20 Thread Matthew Walton
On Tue, Oct 20, 2009 at 5:35 PM, David Green wrote: > I would expect "$foo where {$_ ~~ X}" and "X $foo" simply to be different > ways of writing the same thing, but whatever works! Yes, but the where clause lets you test against multiple types at once. They don't participate in multiple dispatch

Re: unusual invocants

2009-10-20 Thread Matthew Walton
erl6 thinks where clauses on invocants are allowed, but Rakudo currently seems to completely ignore them. I'm not sure what the proper behaviour should be. Matthew

Re: Freezing role methods

2009-10-15 Thread Matthew Walton
On Thu, Oct 15, 2009 at 10:07 AM, Ovid wrote: > Reading the paper I linked to could help to clarify the issue.  In short, > there are times under my current understanding of roles where you *can't* > resolve the conflicts.  Two roles, each providing and dependent upon a method > x(), such that

Re: Cobra & Ioke Programming Languages

2009-09-17 Thread Matthew Walton
On Thu, Sep 17, 2009 at 6:58 PM, yary wrote: > Matthew Walton wrote >>Yes, Perl 6 does - it is not backwards compatible with Perl 5. > > That so? I thought Perl6 was supposed to recognize and execute perl5 > code. That statement itself implies that perl6 and perl5 are differen

Re: How can i contribute for perl 6 ?

2009-09-17 Thread Matthew Walton
On Thu, Sep 17, 2009 at 4:13 AM, Saravanan T wrote: > Thanks everyone for sharing the links... > > Thought of working in porting Data::Dumper functionality in perl 6 .Seems > like already there is ".perl" function which does the same.. > and a monker "mberends" said there is a bug in circular refe

Re: Cobra & Ioke Programming Languages

2009-09-16 Thread Matthew Walton
On Thu, Sep 17, 2009 at 4:41 AM, yary wrote: > Perl is being actively developed for the Parrot VM. LLVM is another > interesting option and if someone or some group would like to take it > on, it would be a welcome alternate implementation. > > What parts in particular of Cobra and ioke look usefu

Re: s/ DateTime <-> Instant / TAI /

2009-09-09 Thread Matthew Wilson
Dare I suggest TAIME? I do. On 9/9/09, Richard Hainsworth wrote: > Carl Mäsak wrote: >> Darren (>), commit-bot (>>): >> +Returns a TAI epoch value for the current time. >>> Shouldn't the result type of time() be an "Instant" object (Instant and >>> Duration are defined in S02) rather th

Fwd: More flexible POD

2009-08-10 Thread Matthew Walton
Woops - forgot to reply all (I'm on an irritating mixture of lists which set reply-to and don't, and I never remember which is which). Sorry! -- Forwarded message ------ From: Matthew Walton Date: Tue, Aug 11, 2009 at 7:10 AM Subject: Re: More flexible POD To: Jon Lang

Re: Rukudo-Star => Rakudo-lite?

2009-08-10 Thread Matthew Walton
Then you could be like TeX and have releases numbered with ever-increasing parts of an irrational number. On Mon, Aug 10, 2009 at 12:37 PM, Mark J. Reed wrote: > Wrong reply button... > > -- Forwarded message -- > From: "Mark J. Reed" > Date: Mon, 10 Aug 2009 07:36:52 -0400 > Subj

Re: [perl #67810] AutoReply: [PATCH] Test.pm planless testing support update

2009-07-23 Thread Matthew Walton
mat (with or without an explicit call to > done_testing). > > May not handle all possible failure cases entirely elegantly. > > From d1b4a9b5dbe57e775bf1fd6c5f3689169eefd989 Mon Sep 17 00:00:00 2001 From: Matthew Walton Date: Thu, 23 Jul 2009 12:32:59 +0100 Subject: [PATCH] Updated Test.pm

Re: [perl #67358] [BUG] less than awesome error message for 1 param expected in Rakudo

2009-07-09 Thread Matthew Walton
On Thu, Jul 9, 2009 at 1:24 AM, yary wrote: > On Wed, Jul 8, 2009 at 3:28 PM, Carl Mäsak wrote: > >>> It's Parrot behavior.  It's trivial to change to "Too many params passed" or >>> "Too many results passed".  Would that be clearer? >> >> Maybe, but the problem as described in the original ticket

Mixing in to method objects

2009-06-25 Thread Matthew Walton
ethods can carry a load of extra data around with them - which seems like an excellent use for a mixin, especially as I could then smartmatch against it in order to pick out the relevant methods from the .^methods list. Matthew

Re: negative index in perl6 array

2009-06-23 Thread Matthew Walton
On Sat, Jun 20, 2009 at 12:07 PM, Chas. Owens wrote: > Hmm, I can't get [user-defined array indexes][1] working, and those > are a prerequisite for mixing subscripts (you can't mix normal and > user-defined indexes if you can't create user-defined indexes).  I > took a quick look at the tests and c

Re: "Nonexistent file" processing

2009-06-22 Thread Matthew Walton
The correct place for this is in an email to rakudo...@perl.org, which will lodge a ticket with the rakudo bug tracker. I've submitted this one for you, but feel free to do it yourself in the future. Good luck with Rakudo, and enjoy Perl 6! On Sun, Jun 21, 2009 at 6:40 PM, Parrot Raiser<1parr...@

Re: Why pass by reference?

2009-06-15 Thread Matthew Walton
hey've just shot, because they can look at the signature and know the semantics of the parameter passing being used and know that if they change the value externally before you return Bad Things Could Happen. Matthew

Re: Why pass by reference?

2009-06-15 Thread Matthew Walton
hey've just shot, because they can look at the signature and know the semantics of the parameter passing being used and know that if they change the value externally before you return Bad Things Could Happen. Matthew

Re: Multi-d array transforms (was Re: Array rotate)

2009-06-12 Thread Matthew Walton
n types as well - but maybe our multis are fine with that, and maybe this is just some crazy dream caused by waking up too early on a Saturday morning and thinking about Perl before breakfast. Matthew

Re: Grammars that generate stuff

2009-03-28 Thread Matthew Wilson
for a selection of browser-based examples... (it's also the subversion repo). Also if you don't mind things Microsoft, there's the (part of Oslo) M language family. -Matthew

Re: Logo considerations - 3 logos needed

2009-03-25 Thread Matthew Wilson
On Wed, Mar 25, 2009 at 6:06 PM, Larry Wall wrote: > > http://www.wall.org/~larry/cameliafav.ico > > out to be necessary. Hand-crafted anti-aliasing is your friend. :) > Larry > firefox at 3025%: cameliafav.ico all blown up. [groan] http://feat

Re: [perl #64094] AutoReply: [BUG] Infinite loop in Rakudo during subst

2009-03-23 Thread Matthew Walton
Turns out that the loop is actually caused by the +, not the subst, as I had the same inside an ordinary match. jnthn tells me that the + is a bit redundant, but it shouldn't cause a loop. * also succumbs. signature.asc Description: This is a digitally signed message part

Re: Rakduo Logo Proposal

2009-03-18 Thread Matthew Walton
On Wed, 2009-03-18 at 16:43 +0100, Carl Mäsak wrote: > Stephen (>): > > Use of the gimel[1] character comes from Justin Simoni's logo design > > proposal[2] from a while back, and the design is a reference to the > > anarchist symbol[3]. > > It also looks like a reference to another programming la

Re: Announcing Form

2009-03-16 Thread Matthew Walton
On Mon, 16 Mar 2009 09:51:10 -0400, Guy Hulbert wrote: > On Mon, 2009-16-03 at 14:34 +0100, Carl Mäsak wrote: >> Form is still in its early stages, but is already showing great >> promise. Consider downloading it and trying it out, or even >> contributing. > > Very cool. This gives me a reason

Re: Rakudo leaving the Parrot nest

2009-01-17 Thread Matthew Wilson
hurt, or defensive about their debunking or non-adoption. :D > With that background in place, I'll now (with great trepidation) > open the discussion for others to comment and/or make suggestions > of what they'd like to see changed about the way we currently > manage Rakudo Perl. > > Thanks in advance, > > Pm Sorry for expanding the thread to include the Perl 6 web properties ideas in addition to the Rakudo proposals. I registered those domain names originally exactly for this purpose (for the Perl 6 language and its implementations to have homes), so I'm excited that they could be used for that purpose. I hope you all catch my implication that all the other Perl 6 implementations could & would have similar hosting opportunities available and provided. -Matthew Wilson (diakopter) diakop...@gmail.com

Constructing objects

2008-06-06 Thread Matthew Walton
This is probably explained somewhere, but I've been unable to piece it together in my own investigation. If I have a class: class Foo { has Int $!value; } I get the impression that the default constructor would allow me to say my Foo $foo .= new(value => 2); Which seems to me to be a bit odd,

Re: [svn:perl6-synopsis] r14494 - doc/trunk/design/syn

2008-01-24 Thread Matthew Wilson
> BEGIN (right now at compile time) > UNITCHECK (at end of this compilation unit) > CHECK (at end of main compilation) >(compile time finishes) >...time passes... >(run time starts) > INIT > (main starts running) > ENTER (every block entry) > START (f

Re: Sequential bias in S04 (and Perl6 in general)

2008-01-11 Thread Matthew Walton
On Fri, 2008-01-11 at 10:34 -0800, Dave Whipp wrote: > Matthew Walton wrote: > > > I wouldn't agree with that at all. I think of arrays as ordered constructs, > > so I'd want the default iteration over my array to happen in the order of > > the indices. >

Re: Sequential bias in S04 (and Perl6 in general)

2008-01-11 Thread Matthew Walton
hat I want parallel execution - provided that the ability to do it is there and it's easy to get at and behaves in a sensible manner (naturally this lets you parallelise things the compiler isn't sure are safe to parallelise due to possible side effects. That's fine, since you know which side effects are okay to do that to in your program). Matthew

Re: Error calling bless in non-default constructor

2007-05-15 Thread Matthew Keene
t $test .= new(:string); # TIMTOADY and all that ;) You can pass objects to BUILD that you don't store in the object: class MattTest { submethod BUILD (:$foo) { say $foo; } } hth, -db. my $test = MattTest(:string('abc')); # Check to see the class is the right kind

Error calling bless in non-default constructor

2007-05-15 Thread Matthew Keene
I'm trying to use a non-default constructor for a class under Pugs 6.2.13, like so class MattTest { sub new (Class $class : Str $string) { say "Passed $string to the constructor for $class" ; return $class.bless ; } } my $test = MattTest.new('abc') ; This is failing with the fol

Re: Referring to package variables in the default namespace in p6

2005-07-21 Thread Matthew Hodgson
On Thu, 21 Jul 2005, "TSa (Thomas Sandlaß)" wrote: Matthew Hodgson wrote: I guess $::('Foo') was a bad example - $Foo="Foo"; $::($Foo) would have been better at illustrating my point - which was that if $::($Foo) searches outwards through namespace for a variab

Re: Referring to package variables in the default namespace in p6

2005-07-21 Thread Matthew Hodgson
On Thu, 21 Jul 2005, "TSa (Thomas Sandlaß)" wrote: Matthew Hodgson wrote: These rules are all fair enough - but they are then ambiguous for $::Foo. Is that the leaf name variable Foo in your current (innermost) namespace? It is not ambiguous if the sigil rules that expression. I a

Re: Referring to package variables in the default namespace in p6

2005-07-20 Thread Matthew Hodgson
On Wed, 20 Jul 2005, "TSa (Thomas Sandlaß)" wrote: Matthew Hodgson wrote: I'm very surprised that package variables end up in OUR::, however - because surely they're not necessarily lexically scoped - and the whole point of 'our' was lexical global scoping, right

Re: Referring to package variables in the default namespace in p6

2005-07-19 Thread Matthew Hodgson
On Tue, 19 Jul 2005, Larry Wall wrote: On Tue, Jul 19, 2005 at 07:25:35PM +0100, Matthew Hodgson wrote: : : So the question is: what is the correct syntax for referring to package : variables in the default namespace? The * looks like a twigil but it isn't really. It's short for &q

Referring to package variables in the default namespace in p6

2005-07-19 Thread Matthew Hodgson
current' namespace? $::foo? $?PACKAGENAME::foo? $::($?PACKAGENAME)::foo? %PACKAGENAME::? cheers, Matthew. -- Matthew Hodgson [EMAIL PROTECTED] Tel: +44 7968 722968 Arathorn: Co-Sysadmin, TheOneRing.net®

Re: ./method

2005-06-21 Thread Matthew Zimmerman
[Sorry, sent this to the wrong list by mistake.] Matthew Zimmerman wrote: Juerd wrote: Kurt skribis 2005-06-20 19:46 (-0400): On 6/20/05, Juerd wrote: Or you can just get your "self" with a simple (module that does) macro self () { '$?SELF' } And you c

Re: ./method

2005-06-21 Thread Matthew Zimmerman
#x27;s decision on this. I don't think further discussing this is really fruitful, as it has already been discussed more than is good for us. Fair point. I mean no offense, nor do I wish to beat a dead horse. I just want to make sure it's dead, instead of merely resting. -- Matt Matthew Zimmerman Interdisciplinary Biophysics, University of Virginia http://www.people.virginia.edu/~mdz4c/

Re: ./method

2005-06-21 Thread Matthew Zimmerman
have a complicated mathematical expression with method calls in it (which happens a lot for me), the '/' part of './' in particular gives me lots of visual problems. I'll put macro o () { '$?SELF' } at the top of my code if I have to, but I want

Re: ^method ?

2005-05-16 Thread Matthew Walton
> On 15/05/05 22:48 +0100, Matthew Walton wrote: > I don't think that is what Rob is saying at all. It wasn't aimed entirely at Rob. I have a bad habit on mailing lists of vaguely replying to the entire thread without remembering who said what and being too lazy to

Re: ^method ?

2005-05-15 Thread Matthew Walton
. On 15 May 2005, at 16:17, Rob Kinyon wrote: Right now, P6 has $?SELF and I'm saying that instead of using $?SELF, we should use $self wherever $?SELF would be used. $_ is still the topic and would be the default invocant if you have .method($foo). What I'm saying is that you can have method ( Int

Re: [pugs]weird thing with say ++$

2005-04-21 Thread Matthew Walton
> On Thu, Apr 21, 2005 at 11:45:27AM +0200, Paul Johnson wrote: > It certainly makes more sense to me that the answer would be 2 2. But > however it ends up, so long as we know what the answer will be, we can > utilize it effectively in our programs. The trick with this construct usually in C is

Re: should we change [^a-z] to <-[a..z]> instead of <-[a-z]>?

2005-04-15 Thread Matthew Walton
> > even sillier question: > if <[a.z]> matches "a", "." and "z" > and <[a...]> matches all characters from "a" including (for some > definition of 'all') > > how will be range \x21 .. \x2e written? > <[!..\.]>? (i.e. "." escaped?) > I was assuming from Larry's mail that <[a...]> would parse as

currying in perl6

2005-04-14 Thread Matthew D Swank
I apologize if this has already been addressed, but given the following definition: sub make-adder ($a){ sub ($b) { $a + b$; } } make-adder 5 returns a closure, however pugs won't parse: make-adder 5 6 or: (make-adder 5) 6 I have to resort to: (make-adder 5)(6) Is this corr

[PUGS] subs in main are methods on built-in types?

2005-04-04 Thread Matthew Zimmerman
and S12, so please forgive me if this is a nuance of Perl 6 that I'm missing. -- Matt Matthew Zimmerman Interdisciplinary Biophysics, University of Virginia http://www.people.virginia.edu/~mdz4c/

Re: Pugs Q for the Parrot FAQ?

2005-03-31 Thread Matthew Zimmerman
to phrase the cross language stuff to follow on smoothly. One possibility is attached. -- Matt Matthew Zimmerman Interdisciplinary Biophysics, University of Virginia http://www.people.virginia.edu/~mdz4c/ --- FAQ.txt.orig 2005-03-31 12:13:37.895141760 -0500 +++ FAQ.txt 2005-03-3

Re: [Pugs] Test for localtime and gmtime builtins

2005-03-15 Thread Matthew Campbell
Umm, my attached test was stripped off. Who can I send it to for review? Cheers mattc On Tue, 2005-03-15 at 17:28 +, Matthew Campbell wrote: > Hi All, > > Started looking at porting modules to pugs and Time::namespace seemed > like a simple place to begin. These modu

[Pugs] Test for localtime and gmtime builtins

2005-03-15 Thread Matthew Campbell
bv it barfs at them not being there so the todo_ tests are not run. A question on dev process then, I'm guessing that when a feature is added the feature and its testcase are iterated to perfection together? Comments and suggestions most welcome... Cheers, mattc -- Matthew Campbell <[EMAIL PROTECTED]>

Re: [Pugs] Where to start with Modules

2005-03-14 Thread Matthew Campbell
Thanks for the warm welcome Autrijus. I'll see you on #perl6 shortly then! Many Thanks Matt Campbell On Mon, 2005-03-14 at 18:23 +0800, Autrijus Tang wrote: > On Mon, Mar 14, 2005 at 10:11:45AM +, Matthew Campbell wrote: > > Hello All, > > Greetings! > > &g

[Pugs] Where to start with Modules

2005-03-14 Thread Matthew Campbell
to Pugs? Thanks for your assistance, Matt -- Matthew Campbell <[EMAIL PROTECTED]>

Re: Junctive puzzles.

2005-02-10 Thread Matthew Walton
Matt Fowles wrote: This is Just Wrong, IMO. How confusing is it going to be to find that calling is_prime($x) modifies the value of $x despite it being a very simple test operation which appears to have no side effects? As far as I can see it, in the example, it's perfectly logical for is_prime($x)

Re: Junctive puzzles.

2005-02-09 Thread Matthew Walton
Matt Fowles wrote: All~ On Tue, 08 Feb 2005 17:51:24 +0100, Miroslav Silovic <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: Well, we see the same kind of thing with standard interval arithmetic: (-1, 1) * (-1, 1) = (-1, 1) (-1, 1) ** 2 = [0, 1) The reason that junctions behave this way is

  1   2   >