ãHow to build a High Performance PSGI/Plack Serverãã®ãã®å¾ã¨ ISUCON3ãåãã¦ã®è©±é¡
ãã®ææ¸ã¯ããã°ã©ãã³ã°è¨èªRakuã®å ¨ä½åãç´ æ©ãã¤ããã§ããããã¨ãç®çã¨ãã¦æ¸ããããã®ã§ãã ã¾ã Rakuã触ã£ããã¨ã®ãªãèªè ã®æ¹ã ããããããRakuãã¯ããã¦ããããã¨ãçãã¨ãã¦ãã¾ãã
Autothreaded junctions Best part? Junctions are autothreaded, meaning they are a hint to the compiler it can evaluate them on multiple threads! Promises I don't always write concurrent code, but when I do, it's THIS simple: 1: start { sleep 3; say "two" }; 2: say "one"; 3: sleep 5; 4: say "three"; # OUTPUT: # one # two # three Promises Concurrent / asynchronous code: 1: my @promises = ^3 .map: { 2
Perl6 ã®ãã£ããããæ°åçæã«ã¤ãã¦ã®è§£èª¬ mattn ããã°ã§ç´¹ä»ããã¦ãã Perl6 ã®ãã£ããããæ°åãå¥å¦ã«è¦ãã人ãå¤ããããªã®ã§ãã¾ã¨ããªè§£èª¬ã ref. http://mattn.kaoriya.net/software/lang/perl6/20151026144119.htm ãã£ããããæ°åã¨ã¯ä»¥ä¸ã®ãããªæ°åã§ãã 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 æåã®2ã¤ã®æ°åã 1, 1 ã§ãã¦ããã®å¾ã®ãã®ã¯ç´å2ã¤ã®æ°åãè¶³ãããã®ã§ãã ãã£ã¦ãPerl5 ã§è¨è¿°ããå ´åãå é 10åã®ãã£ããããæ°åãæ±ããã«ã¯ä»¥ä¸ã®ããã«ãªãã¾ãã use v5.16.0; sub fib { state %memo; # ä¸å¿ memoize ãããã¯ãã¦ãã my $n = shift; $memo{$n} //= do { if ($n =
Perl ã«ã¯ x æ¼ç®åããããx 3 ã¨ãã£ãå ·åã«ç¹°ãè¿ãåæ°ãä»ããäºã§é£ç¶ããæååãç°¡åã«ä½ãåºããã¨ãåºæ¥ãã say 1 x 3; # 111 say "foo" x 3; # foofoofoo ãã㯠Perl5 ã§ãã馴æã¿ãããã Perl6 ã® Range ã¯åãã say 1 xx 3; # (1 1 1) say "foo" xx 3; # (foo foo foo) é£ç¶ããé åè¦ç´ ãä½ãåºãããããã©ãããç¡éãªã¹ããä½ãåºããã say 1 xx *; # (...) say "foo" xx *; # (...) ãã¡ããç¡éæ°åãä½ããã (1 .. *)[^10].perl.say; # (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) fibonacci æ°åããããªã«ç°¡åã (1, 1, *+* ...^ *)[^100].per
ãã¨ãã°ãããªã Rakudo Star ã§ã¯ã©ããå®è£ æ¸ã¿ãä»ãã使ãã¾ãã å¼·åãããæ£è¦è¡¨ç¾ Perl 6 ã®å ¬å¼ãªãã¼ãµèªä½ã Perl 6 ã®æ£è¦è¡¨ç¾ã§æ¸ããã¦ãã¾ãã â¦â¦ã¯ç½®ãã¨ãã¦ã10è¡ã¡ãã£ã¨ã§ CSV ããã¼ã¹ããæ£è¦è¡¨ç¾ãæ¸ãããã¯ã©ã¼ããããå¤ã«ãè¤æ°è¡ã«ã¾ãããå¤ã«ã対å¿ã # CSV ã¯ã©ã¹ã¯ä»¥ä¸ã®ãã®ãä¿®æ£ãã¦ä½¿ã£ã¦ãã¾ã # http://github.com/masak/csv/blob/master/lib/Text/CSV.pm # æ£è¦è¡¨ç¾ãã¾ã¨ãã grammar ï¼ã¯ã©ã¹ã®ä¸ç¨®ï¼ grammar CSV { regex TOP { ^ <line> ** \n <empty_line>? $ } regex line { <value> ** ',' } regex value { | <pure_text> | \s* \" <quoted_
ã©ã³ãã³ã°
ã¡ã³ããã³ã¹
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}