Soumettre la recherche
Mettre en ligne
Новое в Perl 5.10
•
0 j'aime
•
328 vues
A
Andrew Shitov
Suivre
Technologie
Signaler
Partager
Signaler
Partager
1 sur 62
Télécharger maintenant
Télécharger pour lire hors ligne
Recommandé
Perl 5.10
Perl 5.10
Andrew Shitov
Ежедневно миллионы людей пользуются сервисами Яндекса и месяц от месяца число посетителей на наших сервисах растёт. Обновление существующих проектов в условиях возрастающей нагрузки и запуск совершенно новых проектов невозможен без проведения соответствующего тестирования. Мы расскажем про «Лунапарк» – инструмент нагрузочного тестирования, который был разработан и внедрен в Яндексе. Вы узнаете, как, зачем и почему мы создавали свой инструмент. Также мы обсудим риски, связанные с созданием собственного инструмента, и те преимущества, которые он может дать.
Танки в Лунапарке: нагрузочное тестирование в Яндексе
Танки в Лунапарке: нагрузочное тестирование в Яндексе
yaevents
Александр Грибанов, Senior Java Script developer
Yeoman is awesome
Yeoman is awesome
DataArt
Criptografía. Extraido de: https://cs.uns.edu.ar/~ldm/mypage/data/ss/apuntes/2017-modulo4.pdf. Material perteneciente a la: Universidad Nacional del Sur. Departamento de Ciencias e Ingeniería de la Computación. Buenos Aires - Argentina.
Criptografía
Criptografía
Samary Páez
Jani Aaltonen Sales Communications Oy presentaatio asiakas-aamiaisella 14.6.2016
Inbound aamiainen 14.6.2016
Inbound aamiainen 14.6.2016
Jani Aaltonen
Si tuvierais fe. lc 17,5 10
Si tuvierais fe. lc 17,5 10
Si tuvierais fe. lc 17,5 10
josezarra
Фрагменты Perl 6 в Perl 5.10
Фрагменты Perl 6 в Perl 5.10
Andrew Shitov
5-10 impact 2 low unboxing
5-10 impact 2 low unboxing
BikeWorks
Recommandé
Perl 5.10
Perl 5.10
Andrew Shitov
Ежедневно миллионы людей пользуются сервисами Яндекса и месяц от месяца число посетителей на наших сервисах растёт. Обновление существующих проектов в условиях возрастающей нагрузки и запуск совершенно новых проектов невозможен без проведения соответствующего тестирования. Мы расскажем про «Лунапарк» – инструмент нагрузочного тестирования, который был разработан и внедрен в Яндексе. Вы узнаете, как, зачем и почему мы создавали свой инструмент. Также мы обсудим риски, связанные с созданием собственного инструмента, и те преимущества, которые он может дать.
Танки в Лунапарке: нагрузочное тестирование в Яндексе
Танки в Лунапарке: нагрузочное тестирование в Яндексе
yaevents
Александр Грибанов, Senior Java Script developer
Yeoman is awesome
Yeoman is awesome
DataArt
Criptografía. Extraido de: https://cs.uns.edu.ar/~ldm/mypage/data/ss/apuntes/2017-modulo4.pdf. Material perteneciente a la: Universidad Nacional del Sur. Departamento de Ciencias e Ingeniería de la Computación. Buenos Aires - Argentina.
Criptografía
Criptografía
Samary Páez
Jani Aaltonen Sales Communications Oy presentaatio asiakas-aamiaisella 14.6.2016
Inbound aamiainen 14.6.2016
Inbound aamiainen 14.6.2016
Jani Aaltonen
Si tuvierais fe. lc 17,5 10
Si tuvierais fe. lc 17,5 10
Si tuvierais fe. lc 17,5 10
josezarra
Фрагменты Perl 6 в Perl 5.10
Фрагменты Perl 6 в Perl 5.10
Andrew Shitov
5-10 impact 2 low unboxing
5-10 impact 2 low unboxing
BikeWorks
During the talk, I will show a number of short Perl 6 fragments (mostly one-liners), that can express complex problems in a very concise way. We will also solve a few problems from Project Euler, where Perl 6 can demonstrate its extreme beauty.
Perl6 one-liners
Perl6 one-liners
Andrew Shitov
I will show how to create an interpreter for a simple programming language using Perl 6 grammars. This talk is not an introduction to Perl 6 regexes and grammars, so we'll use them straight on, but I will add comments so that you can understand what's going on even if you never tried Perl 6 grammars. There will not be enough time to write the whole compiler, of course, but I will show how you can do that at home.
Creating a compiler in Perl 6
Creating a compiler in Perl 6
Andrew Shitov
Short stories about playing with Raspberry Pi for couple of years
Fun with Raspberry PI (and Perl)
Fun with Raspberry PI (and Perl)
Andrew Shitov
A brief historical overview of how Perl 6 was used to make web sites in the past, and how you can use it today to run the Plack/PSGI-based site.
Perl6 in-production
Perl6 in-production
Andrew Shitov
Краткий обзор возможностей Perl 6 для явного и неявного распараллеливания вычислений.
Параллельные вычисления в Perl 6
Параллельные вычисления в Perl 6
Andrew Shitov
Announcing the site with the collection of the Perl book covers ever printed on paper.
AllPerlBooks.com
AllPerlBooks.com
Andrew Shitov
Features available in Perl 6 out of the box for parallel computation and concurrency
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
The YAPC::Europe 2013 annual Perl conference info from the organisers.
YAPC::Europe 2013
YAPC::Europe 2013
Andrew Shitov
The story of the big public discussion happened in the beginning of 2013 about the future naming of the Perl programming language.
Perl 7, the story of
Perl 7, the story of
Andrew Shitov
Введение в язык программирования Go с интересными примерами.
Язык программирования Go для Perl-программистов
Язык программирования Go для Perl-программистов
Andrew Shitov
Подборка смешных способов очистки массива в перле.
Как очистить массив
Как очистить массив
Andrew Shitov
An overview of new features appeared in the version 5.14 of the Perl programming language.
What's new in Perl 5.14
What's new in Perl 5.14
Andrew Shitov
Обзор новых возможностей версии Perl 5.14
Что нового в Perl 5.14
Что нового в Perl 5.14
Andrew Shitov
Perl6 grammars
Perl6 grammars
Andrew Shitov
1. Using Perl 5.10 for parsing search queries like "99 EUR in LVL". 2. Perl 6 grammars. 3. Gearman.
Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6
Andrew Shitov
Funny story of how Perl people can clear an array.
There's more than one way to empty it
There's more than one way to empty it
Andrew Shitov
Going through existing Perl 6 programmes to see how early adopters use the language today, before Perl 6 is completed in any sence.
Perl 6 by example
Perl 6 by example
Andrew Shitov
Summary of how Moscow.pm people carry out "@a = ()" action.
How to clean an array
How to clean an array
Andrew Shitov
О новых возможностях, появившихся в свежих версиях Perl.
Perl 5.10 и 5.12
Perl 5.10 и 5.12
Andrew Shitov
Contenu connexe
Plus de Andrew Shitov
During the talk, I will show a number of short Perl 6 fragments (mostly one-liners), that can express complex problems in a very concise way. We will also solve a few problems from Project Euler, where Perl 6 can demonstrate its extreme beauty.
Perl6 one-liners
Perl6 one-liners
Andrew Shitov
I will show how to create an interpreter for a simple programming language using Perl 6 grammars. This talk is not an introduction to Perl 6 regexes and grammars, so we'll use them straight on, but I will add comments so that you can understand what's going on even if you never tried Perl 6 grammars. There will not be enough time to write the whole compiler, of course, but I will show how you can do that at home.
Creating a compiler in Perl 6
Creating a compiler in Perl 6
Andrew Shitov
Short stories about playing with Raspberry Pi for couple of years
Fun with Raspberry PI (and Perl)
Fun with Raspberry PI (and Perl)
Andrew Shitov
A brief historical overview of how Perl 6 was used to make web sites in the past, and how you can use it today to run the Plack/PSGI-based site.
Perl6 in-production
Perl6 in-production
Andrew Shitov
Краткий обзор возможностей Perl 6 для явного и неявного распараллеливания вычислений.
Параллельные вычисления в Perl 6
Параллельные вычисления в Perl 6
Andrew Shitov
Announcing the site with the collection of the Perl book covers ever printed on paper.
AllPerlBooks.com
AllPerlBooks.com
Andrew Shitov
Features available in Perl 6 out of the box for parallel computation and concurrency
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
The YAPC::Europe 2013 annual Perl conference info from the organisers.
YAPC::Europe 2013
YAPC::Europe 2013
Andrew Shitov
The story of the big public discussion happened in the beginning of 2013 about the future naming of the Perl programming language.
Perl 7, the story of
Perl 7, the story of
Andrew Shitov
Введение в язык программирования Go с интересными примерами.
Язык программирования Go для Perl-программистов
Язык программирования Go для Perl-программистов
Andrew Shitov
Подборка смешных способов очистки массива в перле.
Как очистить массив
Как очистить массив
Andrew Shitov
An overview of new features appeared in the version 5.14 of the Perl programming language.
What's new in Perl 5.14
What's new in Perl 5.14
Andrew Shitov
Обзор новых возможностей версии Perl 5.14
Что нового в Perl 5.14
Что нового в Perl 5.14
Andrew Shitov
Perl6 grammars
Perl6 grammars
Andrew Shitov
1. Using Perl 5.10 for parsing search queries like "99 EUR in LVL". 2. Perl 6 grammars. 3. Gearman.
Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6
Andrew Shitov
Funny story of how Perl people can clear an array.
There's more than one way to empty it
There's more than one way to empty it
Andrew Shitov
Going through existing Perl 6 programmes to see how early adopters use the language today, before Perl 6 is completed in any sence.
Perl 6 by example
Perl 6 by example
Andrew Shitov
Summary of how Moscow.pm people carry out "@a = ()" action.
How to clean an array
How to clean an array
Andrew Shitov
О новых возможностях, появившихся в свежих версиях Perl.
Perl 5.10 и 5.12
Perl 5.10 и 5.12
Andrew Shitov
Plus 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
Новое в Perl 5.10
1.
Perl 5.10
2.
CPAN perl-5.10.0-RC1
3.
#!/perl5.10/bin/perl > perl5.10 script.pl
4.
use feature
5.
use feature qw( say switch state );
6.
use feature qw( say switch state ); use feature quot;:5.10quot;;
7.
use feature qw( say switch state ); use feature quot;:5.10quot;; use 5.10.0;
8.
use feature qw( say switch state ); use feature quot;:5.10quot;; use v5.10.0;
9.
#!/perl5.10/bin/perl use feature quot;***quot;;
10.
#!/perl5.10/bin/perl use feature quot;sayquot;; say quot;Perl 6?quot;;
11.
#!/perl5.10/bin/perl use feature quot;sayquot;; say quot;Perl 6?quot;; no feature quot;sayquot;;
12.
> perl5.10 ‐e quot;use feature qw(say); say $$;quot;
13.
> perl5.10 ‐e quot;use feature qw(say); say $$;quot; > perl5.10 ‐E quot;say $$;quot;
14.
// defined‐or
15.
my $a; my $b = $a // 2; say $b; 2
16.
my $c = 0; my $d = $c // 3; say $d; 0 my $e = 0; my $f = $e || 4; say $f; 4
17.
my $_;
18.
for (1..5) { my $_ = '*'; print; } *****
19.
$::_
20.
for (1..5) { my $_ = '*'; print $::_; } 12345
21.
our $_;
22.
for (1..5) { our $_ = '*'; print $::_; } *****
23.
> perl5.10 ‐E quot;say for 1..3quot; > perl6 ‐e quot;say for 1..3quot;
24.
> perl5.10 ‐E
1 quot;say for 1..3quot; 2 3 n > perl6 ‐e n quot;say for 1..3quot; n
25.
use strict 'refs'; my $x = '***'; print 1 if defined $$x;
26.
use strict 'refs'; my $var = '***'; print defined $$var ? 'yes' : 'no'; > perl5.8.8 test.pl no
27.
use strict 'refs'; my $var = '***'; print defined $$var ? 'yes' : 'no'; > perl5.10 test.pl Can't use string (quot;xxxquot;) as a SCALAR ref while quot;strict refsquot; in use at test.pl line 3.
28.
~~
29.
use feature 'say'; my $date = 'Thu 22 November, 2007'; say 'Today' if $date ~~ /Thu/;
30.
use feature 'switch';
31.
use feature qw(switch say); my $tag = 'perlrus08'; given ($tag) { when ('perlrus08') { say 'Yes'; } }
32.
use feature qw(switch say); my $tag = 'perlrus08'; given ($tag) { when ('perlrus08') { say 'Yes'; } default {say 'No';} }
33.
when (123) when ($value) when (undef) when ([2001..2100]) when (/d+/)
34.
when ($_ > 0) when (int) when (int $_) when (&test_the_value) when (test_the_value($_))
35.
given ('perlrus08') { when (/d+/) { say 'digits'; continue; } when (/perl/i) { say 'Perl'; } }
36.
when ($what)
== when ($_ ~~ $what)
37.
$left ~~ $right
== $right ~~ $left
38.
use feature 'state';
39.
sub counter{ state $value = 0; $value++; say $value; } counter(); 1 counter(); 2 counter(); 3
40.
Регулярные выражения
41.
Именованные буферы my $date = 'Thu 22 November 2007'; $date =~ / ( w+ ) s+ ( d+ ) s+ ( w+ ) s+ ( d{4}) /x; say $1; Thu say $4; 2007
42.
Именованные буферы my $date = 'Thu 22 November 2007'; $date =~ / (?<wday> w+ ) s+ (?<day> d+ ) s+ (?<month> w+ ) s+ (?<year> d{4}) /x; say $+{wday}; Thu say $+{year}; 2007
43.
Именованные буферы my $date = 'Thu 22 November 2007'; $date =~ s/ (?<year>d{4}) / $+{year} + 1 /xe; say $date; Thu 22 November 2008
44.
my $code = 'my $value = 100; say $value;'; $code =~ s/ my s* (?<variable> $[a‐z]+) s* = s* (?<value> [^;]+ ) s* ; s* (?<other_code>.*?) (k<variable>) /$+{other_code}$+{value}/x; say $code; say 100;
45.
my $leap_years = '1992 1996 2004 2008'; $leap_years =~ m/ ( ?<year> 1 d{3} ) s* ( ?<year> 2 d{3} ) /x; say $_ for @{$‐{year}}; 1996 2004
46.
my $leap_years = '1992 1996 2004 2008'; $leap_years =~ m/ ( ?<year> 1 d{3} ) /gx; say $_ for @{$‐{year}}; 1992
47.
my $leap_years = '1992 1996 2004 2008'; $leap_years =~ m/ ( ?<year> 1 d{3} s* )+ /gx; say $_ for @{$‐{year}}; 1996
48.
use feature 'say'; my $expr = '1 + (2 + (3 + (4 + 5) + 6))'; $expr =~ s/ ( ( [^()]+ ) | (?1) ) /say $1;/xge;
49.
Posessive quantifiers
?+ *+ ++ {min, max}+
50.
/ quot; (?: [^quot;]++ | . )*+ quot; /x
51.
(?| ...)
52.
my $re = qr/ (d{4})(dd)(dd) | (w+),s*(d{4})) /x; '20071122' =~ $re; say quot;$1 . $2 . $3quot;; 'November, 2007' =~ $re; say quot;$4 . $5quot;;
53.
my $re = qr/ (?|(d{4})(dd)(dd) | (w+),s*(d{4}))) /x; '20071122' =~ $re; say quot;$1 . $2 . $3quot;; 'November, 2007' =~ $re; say quot;$1 . $2quot;;
54.
g{N} gN
55.
g{‐N}
56.
k<named> == g{named}
57.
K
58.
v h
59.
V H
60.
R
61.
R
(?> x0Dx0A? | [ x0A‐x0C x85 x{2028} x{2029} ] )
62.
__END__ __DATA__ Андрей Шитов — 2007 andy@shitov.ru | http://shitov.ru
Télécharger maintenant