Round 2... 10 Trillion Digits of Pi Same program, same computer, just a longer wait... By Alexander J. Yee & Shigeru Kondo (Last updated: September 22, 2016) December 28, 2013: The record has been improved to 12 trillion digits. For anyone who is interested, this was recently the topic of a Stack Overflow question that I answered. Although not as exciting as the first time around, we finally manag
ã§ããã¼ãå¤ããã£ãã«ã«æãè¾¼ãã¨ãã¯ããã£ã¡ãåãæ¸ãã»ããç¡é£ã¿ããã§ãã module Main where import PiMonad hiding (piStart) import PiMonad.IO.Console import PiMonad.Channel import PiMonad.Network main = piStart False Nothing mainPr mainPr :: Maybe (I (), NewP) -> PiMonad () mainPr _ = do s <- new fork $ fib 10 s s'<- recv s cout <!. show s' exit <! (0::Int) fib :: Int -> L Priv Int -> PiMonad () fib n s | n < 1 = s <! (1::Int) | o
Ï-calculus è¶ å ¥é Ï-calculus ã¯ã80 年代ã®çµããããã« Milner ãã«ãã£ã¦ææ¡ããã並è¡è¨ç®ã®ã¢ãã«ã®ä¸ã¤ã§ããããã§ã¯ãããã»ã¹ã¨å¼ã°ããè¤æ°ã®ç¬ç«ãã主ä½ããéä¿¡ãã£ãã«ã¨å¼ã°ãããã¼ã¿ã®éãéãä»ãã¦å¤ãããã¨ãããªãããè¨ç®ãè¡ã£ã¦ããã¾ããÏ-calculus ã«ã¯ãããããªå¤ç¨®ãããã®ã§ãããããã§ã¯ã¨ãããã次ã®ãããªæ§æè¦ç´ ãããªããã®ãèãã¾ãããã new x . P æ°ãããã£ãã« x ãä½ã£ã¦ãããããã»ã¹ P ãå®è¡ãã (channel creation) x![v1, ..., vn] ãã£ãã« x ã«å¤ v1, ..., vn ãéã (asynchronous output) x?[v1, ..., vn] . P ãã£ãã« x ããå¤ v1, ..., vn ãåãåã£ã¦ãP ãå®è¡ãã (input guard) P |
In theoretical computer science, the Ï-calculus (or pi-calculus) is a process calculus. The Ï-calculus allows channel names to be communicated along the channels themselves, and in this way it is able to describe concurrent computations whose network configuration may change during the computation. The Ï-calculus has few terms and is a small, yet expressive language (see § Syntax). Functional prog
I gave a talk a while back which included an interpreter for the pi-calculus, and a compiler from the lambda-calculus to it. I didn't really do justice to the material in a few slides, so here's a proper blog post. This article is available as a Literate Haskell file, which you can load into GHCi directly. The Ï-calculus If the λ-calculus is a minimal functional language, then the Ï-calculus is a
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}