Enviar búsqueda
Cargar
Perl 6 documentation covering key language features
•
0 recomendaciones
•
320 vistas
Título mejorado por IA
A
Andrew Shitov
Seguir
Tecnología
Denunciar
Compartir
Denunciar
Compartir
1 de 128
Descargar ahora
Descargar para leer sin conexión
Recomendados
Filelist
Filelist
olga_1964
aaa?&
aaa?&
AlessandroMizzaro
UNIX SHELL IN DBA EVERYDAY
UNIX SHELL IN DBA EVERYDAY
Signis Vavere
Elastic search meetup 20/9/2012
Elastic search meetup 20/9/2012
Boaz Leskes
Keynote: O PHP, Where Art Thou?
Keynote: O PHP, Where Art Thou?
DeveloperConference
The 9th Bit: Encodings in Ruby 1.9
The 9th Bit: Encodings in Ruby 1.9
Norman Clarke
Как очистить массив
Как очистить массив
Andrew Shitov
Что такое Moscow.pm (remix)
Что такое Moscow.pm (remix)
Andrew Shitov
Recomendados
Filelist
Filelist
olga_1964
aaa?&
aaa?&
AlessandroMizzaro
UNIX SHELL IN DBA EVERYDAY
UNIX SHELL IN DBA EVERYDAY
Signis Vavere
Elastic search meetup 20/9/2012
Elastic search meetup 20/9/2012
Boaz Leskes
Keynote: O PHP, Where Art Thou?
Keynote: O PHP, Where Art Thou?
DeveloperConference
The 9th Bit: Encodings in Ruby 1.9
The 9th Bit: Encodings in Ruby 1.9
Norman Clarke
Как очистить массив
Как очистить массив
Andrew Shitov
Что такое Moscow.pm (remix)
Что такое Moscow.pm (remix)
Andrew Shitov
Perl6 one-liners
Perl6 one-liners
Andrew Shitov
Creating a compiler in Perl 6
Creating a compiler in Perl 6
Andrew Shitov
Fun with Raspberry PI (and Perl)
Fun with Raspberry PI (and Perl)
Andrew Shitov
Perl6 in-production
Perl6 in-production
Andrew Shitov
Параллельные вычисления в Perl 6
Параллельные вычисления в Perl 6
Andrew Shitov
AllPerlBooks.com
AllPerlBooks.com
Andrew Shitov
Perl 6 for Concurrency and Parallel Computing
Perl 6 for Concurrency and Parallel Computing
Andrew Shitov
The Joy of Smartmatch
The Joy of Smartmatch
Andrew Shitov
YAPC::Europe 2013
YAPC::Europe 2013
Andrew Shitov
Perl 7, the story of
Perl 7, the story of
Andrew Shitov
Язык программирования Go для Perl-программистов
Язык программирования Go для Perl-программистов
Andrew Shitov
What's new in Perl 5.14
What's new in Perl 5.14
Andrew Shitov
Что нового в Perl 5.14
Что нового в Perl 5.14
Andrew Shitov
Perl6 grammars
Perl6 grammars
Andrew Shitov
Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6
Andrew Shitov
There's more than one way to empty it
There's more than one way to empty it
Andrew Shitov
Perl 6 by example
Perl 6 by example
Andrew Shitov
How to clean an array
How to clean an array
Andrew Shitov
Perl 5.10 и 5.12
Perl 5.10 и 5.12
Andrew Shitov
Say Perl на весь мир
Say Perl на весь мир
Andrew Shitov
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Más contenido relacionado
Más de Andrew Shitov
Perl6 one-liners
Perl6 one-liners
Andrew Shitov
Creating a compiler in Perl 6
Creating a compiler in Perl 6
Andrew Shitov
Fun with Raspberry PI (and Perl)
Fun with Raspberry PI (and Perl)
Andrew Shitov
Perl6 in-production
Perl6 in-production
Andrew Shitov
Параллельные вычисления в Perl 6
Параллельные вычисления в Perl 6
Andrew Shitov
AllPerlBooks.com
AllPerlBooks.com
Andrew Shitov
Perl 6 for Concurrency and Parallel Computing
Perl 6 for Concurrency and Parallel Computing
Andrew Shitov
The Joy of Smartmatch
The Joy of Smartmatch
Andrew Shitov
YAPC::Europe 2013
YAPC::Europe 2013
Andrew Shitov
Perl 7, the story of
Perl 7, the story of
Andrew Shitov
Язык программирования Go для Perl-программистов
Язык программирования Go для Perl-программистов
Andrew Shitov
What's new in Perl 5.14
What's new in Perl 5.14
Andrew Shitov
Что нового в Perl 5.14
Что нового в Perl 5.14
Andrew Shitov
Perl6 grammars
Perl6 grammars
Andrew Shitov
Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6
Andrew Shitov
There's more than one way to empty it
There's more than one way to empty it
Andrew Shitov
Perl 6 by example
Perl 6 by example
Andrew Shitov
How to clean an array
How to clean an array
Andrew Shitov
Perl 5.10 и 5.12
Perl 5.10 и 5.12
Andrew Shitov
Say Perl на весь мир
Say Perl на весь мир
Andrew Shitov
Más de Andrew Shitov
(20)
Perl6 one-liners
Perl6 one-liners
Creating a compiler in Perl 6
Creating a compiler in Perl 6
Fun with Raspberry PI (and Perl)
Fun with Raspberry PI (and Perl)
Perl6 in-production
Perl6 in-production
Параллельные вычисления в Perl 6
Параллельные вычисления в Perl 6
AllPerlBooks.com
AllPerlBooks.com
Perl 6 for Concurrency and Parallel Computing
Perl 6 for Concurrency and Parallel Computing
The Joy of Smartmatch
The Joy of Smartmatch
YAPC::Europe 2013
YAPC::Europe 2013
Perl 7, the story of
Perl 7, the story of
Язык программирования Go для Perl-программистов
Язык программирования Go для Perl-программистов
What's new in Perl 5.14
What's new in Perl 5.14
Что нового в Perl 5.14
Что нового в Perl 5.14
Perl6 grammars
Perl6 grammars
Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6
There's more than one way to empty it
There's more than one way to empty it
Perl 6 by example
Perl 6 by example
How to clean an array
How to clean an array
Perl 5.10 и 5.12
Perl 5.10 и 5.12
Say Perl на весь мир
Say Perl на весь мир
Último
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Roshan Dwivedi
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
V3cube
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
The Digital Insurer
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Enterprise Knowledge
Último
(20)
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Slack Application Development 101 Slides
Slack Application Development 101 Slides
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Perl 6 documentation covering key language features
1.
Life with Perl
2.
Life with Perl both
5 and 6
3.
Life with Perl both
5 and 6 5 stands for both 5.8.8 and 5.10
4.
Versions of Perl
(perlhist)
5.
Lyrical digression
6.
7.
Time measuring
8.
5.000 17 October
1994 5.6.0 22 March 2000 5.8.0 18 July 2002 5.8.8 31 January 2006 5.10 18 December 2008 Versions of Perl (perlhist)
9.
5.000 17 October
1994 5.6.0 22 March 2000 5.8.0 18 July 2002 5.8.8 31 January 2006 5.10 18 December 2008 6.0 ? Versions of Perl (perlhist)
10.
5.000 17 October
1994 5.6.0 22 March 2000 5.8.0 18 July 2002 5.8.8 31 January 2006 5.10 18 December 2008 6.0 Сhristmas Versions of Perl (perlhist)
11.
5.000 17 October
1994 5.6.0 22 March 2000 5.8.0 18 July 2002 5.8.8 31 January 2006 5.10 18 December 2008 6.0 2000 Versions of Perl (perlhist)
12.
Perl 6 docs,
specs, thoughts RFCs Apocalypses Exegeses Synopses
13.
5 != 6
14.
Lyrical digression
15.
Perl 5 mess
16.
Perl 6 clean-up
17.
5 != 6 4
!= 5
18.
Programme (script?) Compiler Virtual machine
(VM) Byte-code
19.
Programme (script?) Compiler Virtual machine
(VM) Byte-code
20.
Basic Forth Jako Lisp m4 Ook Perl 6 Perl 5 Python Ruby Scheme Tcl PASM IMC PBC PIR PIL
21.
C# J# VB.NET JScript.NET managed C++ Ada (A#) F# COBOL.NET FORTRAN.NET Perl.NET CLR
22.
Java JRE
23.
Most practical compilers languages/perl6
in parrot.tar.gz Perl6::* on CPAN PUGS Rakudo
24.
Most practical compilers Rakudo =
= parrot/langauges/perl6
25.
Most practical compilers Rakudo =
= parrot/langauges/perl6 + years
26.
PUGS. Made with
Haskell
27.
PUGS. Made with
Haskell Most full coverage of Perl 6 specs
28.
PUGS. Made with
Haskell Most full coverage of Perl 6 specs Needs latest version of GHC
29.
30.
It is not lyrics
31.
PUGS. Made with
Haskell Most full coverage of Perl 6 specs Needs latest version of GHC Slow
32.
PUGS. Made with
Haskell Most full coverage of Perl 6 specs Needs latest version of GHC Slow Contains tests
33.
Perl 6
34.
perl.it
35.
perl.it!
36.
UTF-8
37.
say and print say "俄罗斯新闻网";
38.
say and print say "俄罗斯新闻网"; "俄罗斯新闻网".say;
39.
say and print say "俄罗斯新闻网"; "俄罗斯新闻网".say; "俄罗斯新闻网".say();
40.
say and print say "string"; say 123; say(12 + 45);
41.
say and print say "string"; say 123; say(12 + 45); "string".say; 123.say;
42.
say and print say "string"; say 123; say(12 + 45); "string".say; 123.say; 3.14.say;
43.
String length my $str = "俄罗斯新闻网"; say $str.length;
44.
String length my $str = "俄罗斯新闻网"; say $str.length; say $str.chars; 6 say $str.bytes; 18
45.
String concatenation my $string_a = "abcde"; my $string_b = "fghij"; print $string_a . $string_b;5 print $string_a ~ $string_b;6
46.
Lyrical digression
47.
Different wishes
48.
Different wishes
49.
Variables my $string = "abcde"; my @array = (10, 20, 30); my %hash = ("one" => 10, "two" => 20);
50.
Variables my $string = "abcde"; my @array = (10, 20, 30); my %hash = ("one" => 10, "two" => 20); print $string; print $string; 5 6
51.
Variables my $string = "abcde"; my @array = (10, 20, 30); my %hash = ("one" => 10, "two" => 20); 5 6 print $array[1]; print @array[1];
52.
Variables my $string = "abcde"; my @array = (10, 20, 30); my %hash = ("one" => 10, "two" => 20); 5 6 print $hash{"one"}; print %hash{"one"};
53.
Variables my $string = "abcde"; my @array = (10, 20, 30); my %hash = ("one" => 10, "two" => 20); 5 6 print $hash{"one"}; print %hash{"one"}; print %hash<one>; print %hash<one two>;
54.
Contexts my @array = (5..10);
55.
Contexts my @array = (5..10); say ~@array; 5 6
7 8 9 10
56.
Contexts my @array = (5..10); say ~@array; 5 6
7 8 9 10 say +@array; 6
57.
Contexts my @array = (5..10); say ~@array; 5 6
7 8 9 10 say int @array; 6
58.
Contexts my @array = (5..10); say ~@array; 5 6
7 8 9 10 say int @array; 6 say ~ hash @array; 5 6 7 8 9 10
59.
Contexts my $value = 100; say $value; 100
60.
Contexts my $value = 100; say $value; 100 say ?$value; 1
61.
Subroutines sub callme ($first, $second) { say "$first, $second"; } callme(10, 20);
62.
Subroutines sub callme ($first, $second) { say "$first, $second"; } callme(10, 20); callme 10, 20;
63.
Subroutines sub callme ($first, $second) { say "$first, $second"; } callme(10, 20); callme 10, 20; callme (10, 20);
64.
Subroutines sub callme ($first, $second) { say "$first, $second"; } callme(10, 20); callme 10, 20; callme (10, 20); callme(second => 20, first => 10);
65.
Subroutines sub callme (@a, @b) { say @a ~ ", " ~ @b; } my @odd = (1, 3); my @even = (2, 4); callme @odd, @even; 1 3, 2 4
66.
Subroutines sub callme ($arg is rw) sub inc ($value, $step = 1)
67.
Anonymous subroutines my $print_line_break = { print "<br />"; } $print_line_break();
68.
Anonymous subroutines my $square = ‐> ($value) { $value ** 2; } say $square(20); 400
69.
Anonymous subroutines my $square = ‐> ($value) { $value ** 2; } say $square(20); 400 say $square 20;
70.
Cycles for @list { say $_; }
71.
Cycles for @list ‐> $value { say $value; }
72.
Cycles for @list ‐> $value { say $value; } for @list, sub ($value) { say $value; }
73.
Hyperoperators my @odd = (1, 3, 5); my @even = (2, 4, 6); my @sum = @odd »+« @even; say ~@sum; 3 7 11
74.
Hyperoperators my @odd = (1, 3, 5); my @even = (2, 4, 6); my @sum = @odd »+« @even; say ~@sum; my @next = @sum »+« 1; say ~@next;
75.
Hyperoperators my @odd = (1, 3, 5); my @even = (2, 4, 6); my @sum = @odd >>+<< @even; say ~@sum; my @next = @sum >>+<< 1; say ~@next;
76.
Hyperoperator monument
77.
Junctions say "yes" if 20 == 10 | 20 | 30; say "yes" if 20 == any (10, 20, 30);
78.
Junctions say "yes" if 20 == 10 | 20 | 30; say "yes" if 20 == any (10, 20, 30); say "no" if 21 == none (10, 20, 30);
79.
multi functions multi sub the_name ($scalar) {...} multi sub the_name ($s1, $s2) {...} multi sub the_name (@array) {...}
80.
multi functions multi sub the_name ($scalar) {...} multi sub the_name ($s1, $s2) {...} multi sub the_name (@array) {...} the_name($some_value); the_name($value1, $value2); the_name(@some_array);
81.
Overriding operators multi infix:<+> ($a, $b) { return $a ‐ $b; } say 10 + 20; ‐10
82.
Overriding operators multi postfix:<@> ($power) { return 2 ** $power; } say 8@; 256
83.
Overriding operators sub postfix:<power_of_two> ($power) { return 2 ** $power; } say 8 power_of_two; 256
84.
switch and case given ($x) { when "a" {say ...} when "b" {say ...} when /<[a‐z]>/ {...} default {...} }
85.
Smart matching ~~
86.
Smart matching $a ~~ $b == $b ~~ $a
87.
Smart matching my $b; $b ~~ undef !defined $b
88.
Smart matching my $c = 'abc'; $c ~~ 'abc' $c eq 'abc'
89.
Smart matching my @a = (1..3); my @b = (1..3); @a ~~ @b 1 == 1 && 2 == 2 && 3 == 3
90.
Smart matching my @f = ('a'..'f'); @f ~~ 'd' grep {$_ eq 'd'} @f
91.
Smart matching my %h = (a => 'alpha', b => 'beta'); %h ~~ 'a' exists $h{'a'}
92.
Smart matching my %h = (a => 'alpha', b => 'beta'); my %hh = (b => 1, a => 2); %h ~~ %hh [sort keys %h] ~~ [sort keys %hh]
93.
Smart matching Works in Perl
5.10!
94.
People think of
Perl 6
95.
I think of
today's Perl 6
96.
Classes class Alphabet { } my $abc = new Alphabet;
97.
Classes class Alphabet { has $.Name; has $Length; } my $abc = new Alphabet; $abc.Name = "Latin"; $abc.Length = 26;
98.
Classes class Alphabet { ... method info { say "$.Name; $Length"; } } $abc.info();
99.
Classes class Alphabet { method BUILD {...} method DESTROY {...} }
100.
Inheritance class Characters is Alphabet { } my $chars = new Characters; $chars.info();
101.
Inheritance class Characters is Alphabet is Unique is NonLatin { }
102.
Roles (interfaces?) role HaveName { has $Name; method GetName {return $.Name;} } class NamedAbc does HaveName {}
103.
June 2003
104.
June 2004
105.
June 2004 2005
106.
2005
107.
2007?
108.
2008?
109.
Cancelled
110.
111.
Perl 6 in Perl 5.10
112.
use feature qw( say switch state );
113.
sub f { state $c; say ++$c; } f(); f(); f(); 1 2 3
114.
// defined-or
115.
my $c = 0; my $d = $c // 3; say $d; 0 my $e = 0; my $f = $e || 4; say $f; 4
116.
Perl 6 today
is Rakudo www.rakudo.org
117.
The Way Of
The Camel Rakudа-do
118.
Rakudo cd languages/perl6/ make perl6
119.
Binding my $hour = 14; my $summertime := $hour; say $hour; $summertime++; say $hour;
120.
.WHAT class Language { has $!Name; method give_name ($newname) { $!Name = $newname; } method say_name { say "This is $!Name"; } } my $lang = Language.new(); $lang.give_name('Perl 6'); $lang.say_name();
121.
.WHAT class Language { } my $lang = Language.new(); say $lang.WHAT; say Language.WHAT;
122.
say 'before'; try { die 'Bye!'; } say 'after'; try
123.
regex language {Perl|XML}; say "ok" if 'Perl' ~~ /<language>/; say "not ok" unless 'PHP' ~~ /<language>/; Regexes
124.
More class Foo{}; my Foo $x; $x = Foo.new();
125.
More async { my @sum = @odd >>+<< @even; }
126.
More atomic { $a ‐= 100; $b += 100; }
127.
128.
__END__ Andrew Shitov mail@andy.sh |
http://andy.sh DORS/CLUC, Zagreb, 2008
Descargar ahora