Re: Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-31 Thread Patrick R. Michaud
On Wed, May 31, 2017 at 09:33:59AM -0400, Brock Wilcox wrote: > One of my dreams is to adopt a client/server + middleware model from nREPL > (clojure) which I think works really well, and likely to do that in > userspace as a regular module. Moving everything into REPL.pm (perl6 > instead of nqp) l

Re: Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-31 Thread Parrot Raiser
> Do you have something specific in mind? I don't know enough about the internals to have any particular suggestions. Keeping functions properly local is just one of those "motherhood and apple pie" principles that is much easier to follow if it is done consistently from the start.

Re: Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-31 Thread Brock Wilcox
Some progress on this has already been made, which is how it got as close to standalone as it is now -- previously the REPL was more NQP than Rakudo. Do you have something specific in mind? One of my dreams is to adopt a client/server + middleware model from nREPL (clojure) which I think works rea

Re: Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-31 Thread Parrot Raiser
I was not proposing that the REPL was to be invoked in any other way than at present. By "reducing the coupling", I mean arranging functions and interfaces in a way that prevents a change in one function affecting the other. Essentially, implementing standard interfaces between complete functions.

Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-30 Thread Richard Hainsworth
Please do not weaken the link between REPL and perl6 ! The ability to test perl6 snippets very quickly is something I find very useful. And to get this I type 'perl6'. Easy to remember. (I have been following perl6 since the very beginning, and installed 'pug'. Since perl6 has been evolving,

Re: command auto-completion in perl6 shell

2017-05-30 Thread Rob Hoelz
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 an

Re: command auto-completion in perl6 shell

2017-05-30 Thread Parrot Raiser
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

2017-05-30 Thread Rob Hoelz
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, manipulatin

Re: command auto-completion in perl6 shell

2017-05-30 Thread Sebastien Moretti
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

Re: command auto-completion in perl6 shell

2017-05-30 Thread Shrivats
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 st

command auto-completion in perl6 shell

2017-05-30 Thread Sebastien Moretti
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 Thanks -- Sébastien Moretti