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
Raku Advent Calendar (2009-2019) Something cool about Raku (formerly known as Perl 6) every day of December until the 24th Hello. Ting, ting, ting. Attention! … ATTENTION! Thank you. Hi, I’m Camelia, if you don’t know me. (Or even if you do.) They told me I had to give a speech at Perl 6’s official Coming Out Party. So here I am. Someone else is doing the roast. I’m just the toast. They told me it
先日、 Perl6で記号Hello worldする - すぎゃーんメモ perl6なので6種類の記号だけでプログラムを書く - すぎゃーんメモ の2つの記事でPerl6の記号プログラムを紹介したけど、その作り方については何も言及していなかったので ちゃんと書いておこうと思います。 おさらい: Perl5における記号プログラムの基礎 Perl5における記号プログラミングの手法は古くから確立されていて、 記号だけのPerlプログラミングの基本原理 - JPerl Advent Calendar 2010 Sym Track の記事にも全貌が載っていますが、要するに「任意のプログラム文字列を排他的論理和(XOR)を使って生成し、それを拡張正規表現を利用してevalする」という方法です。 01100000 => 0x60 ('`') ^) 00100001 => 0x21 ('!') ------
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く