Re: Perl6 on USB key?

2017-10-14 Thread Chris Ramsey
any real issues and this would be basically the same. On Sat, Oct 14, 2017, 10:20 AM Philippe de Rochambeau wrote: > Hi Chris, > thanks for your feedback. > Can you plug the Pi Zero converted to an USB stick into a Windows machine > and run Perl6 scripts residing on the latter? > >

Re: Perl6 on USB key?

2017-10-14 Thread Chris Ramsey
Not really, unless you're just adding the binary and libraries to the stick and calling it from there instead of /usr/bin. If you want something that can run on it's own, I'd recommend using a Raspberry Pi Zero and 'converting' that to a USB stick. You'll have full linux-y goodness and be able to

Re: Interactive terminal modules?

2017-03-28 Thread Chris Ramsey
Just found those a few minutes ago actually. I might have to give them a shot. Thanks! On Tue, Mar 28, 2017, 7:58 PM Lloyd Fournier wrote: > https://github.com/azawawi/perl6-ncurses > https://github.com/kuerbis/Term-Choose-p6 > > Have you seen those? > > On Wed, Mar 29, 201

Interactive terminal modules?

2017-03-28 Thread Chris Ramsey
I've been googling a bunch but can't find diddly for creating ncurses style interactive terminals in Perl 6. Sorry for such a vague question, but are there built-in modules for such a thing, and if so, what is it called so I can dive through the docs? Thanks!

Re: Global search and replace inside string

2017-03-22 Thread Chris Ramsey
Ah yeah, that would do it then! Thanks so much! On Wed, Mar 22, 2017, 11:55 AM Brandon Allbery wrote: > On Wed, Mar 22, 2017 at 2:50 PM, Chris Ramsey > wrote: > > my $str = "some string with 'text' in it and more text"; > say $str.subst(/'.*'/, &quo

Global search and replace inside string

2017-03-22 Thread Chris Ramsey
Hey all, I'm working on learning Perl 6 and am trying to write a little utility that will do a simple search and replace. Could knock this out in a few other languages quickly, but I really want to get to know Perl 6 better :) Anyway, so here's some pseudocode that I need some help writing. my $

Persuasive Business Writing Workshop, SZ & SH,Oct 2016 (by John Sturtevant, Former Harvard Business School Lecturer)

2016-08-30 Thread Chris Wang
=-http--www.sis-conf.com/uploads/soft/160829/1-160R9150914.pdf Yours Sincerely Chris Wang SiS Conference Consulting Tel: 86 21 51600280-800 Email: chris.w...@sis-conf.om _ SIS Conference operate a strict policy not to send unwanted emails to any of its past clients

Re: [perl #124391] AutoReply: [BUG] open() on non-existent file reports random-ish error

2015-04-26 Thread Chris Jepeway
x27;; MVM_free(fname); MVM_exception_throw_adhoc(tc, "Failed to open file %s: %s", path, uv_strerror(req.result)); } Chris.

Re: [perl #124391] AutoReply: [BUG] open() on non-existent file reports random-ish error

2015-04-25 Thread Chris Jepeway
MVM_exception_throw_adhoc(tc, "Failed to open file %s: %s", path, uv_strerror(req.result)); } though I’m betting libuv has its own notions of MAXPATHLEN that should perhaps be used instead. Chris.

Re: [perl #63408] [PATCH] use PCT::HLLCompiler.addstage()

2011-05-16 Thread Chris
Yes, closeable. Thanks. Chris "Tadeusz Sośnierz via RT" wrote: On Sun Feb 22 18:53:32 2009, ch...@chrisdolan.net wrote: > This trivial patch to perl6.pir changes Perl6::Compiler to use its > superclass' addstage() mutator instead of directly editing the > @stages att

A problem on regex.

2011-01-24 Thread chris
82 92 75 | | France

Re: Suggested magic for "a" .. "b"

2010-07-28 Thread Chris Fields
t an Amen? Amen! > -- > Mark J. Reed +1. I'm agnostic ;> chris

Re: Suggested magic for "a" .. "b"

2010-07-28 Thread Chris Fields
On Jul 28, 2010, at 1:37 PM, Mark J. Reed wrote: > On Wed, Jul 28, 2010 at 2:30 PM, Chris Fields wrote: >> On Jul 28, 2010, at 1:27 PM, Mark J. Reed wrote: >>> Can I get an Amen? Amen! >>> -- >>> Mark J. Reed >> >> +1. I'm agnosti

Str.trans implementation

2010-06-01 Thread Chris Fields
27;,'&' ] ), " <>&","The array version can map one characters to one-or-more characters"); I think, in order to get regexes to work we will need a way of getting the name of the matching regex from the Match object somehow. Any idea how to do that? chris (pyrimidine)

Re: Counting characters

2010-01-28 Thread Chris Fields
Would you want to use something else for that, maybe .comb? From the spec: 'The comb function looks through a string for the interesting bits, ignoring the parts that don't match. In other words, it's a version of split where you specify what you want, not what you don't w

Re: rakudo-current loop 2-3 orders of magnitude slower than perl 5?

2009-06-04 Thread Chris Mair
Hi, thanks for the replies! I have a better understanding of these performance issues now. (sidenote: replacing $i++ with $i = $i + 1 in my original example gives a 4 times speed up). Hi Chris, In addition to Patrick's excellent reply, I'd like to mention that one way t

rakudo-current loop 2-3 orders of magnitude slower than perl 5?

2009-06-03 Thread Chris Mair
com/rakudo/rakudo.git cd rakudo/ perl Configure.pl --gen-parrot make parrot make which worked flawlessly :) It is not completely clear to me how to get the exact build version of rakudo and parrot, since the perl6 executable just says chris$ perl6 -v This is Rakudo Perl 6. Copyright

Re: Module naming conventions

2009-06-03 Thread Chris Fields
about snippiness and 'tensegrity', so I'm not the only one sensing it. chris

Re: Dallas.p6m

2009-04-05 Thread Chris Dolan
t rehash the release announcements. I've found that the Perl 5 users are quite interested (and occasionally amazed). Chris

Re: [perl #63626] Re: bouncing parrot...@parrotcode.org

2009-03-04 Thread Chris Dolan
ll be able to open and update tickets using parrotbug or your email client." -- http://www.parrot.org/news/twip-week-parrot-february-28th-2009 Chris

Re: $?OS change

2009-03-02 Thread Chris Dolan
: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 i386 Chris

Re: Help re-building rakudo

2009-03-01 Thread Chris Dolan
On Feb 26, 2009, at 3:06 PM, Moritz Lenz wrote: But after that please do a 'make clean; perl Configure.pl' to make sure that the fallout of the previous build don't affect the new one. Time to update tools/rebase-rakudo.pl! Chris

Re: Rakudo's fork queue on GitHub

2009-03-01 Thread Chris Dolan
nd Rakudo couldn't bootstrap with it anyway). Chris

Re: Rakudo's fork queue on GitHub

2009-02-28 Thread Chris Dolan
t practices for reviewing submissions. I strongly suspect that there's lots more we can learn from Linux. Chris

Re: Comparing inexact values (was "Re: Temporal changes")

2009-02-23 Thread Chris Dolan
psilon, $y+$epsilon)" than to a range. Chris

Re: [perl #63384] [BUG] actions.pm calling setting.pm methods by mistake

2009-02-23 Thread Chris Dolan
On Feb 23, 2009, at 4:23 AM, Jonathan Worthington wrote: Chris Dolan (via RT) wrote: gen_actions.pir and gen_setting.pir both have ":subid("16")" and the wrong one is being called during compilation. I'm using parrot 0.9.1, compiled from svn tag RELEASE_0_9_1 a

$*DEFOUT vs. $*OUT

2009-02-22 Thread Chris Dolan
hould be using $*DEFOUT because the former is shorter and more obvious. Perhaps instead the default handles should be $*OUT, $*IN and $*ERR while the standard handles should be $*STDOUT, $*STDIN and $*STDERR? Chris

Re: Perl's internal time (was: Re: r25445 - docs/Perl6/Spec/S32-setting-library)

2009-02-22 Thread Chris Dolan
On Feb 22, 2009, at 12:39 AM, Brandon S. Allbery KF8NH wrote: On 2009 Feb 20, at 14:36, Chris Dolan wrote: UTC: TAI with an offset, as corrected for the actual revolution of the Earth: usually 60 seconds in a minute, but occasionally 59 or 61. 60 minutes in every hour (so 3599, 3600, or

Re: Perl's internal time (was: Re: r25445 - docs/Perl6/Spec/S32-setting-library)

2009-02-20 Thread Chris Dolan
chs. But my point remains: from the user's point of view it doesn't matter which epoch you choose to use behind the scenes, so you might as well pick the one that's easiest on the software (time_t) and leave the transformations to the libraries. Chris

Re: Perl's internal time (was: Re: r25445 - docs/Perl6/Spec/S32-setting-library)

2009-02-19 Thread Chris Dolan
today. http://krugle.org/kse/entfiles/jdk/sun.com/jdk-1.5/j2se/src/share/ classes/java/lang/Thread.java#246 Maybe Perl 6 should be really forward looking and include a time dilation factor so it can be the first language designed from the ground up for interstellar travelers who want to use a non-inertial reference. Or GPS? :-) Chris

Implementing $?LINE and other S02 compile-time vars

2009-02-15 Thread Chris Dolan
/to/perl6.pbc'? I think $?GRAMMAR, $?CLASS, $?ROLE, $?MODULE and $?PACKAGE should be easy because actions.pm already tracks those values in @?PKGDECL[*-1] (or something like that). @?GRAMMAR, @?CLASS, @?ROLE, @? MODULE, and @?PACKAGE should be similar operations on @?PKGDECL. Thoughts? Chris

Re: r25325 - docs/Perl6/Spec

2009-02-13 Thread Chris Dolan
On Feb 13, 2009, at 11:50 PM, Larry Wall wrote: On Fri, Feb 13, 2009 at 11:34:03PM -0600, Chris Dolan wrote: Argh! I submitted a patch implementing $?PROGRAM in Rakudo literally 5 minutes before you sent this... http://rt.perl.org/rt3/Ticket/Display.html?id=63228 Indeed, why do you

Re: r25325 - docs/Perl6/Spec

2009-02-13 Thread Chris Dolan
Argh! I submitted a patch implementing $?PROGRAM in Rakudo literally 5 minutes before you sent this... http://rt.perl.org/rt3/Ticket/Display.html?id=63228 Chris On Feb 13, 2009, at 11:21 PM, pugs-comm...@feather.perl6.nl wrote: Author: lwall Date: 2009-02-14 06:21:13 +0100 (Sat, 14 Feb

Re: PCT via Perl6: success!

2009-02-13 Thread Chris Dolan
On Feb 13, 2009, at 9:54 AM, Patrick R. Michaud wrote: On Fri, Feb 13, 2009 at 12:58:13AM -0600, Chris Dolan wrote: * I couldn't figure out how to call 'compreg' from Rakudo, so I used inline PIR If using PCT, it shouldn't be necessary to call 'compreg' a

PCT via Perl6: success!

2009-02-12 Thread Chris Dolan
my NQP code is fully supported by Rakudo. It would be interesting to see what remaining NQP constructs are not supported under Rakudo. Chris

Re: References to parts of declared packages

2009-02-12 Thread Chris Fields
f type A::B are declared before the corresponding A package is, for perfectly legitimate reasons. Agree completely. Bio::* currently has the same issue. * A should be treated as a post-declared package. Whatever this means, it sounds preferable. :) // Carl Agree again. The latter is definitely preferred. chris

{*} and actions

2009-02-10 Thread Chris Dolan
I use the following deprecated hack: my $method := &My::Grammar::TOP; my $match := $str.$method(:action(My::Grammar::Actions.new)); but I'd greatly prefer something more like my $grammar = My::Grammar.new(:action(My::Grammar::Actions.new)); my $match = $str ~~ $grammar; Chris

Re: [perl #62898] Rakudo can't handle A declared after A::B was declared in an included module

2009-02-08 Thread Chris Dolan
I wrote a simple solution that works, but I'd like someone more PIR- savvy to improve it. http://github.com/chrisdolan/rakudo/tree/package-redeclaration (5d6cec9) --- a/src/parser/methods.pir +++ b/src/parser/methods.pir @@ -30,8 +30,11 @@ Registers a type in the namespace. # Check if the

Re: [perl #62898] Rakudo can't handle A declared after A::B was declared in an included module

2009-02-08 Thread Chris Dolan
The following reproduces the bug more simply: perl6 -e 'BEGIN {class Foo::Bar::Baz {}}; class Foo::Bar {}' I'm working on a patch at the Frozen Perl hackathon now...

Re: [perl #63086] [BUG] can't declare class after deeper-namespace class declared

2009-02-07 Thread Chris Dolan
Ahh, It looks like my report below is a duplicate of [perl #62898] Rakudo can't handle A declared after A::B was declared in an included module Sorry about that... Chris On Feb 7, 2009, at 4:10 PM, perl6 via RT wrote: Consider the following two files: --- Foo/Bar/Baz.pm --- clas

Re: [perl #61308] rule's capture ws

2008-12-14 Thread Chris Dolan
token ws { 'a' }; rule b {x y}; }; if 'xab' ~~ m/ ^ $/ { say "match"; } else { say "no match"; } # output: no match\n Thank you for your report, Moritz In which case, the root cause may be the same as [perl #57864] Calling a token "text", "null" or "ws" in Rakudo makes matching fail Chris

bytes, lazy strings and zlib

2008-11-21 Thread Chris Dolan
eone tried this? It seems like the runtime/parrot/library/Stream classes parallel what I want to accomplish. 3) gzip Has anyone worked on a zlib interface? Thanks, Chris

Re: [perl #60674] sign($x) always returns 1 when $x ~~ Complex

2008-11-20 Thread Chris Dolan
> Mark (>): >> I think the most sensible thing is to be consistent. sgn() fails for >> non-real input as long as sqrt() returns NaN for negative input. >> Change the latter behavior (via a pragma or whatever) so that sqrt() >> returns complex numbers, and then sgn() should start behaving on such >

PGE HLLMapping

2008-11-17 Thread Chris Dolan
amespace of the generated code? 2) how do we handle languages where embedded code blocks are not equivalent to whole programs? Do we subclass the grammar and redefine TOP to be a statement block? Chris

[perl #57980] Fix bugs with nested ?? !!

2008-11-13 Thread Chris Dolan via RT
Attached is a very simple patch that solves the problem, but I've only tested lightly. ternary.patch Description: Binary data

Re: flagging compiler-generated code

2008-11-12 Thread Chris Dolan
> On Tue, Nov 11, 2008 at 11:03:09PM -0600, Chris Dolan wrote: >> I'm thinking ahead to the Parrot equivalent of Perl::Critic, which I >> hope will someday be able to analyze arbitrary .pbc files. One problem >> I >> foresee is that there seems to be no way to di

flagging compiler-generated code

2008-11-11 Thread Chris Dolan
ava, the former get isSynthetic=true, which makes it easier to suppress complaints about code violations in code out of the programmer's control. Chris

[perl #57980] Fix bugs with nested ?? !!

2008-11-11 Thread Chris Dolan via RT
On Sat Aug 16 07:29:36 2008, [EMAIL PROTECTED] wrote: > - Awaiting parser improvements (PGE) A simple, failing test: say True ?? 1 !! False ?? 2 !! 3; (says 2, should say 1)

[perl #57990] Implement prefix:<\> operator

2008-11-11 Thread Chris Dolan via RT
On Sat Aug 16 07:30:22 2008, [EMAIL PROTECTED] wrote: > - Need some clarity in spec and spectests for Capture objects Perhaps more clarity is needed, but the basics seems to work. I propose this ticket should be closed.

Numify

2008-11-05 Thread Chris Dolan
unterparts? I'd be happy to implement if someone would comment on the best approach. Chris

Re: "::" in namespaces

2008-11-05 Thread Chris Dolan
On Nov 5, 2008, at 9:41 PM, Patrick R. Michaud wrote: On Tue, Nov 04, 2008 at 09:10:02PM -0600, Chris Dolan wrote: The Perl6 code that triggers that looks like this: method is_string(Str $src, Str $expected, Str $msg) { my $method = PDF::Grammar::literal_string; ... just a point of

Re: "::" in namespaces

2008-11-05 Thread Chris Dolan
Aha, this was already reported as [perl #60358] Rakudo doesn't recognize grammars with :: in the name I added my thoughts to that ticket. Chris On Nov 5, 2008, at 12:36 AM, Chris Dolan wrote: Replying to myself: I think the flaw is in my use of "PDF::Grammar::literal_string&qu

Re: "::" in namespaces

2008-11-04 Thread Chris Dolan
ing" :method So, does that mean teaching PGE/Exp.pir about double-colon separators? Or does namespace separator need to be some sort of compreg flag? Chris On Nov 4, 2008, at 9:10 PM, Chris Dolan wrote: Thanks to Jonathan for working on the :: bug. I'm still having problems, however.

"::" in namespaces

2008-11-04 Thread Chris Dolan
corresponding PIR is: find_lex $P111, "$src" unless_null $P111, vivify_19 new $P111, "Perl6Scalar" vivify_19: get_hll_global $P112, ["PDF";"Grammar"], "Actions" unless_null $P112, vivify_20 new $P112, "Failure" vivify_20: $P113 = $P112."new"() $P114 = $P111.$P110($P113 :named("action")) # <-- this line fails Thanks, Chris

Re: Argument scoping error or bug?

2008-11-02 Thread Chris Dolan
;lex" branch and looked at the changes you've made (svn diff -r32136:HEAD), but I also see that it's not in a working state right now (./perl6 - e"say 'Hello, world.'" => Lexical '$/' not found) Tip jar? Chris

[perl #60228] fix for split on zero-width

2008-10-30 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #60228] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60228 > This is a fix for splitting strings on regular expressions that conta

Re: Invoking PGE closures as Rakudo code

2008-10-28 Thread Chris Dolan
On Oct 28, 2008, at 10:06 AM, Patrick R. Michaud wrote: On Tue, Oct 28, 2008 at 01:50:42AM -0500, Chris Dolan wrote: My goal is to build arbitrarily complex data structures from closures fired in my grammar. Specifically, I'm trying to write a PDF parser -- my grammar is parsing corr

Re: Invoking PGE closures as Rakudo code

2008-10-28 Thread Chris Dolan
On Oct 28, 2008, at 10:06 AM, Patrick R. Michaud wrote: On Tue, Oct 28, 2008 at 01:50:42AM -0500, Chris Dolan wrote: My goal is to build arbitrarily complex data structures from closures fired in my grammar. Specifically, I'm trying to write a PDF parser -- my grammar is parsing corr

Re: Why {{}} for regexp closures instead of just {}?

2008-10-28 Thread chris
> On Sun, Oct 26, 2008 at 10:45 PM, Chris Dolan <[EMAIL PROTECTED]> wrote: >> S05 always uses single curlies for closures, but throughout Parrot, code >> seems to use double curlies in PGE regexps. Why is that? >> >> That is, why this: >> m/ foo {{ say

Invoking PGE closures as Rakudo code

2008-10-27 Thread Chris Dolan
ome advice on how I should write the 'invoke' method? My goal is to build arbitrarily complex data structures from closures fired in my grammar. Specifically, I'm trying to write a PDF parser -- my grammar is parsing correctly now, but I'd rather not have to write the closures in PIR if I can help it. Chris

Re: Precompilation to PIR

2008-10-27 Thread Chris Dolan
On Oct 27, 2008, at 3:07 AM, Carl Mäsak wrote: Chris (>): How safe is it today to pre-compile Rakudo code to PIR and expect that to behave identically to as if I compiled from .pm at runtime? I believe PCT is just generating PIR anyway, so my initial guess is that there should be

Why {{}} for regexp closures instead of just {}?

2008-10-26 Thread Chris Dolan
t not terminated properly". Chris

Precompilation to PIR

2008-10-26 Thread Chris Dolan
go further and try to compile to PBC? Chris

Argument scoping error or bug?

2008-10-24 Thread Chris Dolan
ent, $n, gets overwritten on reentry. 0 of 0..6 1 of 0..6 2 of 0..6 3 of 0..6 4 of 0..6 0 of 0..0 5 of 0..0 6 of 0..0 The last two lines of output should say "0..6" not "0..0". Am I supposed to making the sub argument lexical? sub f(my $n) { ... } But Rakudo doesn't like that syntax. Chris

Assigning and passing $/

2008-10-23 Thread Chris Dolan
I'm learning about Match objects today. I can't assign $/ to a variable or pass it to a method. Is this a bug, or am I just confused? I get the following results. In both cases, $/ gets stringified instead of remaining as a Match instance. % ./perl6 -e 'if ("f" ~~ m/f/) { my Match $m =

[perl #59642] Return the empty list on non-positive LIMIT

2008-10-06 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #59642] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=59642 > Here is a small patch to make split return the empty list on non-p

Re: Split with negative limits, and other weirdnesses

2008-09-28 Thread Chris Davaz
ing > through the discussion once more, I don't find anyone saying anything > contradicting the above summary. > > Chris, I'm not in a position to provide a final word, but it seems > very possible already to use what has already been said here as a > basis for an implementation. > > // Carl >

[perl #59366] small fix to pod doc and interactive prompt

2008-09-26 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #59366] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=59366 > Fixed a bug in the doc where the method name and doc where mismatched.

Re: [perl #59184] Some fixes to split methods

2008-09-25 Thread Chris Davaz
Nope, that last one was it. Still waiting on a decision for how edge cases on limit are to be handled. On Thu, Sep 25, 2008 at 10:49 PM, Moritz Lenz via RT <[EMAIL PROTECTED]> wrote: > On Mon Sep 22 22:55:29 2008, cdavaz wrote: >> Grr.. wrong again sorry!! Forgot to remove the handle_count label.

Re: Split with negative limits, and other weirdnesses

2008-09-25 Thread Chris Davaz
If someone wants to make the final word on what the behavior should be I can go ahead and implement it. On Tue, Sep 23, 2008 at 11:41 PM, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: > On Tue, Sep 23, 2008 at 9:38 AM, TSa <[EMAIL PROTECTED]> wrote: > >> HaloO, >> Moritz Lenz wrote: >> >>> In Per

Re: [perl #59240] Automate publishing of docs/*

2008-09-24 Thread Chris Davaz
Ahh, cool I didn't even know we had parrot.org. Publishing docs/book/* would be nice. On Tue, Sep 23, 2008 at 10:27 PM, Will Coleda via RT <[EMAIL PROTECTED]> wrote: > On Tue, Sep 23, 2008 at 9:04 AM, via RT Chris Davaz > <[EMAIL PROTECTED]> wrote: >> # New Ti

[perl #59240] Automate publishing of docs/*

2008-09-23 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #59240] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=59240 > I suggest we automate the publishing of everything under docs/* and put

more fixes to split

2008-09-22 Thread Chris Davaz
please see http://rt.perl.org/rt3/Ticket/Display.html?id=59184 for more info and for the patch

[perl #59184] Some fixes to split methods

2008-09-22 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #59184] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=59184 > I have implemented the limit parameter on both Str.split(String,

Some fixes to split methods

2008-09-21 Thread Chris Davaz
I have implemented the limit parameter on both Str.split(String, Integer) and Str.split(Regex, Integer). In doing so I had to change the method signature of Str.split(String) to ".sub 'split' :method :multi(_, _)" from ".sub 'split' :method :multi('String')". The former method signature is the corr

Re: method signature issues

2008-09-21 Thread Chris Davaz
Awesome Patrick, you totally nailed it ;-) I'll be submitting a patch soon. Do you know if there is a Parrot bug logged for the problem you described? On Mon, Sep 22, 2008 at 12:27 AM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Sat, Sep 20, 2008 at 12:46:53PM +0800, Chr

Re: method signature issues

2008-09-21 Thread Chris Davaz
y 20 September 2008 22:24:52 Chris Davaz wrote: >> >> > If it is the case that :method and :multi are incompatible, I am a bit >> > surprised to see that in the Rakudo src directory: >> >> I said they're incompatible -- meant in terms of their semantics

method signature issues

2008-09-20 Thread Chris Davaz
If it is the case that :method and :multi are incompatible, I am a bit surprised to see that in the Rakudo src directory: $ grep -rHI ':method :multi' . | grep -v '.svn' | wc -l 94 On Sun, Sep 21, 2008 at 11:30 AM, chromatic <[EMAIL PROTECTED]> wrote: > On Friday 19

method signature issues

2008-09-19 Thread Chris Davaz
uot; .sub 'split' :method :multi(_, 'String')" I can't even compile Perl 6. I get the following error: No applicable methods. current instr.: 'parrot;Perl6;Grammar;Actions;dec_number' pc 129924 (src/gen_actions.pir:11299) >From this point I'm not sure what's going on any help would be greatly appreciated. Best Regards, -Chris

[perl #59074] Patch for split(thing, delimiter) function

2008-09-19 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #59074] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=59074 > Moved the split function from Str.pir to any-str.pm and removed the Perl

Patch for split(thing, delimiter) function

2008-09-19 Thread Chris Davaz
Moved the split function from Str.pir to any-str.pm and removed the Perl6Str coercion. Index: src/builtins/any-str.pir === --- src/builtins/any-str.pir (revision 31254) +++ src/builtins/any-str.pir (working copy) @@ -172,6 +172,31 @@

[perl #59016] Re: Made some fixes to split on a regex and moved from Str.pir to any-str.pir

2008-09-19 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #59016] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=59016 > Sorry forgot to put the method in alphabetical order, here you go. O

[perl #59014] Made some fixes to split on a regex and moved from Str.pir to any-str.pir

2008-09-19 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #59014] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=59014 > Got rid of "tempstr" and now returns the entire string on

Re: S05 and S29 may conflict on behavior of $string.match(/pat/)

2008-09-18 Thread Chris Davaz
this correct? I ask because in the current Rakudo implementation it returns the Match object (what I would expect from the "one low-level run of the regex engine"). Best Regards, -Chris On Thu, Sep 18, 2008 at 11:52 PM, Larry Wall <[EMAIL PROTECTED]> wrote: > On Thu, Sep 18, 2008

Re: Made some fixes to split on a regex and moved from Str.pir to any-str.pir

2008-09-18 Thread Chris Davaz
Sorry forgot to put the method in alphabetical order, here you go. On Fri, Sep 19, 2008 at 12:36 AM, Chris Davaz <[EMAIL PROTECTED]> wrote: > Got rid of "tempstr" and now returns the entire string on a non-match. > Index: sr

Made some fixes to split on a regex and moved from Str.pir to any-str.pir

2008-09-18 Thread Chris Davaz
Got rid of "tempstr" and now returns the entire string on a non-match. Index: src/builtins/any-str.pir === --- src/builtins/any-str.pir (revision 31220) +++ src/builtins/any-str.pir (working copy) @@ -71,7 +71,42 @@ .return(retv)

Re: [perl #58970] Initial implementation of Str.split(Regex)

2008-09-18 Thread Chris Davaz
t;, "bang", "for", "the", "buck"] ["ab", "cd", "ef", "gh"] ["", "char", "", "soup", ""] I'll upload a test to pugs later. On Thu, Sep 18, 2008 at 3:33 PM, Moritz

S05 and S29 may conflict on behavior of $string.match(/pat/)

2008-09-18 Thread Chris Davaz
roups/) should return a List of Match. I expected the S29 definition when first approaching $string.match I feel it is more intuitive than what happens with S05. Could someone clarify what the behavior should be? Best Regards, -Chris Davaz

Expected behavior of match?

2008-09-18 Thread Chris Davaz
The attached split.diff file is just for demonstration, not a patch submittal. I made a method on Str called "match" that returns a List of all matches: # returns all matches on a regex .sub 'match' :method :multi(_, 'Sub') .param pmc regex .local pmc match .local pmc tmpstr .loca

Re: [perl #58970] Initial implementation of Str.split(Regex)

2008-09-18 Thread Chris Davaz
hmm I see I'll work it out ;-) Thanks On Thu, Sep 18, 2008 at 3:33 PM, Moritz Lenz <[EMAIL PROTECTED]>wrote: > >> Chris Davaz wrote: >> > Ok, here it is without the change to "split on a string", and the test >> > passes. >> >> Yes, but

[perl #58970] Initial implementation of Str.split(Regex)

2008-09-17 Thread Chris Davaz
Ok, here it is without the change to "split on a string", and the test passes. Please apply this one and in the meantime I will see how we can get the method signature right for split on a strong + not break reverse. On Thu, Sep 18, 2008 at 1:57 AM, Moritz Lenz <[EMAIL PROTECTED]>

[perl #58970] Initial implementation of Str.split(Regex)

2008-09-17 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #58970] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58970 > I say "initial" because it didn't pass one of my tests.

Re: Questions about :multi in Method Signatures

2008-09-17 Thread Chris Davaz
That's a great response, thanks. Clears things up. One question, should be always be using _ for the invocant or should we try to restrict it? On Wed, Sep 17, 2008 at 10:52 PM, Patrick R. Michaud <[EMAIL PROTECTED]>wrote: > On Wed, Sep 17, 2008 at 08:37:36PM +0800, Chris Davaz w

Questions about :multi in Method Signatures

2008-09-17 Thread Chris Davaz
ion surrounding the use of :multi would help a lot. Best Regards, -Chris Davaz

[perl #58952] Implemented second argument to comb

2008-09-17 Thread Chris Davaz
# New Ticket Created by "Chris Davaz" # Please include the string: [perl #58952] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58952 > Here is the implementation of the second argument to the comb method as

Re: [perl #39738] [BUG] bind fails with errno EADDRNOTAVAIL on darwin and FreeBSD

2008-07-22 Thread Chris Dolan
This no longer fails on a FreeBSD 7.0 vm. It'd be nice to confirm that it also works on Darwin, but I'll plan on marking this resolved in a few days if there are no objections. Christoph It works for me too on Mac OSX 10.4 and parrot rev 29370. Thanks for following up! Chris

Re: odd (lexical?) issue with Rakudo/Parrot

2008-07-18 Thread Chris Fields
On Jul 18, 2008, at 5:18 PM, Jonathan Worthington wrote: Hi, Chris Fields wrote: The PGE::Match appears to be converted to a Str, regardless of the invoking object type. The following is .match (in any-str.pir, with the builtins). Also, .ACCEPTS now uses .match to retrieve the Match

Re: odd (lexical?) issue with Rakudo/Parrot

2008-07-18 Thread Chris Fields
On Jul 17, 2008, at 9:41 PM, Patrick R. Michaud wrote: On Thu, Jul 17, 2008 at 02:20:33PM -0500, Chris Fields wrote: Okay, I'll set it up so "$foo = 'abcd'.match(/+/)" returns a Match object, and $/ would remain unset. Makes sense to me. Right now the match object i

Re: odd (lexical?) issue with Rakudo/Parrot

2008-07-17 Thread Chris Fields
h(/+/)" returns a Match object, and $/ would remain unset. Makes sense to me. Right now the match object is converted over to a Str; I'll take a look at the parser grammar/actions to see if that can be fixed. chris

Re: odd (lexical?) issue with Rakudo/Parrot

2008-07-16 Thread Chris Fields
On Jul 16, 2008, at 5:45 PM, Chris Fields wrote: On Jul 16, 2008, at 1:28 PM, Patrick R. Michaud wrote: On Wed, Jul 16, 2008 at 11:20:28AM -0500, Chris Fields wrote: I have submitted a simple 'match' implementation for rakudo (method version of m//, RT#56970) and ran into an

  1   2   3   4   >