Re: Where to start?

2016-11-18 Thread Moritz Lenz
Hi,

On 19.11.2016 03:34, ToddAndMargo wrote:
> Hi All,
> 
> I just install rakudi-star in my Fedora 24 virtual machine.
> 
> I know how to program and run things in perl 5.
> 
> Can someone point me to a how to that will show me the
> basic template for running a perl 6 program in Linux.

#!/usr/bin/env /path/to/your/rakudo/inst/bin/perl6

use v6;


> Also, do I need to run perl6 through a compiler or
> does it compile on the fly like perl 5?

There's no separate compilation step.

Cheers,
Moritz

-- 
Moritz Lenz
https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/


Re: Where to start?

2016-11-18 Thread ToddAndMargo

On 11/18/2016 06:34 PM, ToddAndMargo wrote:

Hi All,

I just install rakudi-star in my Fedora 24 virtual machine.

I know how to program and run things in perl 5.

Can someone point me to a how to that will show me the
basic template for running a perl 6 program in Linux.

Also, do I need to run perl6 through a compiler or
does it compile on the fly like perl 5?

In perl 5, the first line was
#!/usr/bin/perl
which told the os how to run it (on the fly).

And my template was:

#!/usr/bin/perl

use strict;
use warnings;
#use diagnostics;
#use diagnostics "-verbose";
use lib;  # fill name of lib in

use constant false => 0;
use constant true  => 1;


Anyway, I am confused.  Where do I start?

Many thanks,
-T



Sorry for the dumb question, but googling it only gets me perl5
instructions.

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~




Where to start?

2016-11-18 Thread ToddAndMargo

Hi All,

I just install rakudi-star in my Fedora 24 virtual machine.

I know how to program and run things in perl 5.

Can someone point me to a how to that will show me the
basic template for running a perl 6 program in Linux.

Also, do I need to run perl6 through a compiler or
does it compile on the fly like perl 5?

In perl 5, the first line was
#!/usr/bin/perl
which told the os how to run it (on the fly).

And my template was:

#!/usr/bin/perl

use strict;
use warnings;
#use diagnostics;
#use diagnostics "-verbose";
use lib;  # fill name of lib in

use constant false => 0;
use constant true  => 1;


Anyway, I am confused.  Where do I start?

Many thanks,
-T

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~




Re: What is rakudo-star?

2016-11-18 Thread _ ifdog
So why there is not a star release of 2016.10 for windows ?



在 ToddAndMargo ,2016年11月19日 10:02写道:

On Fri, Nov 18, 2016 at 8:54 PM, ToddAndMargo 
> wrote:
Is this the right perl 6 for Fedora?

rakudo-star-0.0.2016.07-1.fc24.x86_64.rpm

Many thanks,
-T

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~

On 11/18/2016 05:58 PM, Brandon Allbery wrote:
Star is the packaged, stable release for users. It's what you will find in most 
package managers. People working on rakudo itself work out of git or use 
unstable snapshot releases.

That explains it.  Thank you!


Re: What is rakudo-star?

2016-11-18 Thread ToddAndMargo

  
  

  On Fri, Nov 18, 2016 at 8:54 PM,
ToddAndMargo 
wrote:
Is this the
  right perl 6 for Fedora?
  
  rakudo-star-0.0.2016.07-1.fc24.x86_64.rpm
  
  Many thanks,
  -T
  
  -- 
  ~~
  Computers are like air conditioners.
  They malfunction when you open windows
  ~~
  

  
  On 11/18/2016 05:58 PM, Brandon Allbery wrote:


  Star is the packaged, stable release for users.
It's what you will find in most package managers. People working
on rakudo itself work out of git or use unstable snapshot
releases.


That explains it.  Thank you!
  




Re: What is rakudo-star?

2016-11-18 Thread Brandon Allbery
Star is the packaged, stable release for users. It's what you will find in
most package managers. People working on rakudo itself work out of git or
use unstable snapshot releases.

On Fri, Nov 18, 2016 at 8:54 PM, ToddAndMargo  wrote:

> Is this the right perl 6 for Fedora?
>
> rakudo-star-0.0.2016.07-1.fc24.x86_64.rpm
>
> Many thanks,
> -T
>
> --
> ~~
> Computers are like air conditioners.
> They malfunction when you open windows
> ~~
>
>
>


-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net


What is rakudo-star?

2016-11-18 Thread ToddAndMargo

Is this the right perl 6 for Fedora?

rakudo-star-0.0.2016.07-1.fc24.x86_64.rpm

Many thanks,
-T

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~




Re: tail call optimization

2016-11-18 Thread Luca Ferrari
On Fri, Nov 18, 2016 at 4:57 AM, Andrew Kirkpatrick  wrote:
> But IIRC goto  is more about fooling caller() than TCO, so its
> not that really fast thing some users expect.

Yes, it's more a way to not change the call stack than to optimize it.

Luca