Re: command auto-completion in perl6 shell
It's pretty modular already; only a little more work would be needed to have it loaded as an external module. On Tue, 30 May 2017 12:34:08 -0400 Parrot Raiser <1parr...@gmail.com> wrote: > The REPL's almost an independent project. > > Can it be made modular, to reduce the coupling between it and the > language? >
Re: command auto-completion in perl6 shell
Completion (albeit in a limited form) is available if you install the Linenoise module. Completion for Readline is a little trickier, since GNU Readline uses a global variable to store the function reference used to populate the completion list. When I was working on the REPL stuff, manipulating global variables in native code wasn't possible, but maybe that's changed in the last year or so! As I said above, the completions offered are pretty limited - if you would like to extend the completions capabilities of the REPL, you can change the Completions role in src/core/REPL.pm. -Rob On Tue, 30 May 2017 17:33:36 +0200 Sebastien Moretti <sebastien.more...@unil.ch> wrote: > On 05/30/2017 05:39 PM, Shrivats wrote: > > On 05/30/2017 08:33 PM, Sebastien Moretti wrote: > > > Hi > > > > > > I wonder if there is auto-completion in the Perl6 REPL - such as > > > what is found in Eclipse (Ctrl-space) or in vim (Ctrl+n) - for > > > variables, methods, ... > > > > > > e.g > > > perl6 > > > > say 42. > > > or > > > > my $result = 8; > > > > say $res > > > > > Hi, > > > > As it stands right now, perl6 REPL is a bare bones shell with just > > enough functionality. You may also add readline using `zef install > > Readline` and use it with the REPL. Autocomplete feature might be > > added in later releases. > > > > Shrivats > > Thanks Shrivats. > Would be good to have that feature in later releases. > > -- > Sébastien Moretti >
Re: exit code: 141 causes Perl 6 to exit.
FWIW, 141 is SIGPIPE. (signal 13 + WIFSIGNALED flag (128)) So something's happening in your RUN script that's causing it to write to a closed pipe. I hope this helps! -Rob On Mon, 27 Mar 2017 11:51:03 +0300 Gabor Szabo <szab...@gmail.com> wrote: > Putting > > CATCH { default { put .^name, ': ', .Str } }; > > in the While loop helped with the restarting, but I am still not sure > if this is the expected behavior or not. > > > run.pl: > > while True { > say "Starting"; > shell("perl6 a.pl"); >CATCH { default { put .^name, ': ', .Str } }; > } > > > a.pl: > > print "in a.pl\n"; > exit(141); >
Re: Are there any web applications written in Perl 6?
On Sat, 18 Jul 2015 20:06:11 +0300 Gabor Szabo ga...@szabgab.com wrote: Hi, I am going to give a 20 min talk about web application development using Perl 6. My base plan is to use Bailador https://github.com/tadzik/Bailador and show the basics, but I'd like to point out any already existing web application written in Perl 6. Web applications that can currently run. So I wonder are there any web application written in Perl 6 you know about. I'd appreciate a link to the site if its live and the source code if it is available. regards Gabor Hi Gabor, I believe that http://testers.p6c.org/ is written in Perl 6 (https://github.com/perl6/cpandatesters.perl6.org) Are you going to put your talk online? I'm sure a bunch of Perl 6ers (myself included) would be happy to see it! -Rob
Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?
Yup, PERL6LIB. =) On Mon, 30 Mar 2015 17:03:05 -0500 Tom Browder tom.brow...@gmail.com wrote: I would like an easy way to have a local search path for local Perl 6 modules (those not installed via Panda). I'm used to using the environment variable PERL5LIB for Perl 5 modules. Is there currently any equivalent way to do that for Perl 6? Thanks. -Tom
Packaging Perl 6 (or rather, Rakudo Star)
Hi everyone, There was some discussion on #perl6 yesterday on what requirements are necessary for Perl 6 to be considered production ready, and moritz++ made a quick list (https://gist.github.com/moritz/5082925) of the top of his head including deployment in major free OSes. This is one area where I feel I could be of help, as I feel it's extremely important to have Linux/BSD packages in order to be taken seriously, and it's something that doesn't require intimate knowledge of how Rakudo works. I already have my own package for Arch Linux for Rakudo Star, and I keep the OS X homebrew package up-to-date as well. I'd like to create an RPM spec file and a DEB spec file as well. I have two questions: 1) Do these spec files belong in the Rakudo Star repository? 2) Which makes more sense: having a Rakudo Star package that depends on a separate Rakudo package (so Rakudo Star would only consist of modules and applications), or having a Rakudo Star package that conflicts with a separate Rakudo package (so users may install one or the other)? I think the former is less confusing (the latter may lead to people asking well, which one do I install), but the former is probably a little harder to do. -Rob
Relationship between pugs and parrot/language/perl6
I see that there's work being done on a perl6 implementation under languages in parrot. How is this effort related to the pugs project? Is the aim of this to provide an alternative implementation of perl6 to pugs? Is one of them the destined to be the canonical implementation, or is there going to be such a thing? BTW, glad to see the emergence of this mailing list, but I noticed it not yet listed on the Current mailinglists page here: http:// dev.perl.org/perl6/lists/.