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 $

A problem on regex.

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

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

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: 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

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

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 =

Re: Perl6 "style-guide"

2006-09-25 Thread Chris Dolan
for Perl 6 code, so I still apply that where reasonably possible. And in fact, I expect that PBP was written to be forward compatible to Perl 6, as it could describe styles that should be natural in Perl 6, even if less so in Perl 5. Does anyone want to start a port of Perl::Critic to Per

Re: Mutil Method Questions

2006-06-23 Thread Chris Yocum
Hi All, I would like to thank everyone for their illuminating examples and prose. This has cleared up understanding for me. Thanks again, Chris On 6/23/06, Markus Laire <[EMAIL PROTECTED]> wrote: On 6/23/06, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: > An alternate

Mutil Method Questions

2006-06-21 Thread Chris Yocum
l6 without OO or have I conflated OO with overloading incorrectly? Thanks, Chris

Re: Relationship between pugs and parrot/language/perl6

2006-05-29 Thread Chris Dolan
ude toward testing is what has kept me so excited about the Perl community over the last few years, even after the initial love for the language wore off. So instead of "Only Perl can parse Perl" we get "Only Perl regression tests can specify Perl". I can be happy wit

Re: 3 Good Reasons...

2006-05-26 Thread Chris Dolan
future where Perl and Ruby are bytecode compatible, perhaps I would have just interfaced with the Ruby library directly instead of having to reinvent it, saving a couple of days of coding and debugging. [1] http://inlet-media.de/flvtool2 [2] http://search.cpan.org/dist/FLV-Info/ Chris -- C

Re: Simple Print/Say Question

2006-05-24 Thread Chris Yocum
instructive. Chris On 5/24/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote: my %buckets = ( w => { count => 4, scale => 10.5, }, x => { count => 6, scale => 7, }, y =>

Re: Simple Print/Say Question

2006-05-23 Thread Chris Yocum
Dear Mr. Bach, You were indeed correct so I wrapped the %hash like this "@{%hash}" like you would to de-refrence an array and it worked perfectly. It was indeed just me. Thanks to everyone that responded! Chris On 5/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Re: Simple Print/Say Question

2006-05-23 Thread Chris Yocum
st, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/ - Original Message From: Fagyal Csongor <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [email protected] Sent: Tuesday, May 23, 2006 12:11:07 PM Subject: Re: Simple Print

Re: Simple Print/Say Question

2006-05-23 Thread Chris Yocum
Dear Fagyal, Huh. Strange. I tried the code on its own without the rest of the script and it did just fine as well. There must be something wrong in my script somewhere. Chris On 5/23/06, Fagyal Csongor <[EMAIL PROTECTED]> wrote: Chris, Strange. I have just tried this using

Re: Simple Print/Say Question

2006-05-23 Thread Chris Yocum
Oops. That last . is a typo on my part. Sorry about that! It should read, which it does in my code: print @array[0] ~ "|" ~ @array[1] ~ "|" ~ @array[2] ~ "\n"; However, your say join technique does not work. I will keep on it but for now I am off to dinne

Simple Print/Say Question

2006-05-23 Thread Chris Yocum
] . "|" . $array[1] . "|" . $array[2] . "\n"; not the best way but it works. In Perl6 if say something like this: print @array[0] ~ "|" ~ @array[1] ~ "|" ~ @array[2] . "\n"; I get 1 2 3 | | | My question is: why is it doing that or, more to

Re: perl 6 hosting?

2006-05-23 Thread Chris Yocum
, however. Chris On 5/23/06, Michael Mathews <[EMAIL PROTECTED]> wrote: I realise its still very, very early days, but considering the growing number of people who would enjoy just dabbling a little in perl6, it seems unreasonable to expect that the "average person" would install the m

Re: Windows Binaries for Pugs

2006-05-19 Thread Chris Yocum
naries even worth it? Judging from my lurking on #perl6, things are moving so fast that anything but a regular nightly-built binary would be too out of date. Seems like svn is the way to go. -James At 11:58 AM -0400 5/19/06, Chris Yocum wrote: >Hi All, > I just wanted to let you know th

Windows Binaries for Pugs

2006-05-19 Thread Chris Yocum
Hi All, I just wanted to let you know that there are some Windows binaries of Pugs avaliable from Jonathan Worthington (http://www.jwcs.net/~jonathan/perl6/). They seem to be a bit out of date (last update was at Monday, 10-Apr-2006 05:29:30 CDT) but should get you started. Regards, Chris

Re: Where can I find a Perl 6 langauge reference?

2006-05-18 Thread Chris Yocum
Hi Mr. Mathews, PXPerl (http://pxperl.com/) has a version of Perl6 compiled into the build. That should get you started. Regards, Chris On 5/18/06, Michael Mathews <[EMAIL PROTECTED]> wrote: Like Thomas, I'm interested in having a go, in my case I'd like to install some