2007-07-01ãã1ã¶æéã®è¨äºä¸è¦§
æ°çè«çå¦ã®è©¦é¨åå¼·ãã¦ãã¦è§¦çºããã¦ãå°ãéãã§ã¿ããèªåã§ããã¾ãã¡ããããããªãã ãªããé©å½ã«ãã£ã¦ã¦ããã¤ã³ã¿ããªã¿ãããããã¢ããã¤ã¹ãã¦ããã GHC ã¯ç´ æ´ãããããªãã¨ä»ããã¹ããªãã·ã§ã³ã¾ã§æãã¦ããããã§ãããæå³ããããâ¦
ããã¼ãåãã¦ä½¿ã£ãï¼æå³ãããããã©ãã
Haskell ã®åã¯ã©ã¹ã¯ãå¼æ°ã®åã«ãã£ã¦åä½ãå¤ããããã«ããã®ï¼
åã¯ã©ã¹ã使ãããªããããã«ãªãããã
ãªããããããããããããâ¦ã ã¨ããããæå³ã¯ããããã©ããããã©ãããã£ã¡ã ã¼ãããã¿ãããªã
JavaScript ã®æ£è¦è¡¨ç¾ããã£ã±ããã¼ããããâ¦ãããã¦ãããããããªãããæ¹è¡ãããããã ãã¨ãGM_xmlhttpRequest ã®ã³ã¼ã«ããã¯é¢æ°ãåãåããã®ã®åããããããããresponseText ãããªãã®ï¼ãªããé©å½ãªã¡ã½ããã§ãã®ã¾ã¾ HTML ã«ã§ããã®ãâ¦
[1] 以ä¸ã®æ(sentence)ã®æ§ææ¨(parse tree)ã示ã. ... "以ä¸ã®æ(sentence)"ã£ã¦ã®ã¯ãããâ¦ãã¹ã²ã¼ããããããæ㯠sentence ã ãããªâ¦ãã ã"æ§ææ¨(parse tree)"ã£ã¦é¨åã¯ã©ãããäºã ããããã£ï¼ï¼æ§æã parse ã£ã¦è¨³ãããã£ã¤ã¼ã®ãã¼ã¼ã¼ãï¼â¦
æè¿ã¡ãã£ã¨ The New York Times ãªãã¦ãã®ãèªãã§ã¿ããã¨è©¦ã¿ã¦ãã¦ããã¡ãã¡è¾æ¸å¼ãã®ãæ»ã¬ã»ã©ããã©ãããã£ãã®ã§ããããã¢ããã§æå³ãã ãã¦ããããã¤ãä½ã£ã¦ã¿ããã©ãèãã¦ãæ¢ã«ã©ã£ãã«ããã¨ã¯æããã© JavaScript ã¨ããã GreaseMoâ¦
ãã¿ã ãããå§ç¸®ããã¢ã«ã´ãªãºã ã¯ããã£ããã ãã©ããã®æ¹æ³ã 㨠Haskell ã§å®è£ ããã®ã¯å¤§å¤ãããä»æ¥ã¯æ¯å»è ã«è¡ã£ã¦å£ã®ä¸ãããªãæ°æã¡æªãã®ã§ãä»ã®è¨èªã§ãã£ã¦ã¿ããï¼ã¿ãããªæ°åã«ã¯ãªããªãâ¦ã ãã§ã麻é ãæ°æã¡æªãä¸ã«é常ã«é¨ã£ã½ãâ¦
ãã¼ã縦æ¹åã«å§ç¸®ããªãã¨ãããªãã£ãã®ããã¾ãããããããããæ°ãåãããå§ç¸®ããé¢æ°ã§ãæ¸ãã¦ã¿ããâ¦ã
http://ja.doukaku.org/20/ ãããããã£ã¦ããã«ã½ã¼ãã ããã makeAmida n = mapM_ putStrLn $ amida n where amida 0 = [take (2*n-1) $ cycle "| "] amida m = let line = take (2*n-1) $ cycle "| " in map (\n -> updateList n '_' line) [1,3..2*(m-â¦
ããããæ¯æããã¡ã£ããåé¡ã解ãã®ã¯æ°æ¥½ã ããé ãæ´»æ§åãã(æ°ããã)ã pyramid n = mapM_ putStrLn $ zipWith (++) spaces stars where stars = map (flip replicate '*') [1,3..2*n-1] spaces = map (flip replicate ' ') [n-1,n-2..0]
大å¦é¢è©¦é¨ã®å¿æçç±æ¸ãæ¸ãããã«ãããã£ã½ããã¼ã¯ã¼ãã§ããããæ¤ç´¢ãã¦ãããããããããããªç 究ãããããã§ã¦ããã åä»ãã¢ã»ã³ããªãâ¦ãåã«ã©ã£ãã§èãããªãç¬
http://d.hatena.ne.jp/nskj77/20070714/1184429775 ããããï¼ sequence ã®åä½ãããããããªãæãã ãã©ããªãã»ã©ãªãã§ããã¾ãä»åº¦ sequence ã®å®ç¾©ã確èªãã¦ãããã
ã©ãæ¸ãï¼org ããã atoz = map return ['A'..'Z'] next pre = [ h++t | h <- pre, t <- atoz ] start = concat $ iterate next atoz
ãããããããèªåã®ã¨ãã®ãã¤ãä½åº¦ããã¡ãã¡ãã£ã¦ãã¾ã£ãã ããããããªããã®ããã£ããã¨ããããæ¼ãã¨ããä»ã®ãããã«ããã¦ã¯é常ã«å±éºãªè¡çºã ããã
http://www.deqnotes.net/acmicpc/p0003/ja ã®åé¡ãããã¯çµæ§ãããã«æ¸ããã¨æãããã import Data.List ( group ) button 1 = cycle ['.', ',', '!', '?', ' '] button 2 = cycle ['a', 'b', 'c'] button 3 = cycle ['d' ,'e' ,'f'] button 4 = cycle â¦
ã©ããã§ç´¹ä»ããã¦ãããã®ã http://jp.youtube.com/watch?v=GcDshWmhF4A ããããããããããã®ä½ããããã¼ã
C ãæ¸ãã¦ããã¨ãæ¬è³ªçãªé¨å以å¤ã®ãã¨ã大éã«æ¸ããªãã¡ããããªããªã¼ã¨æããC ããç¥ããªãé ã¯ä½ã¨ãæããªãã£ããã©ããªã¹ãã£ã¦ããã便å©ãªãã¼ã¿æ§é ãªãã ãªãã¨å®æããã¨ã代æ°åã便å©ãããããã
C ã§é¢æ°ã«å¯¾ããã³ã¡ã³ããæ¸ãã¨ãã£ã¦ãããããã¡ã¤ã«ã®ãããã¿ã¤ã宣è¨ã®ã¨ãã«æ¸ãã¹ããªã®ããæ®éã«é¢æ°å®ç¾©ã®ã¨ãã§æ¸ãã¹ããªã®ããã©ã£ã¡ãªãã ããâ¦ã
ãªã¹ãã®å®è£ ã ã㧠bus error ãã§ã¾ãããC ã£ã¦é£ãããã void add(IntList** p, char* key, int val){ ... } IntList ã®ãã¨ã® "**" ã¨ãã ãã§ããæ¶çµ¶ãã®ãããã¦åç §ãã»ããã£ãâ¦ãã§ãä¹ ã ã« Windows ãèµ·åã㦠Visual C# ã使ã£ã¦ã¿ãããIDE â¦
ãããæããããªæããåå¼·ããªãããªã®ã«ãã¾ãã«æ²¹å£²ããaburawryyyyyã type State = ((Int, Int, Int), History) type History = [(Cup, Cup, Int)] data Cup = A | B | C deriving Show s = 10 x = 7 y = 3 g = 5 move :: State -> [State] move ((a, â¦
ãªãã ããã£ã¼ããå ¨ç¶æ´æ°ãããªã(ãã2æ¥ããã)ãLivedoor Reader ã«æ»ããããªãã
ãææ¬ã¯ã³ã³ â http://d.hatena.ne.jp/yoshihiro503/20070706 確å®ã«å£åãã¦ãããã¿ããªãæ¯éãèªåã®å¥½ããªå¦çç³»ã®ç´¹ä»ã«ææ¦ãããï¼ - æè¿ãã½ã³ã³ãè²·ã£ããã ãã©ã使ãæ¹ããã解ããªããã¨ãã人ã®ããã«ãä»æ¥ã¯ Haskell ã®ã¤ã³ã¹ãã¼ã«ã®æ¹æ³â¦
ã¾ã調åããããªã£ãããã§ãããã£ã±ã livedoor reader ãããéãæ°ããããªãã
ã¡ãã£ã¨ C# ã§éãã§ã¿ããæã"ããã°ã©ãã³ã°C#"ãèªãã ã¯ããªã®ã«ãå®å ¨ã«å¿ãã¦ãã¾ã£ã¦ããâ¦ãã¨ããããããã C ã£ã½ãæ¸ãæ¹ãå¿ãã¦ãã¾ã£ããã¨ãããã csharp-mode ãã¢ããã°ã¬ã¼ãã㦠hellowrold ãæ¸ãã¦ãã£ã¦ã®ããã¾ããã£ãã®ã§ãã¡ãâ¦
http://primates.ximian.com/~atsushi/mono-jp/c-sharp.html mono ã¯åºæ¬çã« C# ã® 1.0 ãªã®ã§ãã¸ã§ããªã¯ã¹ã¯ä½¿ããªããã¨ã®ãã¨ã§ãããCVS ãã C# 2.0 ã®ãã®ãæã£ã¦ããã¨ä½¿ããããã§ãã
ä»æ¥ã® SICP åå¼·ä¼ã®ãã¼ã㯠Struts ã§ããããã®åå¼·ä¼ã§ã¯ãé¢æ°åã¨æç¶ãåã®è©±ã交äºã«ãããã¨ã«ãªã£ãã®ã§ãæ¥é±ã¯é¢æ°åã®è©±ã«ãªãã®ã§ããã§ãæ¥é±ã®ãã¼ãã¯"Så¼è¨ç®æ©"ãåå è å ¨å¡ããªãããã®è¨èªã§å®è£ ãã¦ãã¦ããããã¨ãæå¾ ãããã§ããâ¦
Safari3 ã®ããã¹ãã¨ãªã¢ã§æ¥æ¬èªãæã¤ã¨ããããå ¥åãããã¤ãã¦ã¹ãã¬ã¹ããã¾ãã®ã§(ãªã?)ãOpera ãå ¥ãã¦ã¿ãããã¼ããçµæ§ããæãã§ãããã¨ãããã Emacs ãã¼ãã¤ã³ãã使ããã®ã¯è©ä¾¡é«ããã»ãã®ãã¼ãã¤ã³ãã¯ããããããªããã ãã©ã ãâ¦
å°ããcatch ã¨ãããªããããã°ããã®ããªï¼(é©å½)