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

2017-05-31 Thread Parrot Raiser
gue it is best, at present and in order to facilitate > adoption of perl6, that we keep to the current naming scheme and make it > easy for newcomers to perl6. > > Finanalyst > > > On Wednesday, May 31, 2017 12:34 AM, Parrot Raiser 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

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: zef, zef-j, zef-m

2017-05-28 Thread Parrot Raiser
If they are really identical, might it be an idea to use symbolic links for 2 of them? That would reduce the code to be stored, maintained, and transmitted, and make it blatantly obvious if different versions are required. On 5/28/17, Nelo Onyiah wrote: > I presume that's

Re: Are sigils required?

2017-05-26 Thread Parrot Raiser
That sounds like a rather complicated way to render a program even more confusing. On 5/26/17, Timo Paulssen wrote: > You can bind an explicitly created scalar into a sigil-less variable and > it'll be variable rather than constant >

Re: Question for the developers on splice

2017-03-21 Thread Parrot Raiser
"Premature optimisation is the root of many evils", or words to that effect. (I forget who said it, but I think it was someone credible.) Write your code as clearly and simply as you can, then see if it performs adequately under load. If it does, you're finished. If it doesn't, instrument and

Re: per 5 converter?

2017-02-13 Thread Parrot Raiser
On 2/12/17, Brandon Allbery wrote: > > Translators are infamous for producing gobbledygook no self-respecting > programmer would > write > But unfortunately, far too many programmers do. :-)*

Re: Simple windows code example needed

2017-01-12 Thread Parrot Raiser
P.S. I just noticed your "long way": perl6 my_program.pl If you are invoking the script as an argument to perl6, you don't need a suffix. Windows needs the .pl suffix to decide what to do with the file. If you have Perl 5, you are likely have .pl linked to it. I'd suggest a separate value,

Re: Simple windows code example needed

2017-01-12 Thread Parrot Raiser
"There is no "#!/usr/bin/perl6" utility in Windows". That's not a utility, as such, it's telling the shell where the program was invoked, which interpreter to use. Windows ignores the !# line, because it uses the file-type suffix to find the information. On 1/12/17, ToddAndMargo

Re: Hi perl6 users

2017-01-07 Thread Parrot Raiser
Welcome. What are your principal applications for P6 likely to be? On 1/7/17, faraco wrote: > Hello, I'm new here. > > Firstly, I like Perl 6. It has some nice attractive features that makes > me want to finally settle down to learn the language, the beauty and the > ugly, and

Re: A stricter typed variable

2017-01-07 Thread Parrot Raiser
On 1/7/17, Moritz Lenz wrote: > I observe some weird behavior in Perl 6 newbies (and I've observed it in > myself too): they're so enamored by type constraints that they use them > everywhere, and run into all sorts of type errors they didn't expect. > There seems to be no

Re: Where to start?

2016-11-19 Thread Parrot Raiser
>> >> Can someone point me to a how to that will show me the >> basic template for running a perl 6 program in Linux. >> The most important thing is to ensure that perl 6 is normally executable, i.e. in a directory in $PATH. >> do I need to run perl6 through a compiler or does it compile on the

Re: What are variables/parameters that start with a pipe | char

2016-10-02 Thread Parrot Raiser
Great advice. "How to find the answer" is always more useful than "The answer". On 10/1/16, Moritz Lenz wrote: > Hi, > > On 01.10.2016 04:22, Francis (Grizzly) Smit wrote: >> I keep finding stuff like this: >> >> multi method spurt(IO::Path:D: Blob $contents, :$bin, |c) >>

Re: can Perl 6 bootstrap itself

2016-08-25 Thread Parrot Raiser
It's going to be easier to demonstrate stand-alone Perl 6 on Windows than an *nix machine. If you remove Perl from them, the result will probably be a broken system. On 8/25/16, Bennett Todd wrote: > Bootstrapping is funny that way. > > Besides the tools in the

Re: Killer Features of Perl 6

2016-08-21 Thread Parrot Raiser
In some ways, the problem is an embarrassment of riches. There are so many aspects of P6 ("layers of the onion"), many of which are of no interest to people who merely have a problem to solve. Many of the concepts of P6 that are essential to its role as a language development platform are

Re: Killer Features of Perl 6

2016-08-20 Thread Parrot Raiser
The REPL (Read, Evaluate, Print, Loop) is a major benefit that doesn't get mentioned much. It's going to be a great help in training courses; so much so that I'm trying to think of a way of achieving one in Perl 5. On 8/20/16, Elizabeth Mattijsen wrote: > >> On 20 Aug 2016, at

Re: Perl 6 adoption

2016-06-27 Thread Parrot Raiser
We should all be thinking about the "killer application" for Perl 6; the sort of job that is made so much easier by it that people will overlook all sorts of problems. On 6/27/16, Kaare Rasmussen wrote: > Hi List > > Now that 6c is 6 months old, I'm wondering if there is any

Re: pod: Missing semantic block

2016-05-16 Thread Parrot Raiser
As an example of how to document a language, see Borland's documentation for their Turbo C++ language. Every feature had its own explanation, with examples. The examples were not only brilliantly clear, they were often useful chunks of code in their own right. On 5/16/16, Hans Ginzel

Re: can a method name contain a funny character?

2016-04-12 Thread Parrot Raiser
If we don't want to get the "line noise" libel all over again, there are some features of the language that should probably go unmentioned for a while. The ability to use non-ASCII characters in names may be perfectly justifiable. When the cognoscenti have produced enough decent code showing how

Re: can a method name contain a funny character?

2016-04-12 Thread Parrot Raiser
Mathematical symbols might be a legitimate case, since they are generally pronounceable. Otherwise, special characters cause problems both in entry from the keyboard and thinking about the code. (What does it sound like if you describe it to yourself? foo.heart?) On 4/12/16, Luca Ferrari

Re: can a method name contain a funny character?

2016-04-11 Thread Parrot Raiser
I hope I never run across code written by someone who thinks this is a good idea. On 4/11/16, Theo van den Heuvel wrote: > Thanks Larry for the answer and the great language. > > It is quite ok for me to start alphabetically. I use the funny char to > indicate a particular

Re: 'split': differences between Perl5 and Perl6

2016-02-28 Thread Parrot Raiser
http://doc.perl6.org/language/5to6-nutshell is worth checking; there's a table of regex/pattern translations there. On 2/27/16, James E Keenan wrote: > On 02/27/2016 08:38 PM, Brandon Allbery wrote: > >> >> >> [...] is what used to be (?:...), and <[...]> is what used to be

Re: Experimental multi-line REPL branch up for testing

2016-02-08 Thread Parrot Raiser
That sounds like a great idea. On 2/7/16, Rob Hoelz wrote: > Hi Perl 6 users! > > I've developed an experimental branch that introduces multi-line input to > the REPL. What this means is when you > enter this: > > > for ^10 { > > instead of seeing a "Missing block" error, the

Porting considerations

2016-01-20 Thread Parrot Raiser
How difficult is it to port moar-VM to different versions of Linux, and different processor architectures? I'm thinking particularly of this machine: http://www.parallella.org/ which has multiple processors, designed, as the name suggests, for parallel processing. Given Perl 6's native parallel

Re: Perl 6 Module and Program File Extension Conventions?

2016-01-12 Thread Parrot Raiser
For *nix, don't use a suffix. #! does the job. For Windows, you'll want to leave .pl and .pm for Perl 5. On 1/12/16, Tom Browder wrote: > In Perl 5 it seems the prevailing convention (in my experience) is to > use ".pl" for Perl programs and ".pm" as file suffixes for

Re: Perl 6 Module and Program File Extension Conventions?

2016-01-12 Thread Parrot Raiser
Looking at the documentation, http://doc.perl6.org/language/modules see "Basic structure". On 1/12/16, Parrot Raiser <1parr...@gmail.com> wrote: > For *nix, don't use a suffix. #! does the job. > > For Windows, you'll want to leave .pl and .pm for Perl 5. > > On

Re: learning perl6?

2016-01-05 Thread Parrot Raiser
As you can see from http://www.learning-perl.com/ brian d foy is just now looking at the implications of Perl 5 and Perl 6 coexisting. On 1/5/16, Shaji Kalidasan via perl6-users wrote: > Greetings, > There may not be any Perl 6 books (paperback as such), but you can take a

Rakudo star 2015.12?

2016-01-05 Thread Parrot Raiser
There doesn't seem to be a tarball for rakudo star 2015.12. Is that going to be skipped?

Re: Erratic timings

2016-01-04 Thread Parrot Raiser
> Could the jumps to >1 seconds be explained by automatic pre-compilation > taking place after > you re-compiled rakudo ? Why would that happen occasionally, after a number of executions of the same code? (If it was consistently the first run that was the long one, I'd be looking at that, but

Re: Erratic timings

2016-01-04 Thread Parrot Raiser
The increase in "real" time was accompanied by changes in the other numbers. IIRC, I was offline at the time, so there shouldn't have been much else going on. Sorry to be so vague about the circumstances, but when you are surprised by what may or may not be a problem, securing the crime scene can

Re: Erratic timings

2016-01-04 Thread Parrot Raiser
On 1/4/16, Elizabeth Mattijsen wrote: > > FWIW, I have seen values that are off, but have always been able to trace it > back to my computer (stealthily or not) doing other things. > Thanks. Based on that, I'll assume it's not important unless it starts to happen regularly, in

Rakudo* downloader

2016-01-04 Thread Parrot Raiser
I have a small bash script to download and install a specified version of rakudo*. If anyone might find it useful, where should I put it to share?

Recalling previous commands

2016-01-01 Thread Parrot Raiser
Is there any way to recall a previous command (for correction or re-running), when using Perl 6 in the interactive REPL mode? Every time I make a typo in a complex command, I reflexively hit ctrl-k before remembering I'm not in bash any more. :-)*

Re: release?

2015-12-31 Thread Parrot Raiser
That's how I have Perl 6 (and a number of other packages) set up; a version-agnostic name in a $PATH place, symbolically linking to package directory. On 12/31/15, Philip Hazelden wrote: > Note that if we want scripts to be interpreter-agnostic, the perl6 binary >

Re: Bug or PEBCAK?

2015-12-31 Thread Parrot Raiser
Thank you. I'm not sure how to classify this one. It never occurred to me that a new Linux installation would NOT include a C compiler. Installing gcc fixed that. On 12/31/15, Dominique Dumont <dominique.dum...@hp.com> wrote: > On Wednesday 30 December 2015 19:42:38 Parrot Rai

Bug or PEBCAK?

2015-12-30 Thread Parrot Raiser
I've been out of the loop for a while. Attempted to install Rakudo* 2015 11 on Mageia 5. (Kernel is 4.1.13-server-2.mga5.) Aborted with the following: Welcome to MoarVM! Configuring native build environment ... JIT isn't supported on i386-linux-thread-multi yet. OK probing

Re: Announce: Rakudo Perl 6 compiler, Development Release #94 (“коледа”)

2015-12-26 Thread Parrot Raiser
Bravo Zulu, everyone, and a well-earned rest for Jonathan. The forecast is for scattered scepticism, with occasional outbreaks of trolls, but there should be some positive reaction from the rest of world. On 12/25/15, Will Coleda wrote: > On behalf of the Rakudo development

Re: Missing documentation

2015-10-29 Thread Parrot Raiser
Great, that works now. I was going to try to hunt it down and supply a fix, but Moritz beat me to it.

Re: Proposed docs for C

2015-09-16 Thread Parrot Raiser
On 9/16/15, David H. Adler wrote: > So, how about this > > perl6 -e 'sub a {state @x; @x.push(++$)}; say a for 1..6;' > > [1] > [1 2] > Even better, but how about 'for a..f'? That makes it clear that the list values are being used, not some sort of subscript. (The less

Re: Proposed docs for C

2015-09-15 Thread Parrot Raiser
The combination of different numbers on separate lines looks clearest to me. On 9/14/15, yary wrote: > Keep it on separate lines, I don't know how that formatting got lost (it's > showing up as separate lines in my history). > > As for the rest of it, curious as to consensus.

Market opportunity?

2015-09-14 Thread Parrot Raiser
Neo4j, http://neo4j.com/ a graph database that looks interesting uses the JVM http://www.neo4j.org/java/jvm for its internal query language, Cipher http://neo4j.com/docs/stable/cypher-query-lang.html There could well be opportunities for Perl 6 to become an important part of the Neo4j ecosystem.

Re: [PSA] panda doesn't precompile modules anymore

2015-08-27 Thread Parrot Raiser
Single-purpose tools that can be used in a pipeline; what a concept! :-)* On 8/27/15, Tadeusz Sośnierz tadeusz.sosni...@onet.pl wrote: This will probably impact quite a few people, so I thought I'll explain myself here :) As of now, panda will not precompile Perl 6 code anymore. This will

Books on Perl 6

2015-04-19 Thread Parrot Raiser
Apress have some books about Perl 6, http://www.apress.com/catalogsearch/result/?q=perl+6submit=Go but their dates of publishing, (c 2006) make me suspect that they are probably outdated to the point of being misleading. Is anyone sufficiently familiar with bot Perl 6 and the books to comment?

What is the latest Rakudo Star?

2015-01-03 Thread Parrot Raiser
I stopped paying attention for a bit, and lost track.

Re: Definitions: compiler vs interpreter [was: Rationale for a VM + compiler approach instead of an interpreter?]

2014-12-07 Thread Parrot Raiser
The practical distinction, surely, is that the output of a compiler is usually kept around, to be run one or more times, whereas the an interpreter always works with the original human-readable source. The distinction mattered a lot more when compiling even a trivial program involved at least the

Re: Status of Perl 6 on JVM

2014-09-07 Thread Parrot Raiser
As of last year: https://www.youtube.com/watch?v=XgPh5Li3k4g https://github.com/donaldh/rakudo http://www.infoq.com/presentations/invokedynamic Would be places to start. On 9/7/14, James E Keenan jk...@verizon.net wrote: I would like to know the best way to keep apprised of the status of

Re: how to set constants from command line?

2013-12-15 Thread Parrot Raiser
It's not really a constant he wants, but a value that's read-only to everything but the setting routine. Some sort of object, perhaps?

Re: Packaging Perl 6 (or rather, Rakudo Star)

2013-03-05 Thread Parrot Raiser
On Tue, Mar 5, 2013 at 6:07 AM, Patrick R. Michaud pmich...@pobox.com wrote: Same here. I think something more appropriate is much more likely to arrive with the go ahead and make approach than the hold off one. :) I agree with Patrick. Experimenting with the packaging now should flush out

Integers and confusion

2012-05-16 Thread Parrot Raiser
While trying to convert some Perl 5 code to 6, I encountered problems which golf down to: Perl 5 code perl -e 'my $x = int (3 / 2); print $x, \n;' works 1 First try ./perl6 -e 'my $x = int ( 3 / 2); say $x;;' ===SORRY!=== Confused

Form of I/O statements

2011-07-12 Thread Parrot Raiser
To print the contents of $skeleton to a file whose name is in $new_file, what should the code look like? I cannot find an example in the tests. Printing to STDOUT (by default) works; every attempt to write to a named file has failed. Is this another Not Yet Implemented? Executing this code: my

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

2009-06-05 Thread Parrot Raiser
If Sun's propaganda about Dtrace : http://www.sun.com/bigadmin/content/dtrace/ is anywhere near true, it sounds as though it's a wheel we won't have to invent for Parrot/Rakudo. It is apparently also available for Mac OS (Leopard) http://tinyurl.com/2xas7q

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

2009-06-04 Thread Parrot Raiser
On Wed, Jun 3, 2009 at 6:12 PM, Chris Mair ch...@1006.org wrote: Now, my problem is that perl6 code runs very slooow :( I understand this is all an early phase of development, but this is like 2 or 3 orders of magnitude slower than perl5 :( So, my question: is there something

<    1   2