State: You're Doing It Wrong - Alternative Concurrency Paradigms For The JVMAI-enhanced description The document discusses alternative concurrency paradigms for the JVM, emphasizing the shortcomings of traditional shared-state concurrency and the rise of multi-processor systems. It introduces software transactional memory (STM), message-passing concurrency (actors), and dataflow concurrency as via
The Santa Claus Problem Simon Peyton Jones, in "Beautiful Concurrency", [1] a chapter of Beautiful Code, presents the Santa Claus problem and a solution: A well-known example is the so-called Santa Claus problem, originally attributed to Trono: [2] Santa repeatedly sleeps until wakened by either all of his nine reindeer, back from their holidays, or by a group of three of his ten elves. If awakene
RISE rapport över första halvåret visar på en stark utveckling relativt föregående år. Vi ser fortsatt att behovet av forskning och innovation är stort inför de utmaningar som både industri och samhälle står inför. RISE rapport över första halvåret visar på en stark utveckling relativt föregående år. Vi ser fortsatt att behovet av forskning och innovation är stort inför de utmaningar som både indu
あまり強調されないようですが、Erlangでは、その構文と実行メカニズムとがあいまって、状態遷移のプログラミングがとても容易です。 例題として、正規表現 /aa?b*c/ とマッチする文字列を認識するオートマトンを作ってみましょう。まず、状態遷移図を描き*1、それから遷移表を書きます。図と表のなかで、EOSは End Of String のマーカー、◎は終状態です 遷移表: 0から3までの各状態について、入力ごとの遷移先は次の通り。×はエラーです。 状態 文字a 文字b 文字c EOS その他 0 1 × × × × 1 2 2 3 × × 2 × 2 3 × × 3 × × × ◎ × この表を見ながら、Erlangコードを書きます。以下のような感じ。 accept(N) -> % 引数Nが状態 case N of 0 -> receive $a -> accept(1); _ -> e
Smerl: Simple Metaprogramming for Erlang Posted by Yariv on August 14, 2006 Quick download link: smerl.erl Update (8/14/06, 11:11PM ET): I added to smerl.erl the function has_func, which queries whether a module has a given function. Update (8/14/06, 11:24PM ET): Take that, Ivan the Mean Java Dev! :) Update (8/14/06, 11:56PM ET): A few minor bug fixes Update (8/15/06, 14:55PM ET): Added smerl:
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く