Re: Perl6 vs Julia

2019-12-09 Thread Andrew Kirkpatrick
I think the motivation for Julia was that nothing delivered both the performance and flexibility they wanted for numeric programming. C/C++ are too static and dangerous, Matlab proprietary, (not sure what they don't like about Octave), Java too verbose and lacking in numeric primitives, Common

Re: nil mystery

2018-04-30 Thread Andrew Kirkpatrick
, ToddAndMargo <toddandma...@zoho.com> wrote: > >> On Sun, Apr 29, 2018 at 10:20:48PM -0700, ToddAndMargo wrote: >>> >>> On 04/29/2018 10:12 PM, ToddAndMargo wrote: >>>> >>>> On 04/29/2018 09:32 PM, Andrew Kirkpatrick wrote: >>>>> &

Re: nil mystery

2018-04-29 Thread Andrew Kirkpatrick
There is not enough context to answer or even reproduce the problem - how are the variables declared and what values do they have just prior to this line? Also, what version of rakudo? On 30 April 2018 at 11:29, ToddAndMargo wrote: > Hi All, > > These two throw an

Re: who own my code?

2017-10-21 Thread Andrew Kirkpatrick
You'll need to read up on the laws in your area, but generally contracts have IP ownership clauses to ensure the employer ends up with it. Without a contract, it's seems likely there was no such transfer and you remain the owner. On 21 Oct 2017 8:26 PM, "ToddAndMargo"

Re: Tip: hash indexing

2017-10-03 Thread Andrew Kirkpatrick
Thanks, your script enticed me to explore different ways of constructing a hash table. I dimly recall something about map having access to an index variable, but couldn't find it documented so maybe I was dreaming. The process of figuring out these approaches highlighted that so much perl6

Re: Announce: Rakudo Star Release 2017.07

2017-07-25 Thread Andrew Kirkpatrick
I assume the meaning is, roughly when is the implementation expected to cover the entire spec? Answering this is probably an exercise in futility, because its up to the community and not anyone in particular. On 25 July 2017 at 17:00, Elizabeth Mattijsen wrote: >> On 25 Jul

Re: Security and modules question

2017-07-18 Thread Andrew Kirkpatrick
I suggest keeping a separate installation of perl6 if you are going to use it as root, and maintaining strict permissions by setting an appropriate umask such as 0077 in root's ~/.profile On 19 July 2017 at 10:53, Todd Chester wrote: > Hi All, > > I have been wondering

Re: clone and deep copy of arrays

2017-07-11 Thread Andrew Kirkpatrick
I presume that this is somewhat accurate: https://rosettacode.org/wiki/Deepcopy#Perl_6 On 11 July 2017 at 19:56, Gabor Szabo wrote: > Hi, > > I wonder what does .clone do and how can I create a deep copy or deep > clone of an array? > > Reading

Re: for loop index question

2017-02-28 Thread Andrew Kirkpatrick
The zip operator in this case takes two sequences and interleaves them into a single sequence. It might be useful if you have handy or can generate a list of keys and a list of values you want to put together in pairs using => to create a hash table. Your explicit approach makes sense for

Re: tail call optimization

2016-11-17 Thread Andrew Kirkpatrick
Perl5 goto definitely doesn't grow the stack: perl -E '$n = 0; sub wah { return if $_[0] < 1; $n++; @_=($_[0]-1); goto }; wah(shift); say "done $n"' 1000 But IIRC goto is more about fooling caller() than TCO, so its not that really fast thing some users expect. On 18 November 2016 at

Re: Killer Features of Perl 6

2016-08-20 Thread Andrew Kirkpatrick
Numeric tower String manipulation at the byte, code-point and character levels Metaoperators NativeCall Multiple dispatch Rich and gradual type system Inline::* modules especially Inline::Perl5 Junctions Laziness On 21 August 2016 at 08:46, Steve Mynott wrote: > Grammars

Re: Perl 6 Advocacy Suggestion

2016-01-20 Thread Andrew Kirkpatrick
I agree that getting Perl6 into the curricula is a good idea, and comparing it to Python if done reasonably and politely would help the cause of those who want to migrate their course over. That said I don't think that those fine folk on Perlmonks are all that correct about the lack of a business

Re: signature to preserve @*ARGFILES ?

2015-12-01 Thread Andrew Kirkpatrick
@yary, I'm using linux and for your program with the sole option -t Rakudo 2015.07.2: (Bool) :True: Rakudo 2015.11: Usage: /tmp/test.pl6 [-t=] [<*ARGS> ...] On 2 December 2015 at 02:36, yary wrote: > This variation confuses me. I expect $t to be constrained to "Str", > but

Re: signature to preserve @*ARGFILES ?

2015-11-28 Thread Andrew Kirkpatrick
Tangentally related, I gave this program a go and the first separator I tried was a space, but found that while other strings work, one or more spaces doesn't. I tried -t and --t, with or without an equals sign to no avail: $ ./padded-cols.pl6 -t=" " padded.txt Cannot invoke this object in

Re: What are Perl 6's killer advantages over Perl 5?

2015-08-11 Thread Andrew Kirkpatrick
Built-in facilities for the language to parse, transform and extend itself (std grammar, macros). Prospect of multiple back-ends (compile to dotnet or LLVM targets like Javascript). Feel like you're living in the future (Perl6 has been in the future for so long now). On 11 August 2015 at 21:42,

Re: perl6-mode for Emacs?

2015-04-23 Thread Andrew Kirkpatrick
I noticed this a few days back, haven't tried it yet though: http://melpa.org/#/perl6-mode On 24 April 2015 at 09:17, Andrew Pennebaker andrew.penneba...@gmail.com wrote: Could someone publish a perl6-mode to MELPA for Emacs users? -- Cheers, Andrew