2016-03-01ãã1ã¶æéã®è¨äºä¸è¦§
ï¼ï¼éååå¦ãå¦ã³å§ãã ä»å¹´ã«ãªã£ã¦ãããéååå¦é¢ä¿ã®æ¬ãå¤èªããããããããªãã¨ãåãã£ã¦ãéååå¦ã®ä¸ã«æ½ãã§ããæ°å¦ã®é¨åãHaskellã§è¡¨ç¾ãããã¨ã«èå³ãæ±ãããå°ããé·ãé£è¼ã®è¨äºã«ãªãã¨æãããç´¹ä»ãã¦ã¿ããã¨æããã¨ãã£ã¦ãâ¦
å«ãã¡ãæå¾æ¥ããæ³ã¾ãã«æ¥ãã¨ããã®ã§ãå½¼ããææãã¦ããããç¼ãã®èã大éã«ä»å ¥ããããã«ãè¿ãã®ã¢ã¼ã«ã¸åºåãããã¤ãã§ã«ãä»æ¥ã®å¤é£¯ã«ã¨éãç©è²ãã¦ããã¨ãã竹ã®åã¡ãã«ã«åºä¼ã£ããã¡ãã«ã¨ããéã¯ããç¥ã£ã¦ããããã¡ãã«ã®åã«ç«¹â¦
ã®ãªã·ã£ã¯ãã¥ã¼ã¹ã«ç»å ´ãããã¨ã¯å¤ããããã¾ãè³ãããªã話é¡ã°ããã ãæè¿ã§ã¯ããã«ã³ãããã¤ãã¸åããé£æ°ã®ãæåã®ã¨ã¼ãããã¸å ¥ãå½ã¨ãã¦ãæ··ä¹±ããç¶æ³ãå ±éããã¦ãããã¾ããæ°å¹´åã«ã¯ã財æ¿ç ´ããã§EUã®ä½å¶ãè ããã¦ãããã®ãªã·ã£â¦
æ¨å¹´ã®ç§ãããæ±æ¥ãã³ãºã§ãã¤ã¤ã¼ã®é»åã¬ã³ã¸å§åéãæ ¼å®ã§è²©å£²ãã¦ãããããã§è¦ããã¤ã¤ã¼ã®ããã¯ã家ã§å©ç¨ãã¦ããå§åéã¨ã¯ããã¶ãã¨è¶£ãç°ã«ãã¦ããã家ã®å§åéã¯ãã¹ãã³ã¬ã¹è£½ã§ãå³ã¤ããé ä¸ã«ã§ãã¦ãããå¿ãã¦ä½¿ããªãã¨ãã¨ãã§ãâ¦
ï¼ï¼æé Reactive Bananaã§ã¯æéã¯é£ç¶çã§ããããããã§èª¬æãã¦ããã¢ãã«ã§ã¯ãæéã¯é¢æ£çã§ãããã¢ãã«ã§ã¯ãæéã¯0ã§å§ã¾ãèªç¶æ°ãç¨ãã¦ã次ã®æ§ã«å®ãã¦ããã -- | Natural numbers (poorly represented). type Nat = Int -- | The FRP modeâ¦
ï¼ï¼é³ç¬¦ãã¤ãã³ãã« æè¿ã¯æ¥½èãä½æããã½ããã«ã¯ç´ æ´ããããã®ãããã¤ãããããããããReactive Bananaãç¨ãã¦æ¥½èã表ããã¨ãã¦ãæå³ããªãã®ãããããªããããããç¾å®ã®ä¸çãé¢æ°åè¨èªã§ã©ã®ããã«è¡¨ããã¨ãã§ããã®ããæ示ãããã¨ã¯â¦
ãã¤ãè¡ãã¢ã¼ã«ã§ãå°ã¶ãã®éç®é¯ã売ã£ã¦ããã®ã§ãã©ã®ãããªæçã«ãããã決ããªãã¾ã¾ãè³¼å ¥ããã帰ãéã®è»ä¸ã§ãå風ã«ããããæ´é¢¨ã«ãããã§ç¸è«ãããããªãã¨ãªããå風ã§çè¾ãç ®ã¤ãã«ãããã¨ãããã¨ã«ãªã£ããã¢ã¼ã«ã§ã¯ãããä¸ã¤è²·ãâ¦
æ¨æ¥ã¯éè·è æ °å´ä¼ãå¬ããããããã§ãæ¬å½ã«éè·ããã®ã ãªãã¨ããå®æãããã¦ããã家ã«æ»ã£ã¦ãéè·å¾ã®ä»äºãããå ´æã®æ´åã«åãæãã£ãã主ããä»äºã¯ãæç« ãæ¸ããããããã°ã©ã ãä½æããããªã®ã§ãã¾ãæåã«ãã½ã³ã³é¢ä¿ã®è¨ç½®ãè¡ã£ããâ¦
ï¼ï¼éè·ã¨ããã¤ãã³ã 2ãæè¿ããããã°ãä¸æãã¦ãã¾ã£ãããå¥ãã®å£ç¯ã®å¹´åº¦æ«ãè¿ããããã§ãããå¤ãã®å¤§å¦ã§ã¯åæ¥è«æã課ãã¦ãããç§ãæå±ãã¦ãã大å¦ãããã®ããã«ãªã£ã¦ããã®ã§ã追ãè¾¼ã¿ã¨ãªã1æã¯ããã®æå°ã«å¤ãã®æéãã¨ããããâ¦