Haskell Advent Calendar 2024 3æ¥ç®ã®è¨äºã§ãã TypescriptãZigã§ã²ã¼ã ãã¼ã¤ã¨ãã¥ã¬ã¼ã¿ãæ¸ãããã¨ããã£ãã®ã§Haskellã§ã試ãã¦è¦ã¾ãããCPUã¾ã§æ¸ãã¦åå°½ããã®ã§ã²ã¼ã ã¯éã¹ã¾ãããèªåã§ã²ã¼ã ãã¼ã¤ã¨ãã¥ã¬ã¼ã¿æ¸ãã¦ã¿ããã¨ããæ¹ã¯gbdev.ioãè¦ãã°ã ããããªãã¨ãªããããããã¶ãããããã¨æãã¾ãã ã¨ãã¥ã¬ã¼ã¿ã¯CPUã®å½ä»¤ãå®è¡ãããã³ã«ã¬ã¸ã¹ã¿ãã¡ã¢ãªãªã©ãé次æ´æ°ãã¦ãããã¨ã«ãªãã®ã§ãã¥ã¼ã¿ãã«ã®æ¹ãå¹çãè¯ãã¨æãã¾ããç´ ç´ã«IORefãVector.Mutableãªã©ã使ãã®ãããã¨æãããã§ãããStateMã¨Lensã使ãã°ãã¥ã¼ã¿ãã«ã£ã½ãã¤ã³ã¿ã¼ãã§ã¤ã¹ã§ãã£ããæ¸ããããªæ°ããã¾ãããæ°ããããã§ãã type CPU a = StateT CPUState (StateT MBCState (Sta
{{#tags}}- {{label}}
{{/tags}}