words[] question

2018-09-25 Thread Todd Chester

Hi All,

https://docs.perl6.org/routine/words
is no help

Not to ask too obvious a question, but why does words use a []
instead of a () ?


$ ls -al Win10_1803_English_x64.dd
-rwxrwxrwx. 1 todd root 7927234560 May  9 21:14 Win10_1803_English_x64.dd


$ ls -al Win10_1803_English_x64.dd | p6 'my $x = slurp(); say $x.words[4]'
7927234560


This is not the forth word:

$ ls -al Win10_1803_English_x64.dd | p6 'my $x = slurp(); say $x.words(4)'
(-rwxrwxrwx. 1 todd root)


Many thanks,
-T


Another way to read a pipe.  The "n" must come before the "e"

$ ls -al Win10_1803_English_x64.dd | perl6 -ne 'say $_.words[4]'
2730070016


Re: Installing Perl6 on shared server

2018-09-25 Thread Richard Hainsworth
Further to this question. Support staff at hosting company just informed 
me that for the plan I have at present, the following limits are in place:


60 seconds CPU execution time per process
195MB of RAM per process
20 simultaneous processes

I'm not sure which of these is limiting the compilation of rakudo.



On 26/09/18 11:32, yary wrote:

c) Any other suggestions?

csh
unlimit
unlimit -h
make

-y





Re: Installing Perl6 on shared server

2018-09-25 Thread Richard Hainsworth

csh => OS accepted

unlimit => OS accepted

unlimit -h => several messages about not releasing hard limits

make => same problem as before, failure to allocate during parse stage.


On 26/09/18 11:32, yary wrote:

c) Any other suggestions?

csh
unlimit
unlimit -h
make

-y





Re: Installing Perl6 on shared server

2018-09-25 Thread yary
c) Any other suggestions?

csh
unlimit
unlimit -h
make

-y


Installing Perl6 on shared server

2018-09-25 Thread Richard Hainsworth

Hi,

I'm trying to install perl6 on a commercial server. The OS is Debian 
Stretch. The hosting service does not allow root access, so everything 
must be done with user permission. I do not have access to apt. Snap 
package cannot be installed.


My intention is also to set up CRO and develop a web site there.

I have uploaded rakudo-star, and run the Configure.pl routine 
successfully. However, during the make phase, during the long PARSE 
stage, I get a persistent error: MOAR panicĀ  unable to allocate xxx bytes.


On each occasion I have tried this, I get a different value of xxx, from 
15,000 to 48bytes. The assumption is that memory depends on other 
users/processes on the server.


The support staff is not being helpful (they claim userspace is 32-bit, 
but uname indicates a 64-bit OS is being used, so I don't understand 
their 32-bit concern).


Some questions:

a) Is there a rakudo package for debian Stretch I can install? (I'm just 
asking, but I doubt it).


b) Is there a way to reduce the memory demands of MOAR during the Parse 
phase?


c) Any other suggestions?


Richard