2010-09-01ãã1ã¶æéã®è¨äºä¸è¦§
åãã¦ã®äººã®ããã®LISP[å¢è£æ¹è¨ç]ã®ã¡ã¢ã§ãã æå:åãã¦ã®äººã®ããã®LISP (第1è¬-第5è¬) - ããã«ã丼ã§ããã㪠Må¼ é ãæã«ã¯ãããªãã®ããã£ãã M-expression - Wikipedia Lispã解åããã«ã¯å°ãè¦ãç®ã®éããã®ãè¯ãã ããã¨ãããã¨ã§ä½¿ãâ¦
åãã¦ã®äººã®ããã®LISP[å¢è£æ¹è¨ç]ã®ã¡ã¢ã§ãã æå:åãã¦ã®äººã®ããã®LISP (第1è¬-第5è¬) - ããã«ã丼ã§ããã㪠é¢æ°å¼æ°ã®åºæ¬ã¯apply applyã®ç¬¬1å¼æ°ã¯é¢æ°ã§ã第2å¼æ°ããã®é¢æ°ã®å¼æ°ã®ãªã¹ã(第11è¬)ã æ°å¤ã ããå ¥ã£ããªã¹ãã®ç·åãè¨ç®ããâ¦
SLIMEã¨SBCLãSLIMEã¤ã³ã¹ãã¼ã«ã¡ã¢ - ããã«ã丼ã§ããããªã®ããæ¹ã§å ¥ã£ã¦ããã init.el(.emacs)ã«ä»¥ä¸ã®è¨è¿°ã追å ãã¦ããã ;;; SLIME {{{2 ;; M-x my-slime: åå²ããã¦ã£ã³ãã¦ã§slimeèµ·å ;; C-c C-r: é¸æç¯å²ãslime-replã¸éã£ã¦è©ä¾¡ (add-to-â¦
Emacs23.2ããJavaScriptã®ããã®ã¡ã¸ã£ã¼ã¢ã¼ãã¨ãã¦js-modeãçµã¿è¾¼ã¾ãã¦ãã*1ãauto-mode-alistã«("\\.js\\'" . js-mode)ãæ¢ã«ç»é²ããã¦ããã®ã§*2ãæ¡å¼µåã.jsãªãã¡ã¤ã«ãéãã°èªåçã«js-modeã¨ãªãã¯ãã ã ãã®ã¨ããã¡ã¤ã«ãå®è¡ããæ¹æ³ã¨â¦
åãã¦ã®äººã®ããã®LISP[å¢è£æ¹è¨ç]ã®ã¡ã¢ã§ãã æå:åãã¦ã®äººã®ããã®LISP (第1è¬-第5è¬) - ããã«ã丼ã§ããã㪠ã·ã³ãã«ã®æ§é å°åå å±æ§ãªã¹ã 大åå¤ é¢æ°å®ä½ å°åå ã·ã³ãã«ã®ååãpnameã¨ããCommon Lispã§ã¯ã·ã³ãã«å(symbol name)ã å°â¦
åãã¦ã®äººã®ããã®LISP[å¢è£æ¹è¨ç]ã®ã¡ã¢ã§ãã ã¤ãã«ãã¯ãã æå:åãã¦ã®äººã®ããã®LISP (第1è¬-第5è¬) - ããã«ã丼ã§ããã㪠置ãæãã¦ããè©ä¾¡ãã (defun first (x) (car x)) ã¨ããé¢æ°ããã£ãã¨ã (first (list 1 2 3))æ¬æ¥ãªãé¢æ°firstã¯xâ¦
ããã¼ããããã«Windowsã§ESSã使ãæ¹æ³ã«ã¤ãã¦ã¡ã¢ã£ããã¨ãããã®ã§ãã(èªè¨¼ãããã£ã¦ãã¾ã)ãä»ããè¦ãã¨å¤ãã ããããªãã¦å²ã¨ããå æ¸ãªãã¨æ¸ãã¦ãã®ã«ãã£ããæ¾ç½®ãã¦ããææã§ãµãã£ã¨ç´¹ä»ããã¦ãã¾ã£ãã®ã§ãããã«ã¢ã¬ã ãªã¨æã£ã¦ã¡â¦
åãã¦ã®äººã®ããã®LISP[å¢è£æ¹è¨ç]ã®ã¡ã¢ã§ãã ãããªãç解åºæ¥ãªãé¨åãå¢ããã»ã©é·ããªãã æå:åãã¦ã®äººã®ããã®LISP (第1è¬-第5è¬) - ããã«ã丼ã§ããã㪠alistå½¢å¼ã®è¾æ¸ã¨é¡ä»ããªã¹ã 次ã®è¾æ¸ãphoneã¨ããå¤æ°ã«å ¥ã£ã¦ããã¨ããã ((reâ¦
åãã¦ã®äººã®ããã®LISP[å¢è£æ¹è¨ç]ã®ã¡ã¢ã§ãã æå:åãã¦ã®äººã®ããã®LISP (第1è¬-第5è¬) - ããã«ã丼ã§ããã㪠ããããç¥ããªããã¨ãå¢ãã¦ãã¦ãããªç°¡åã«ã¯é²ã¾ãªããªã£ã¦ããã Lisp御æ¬å° ã¨ãããããããªæãã®ç®±ãèããã å·¦å´ãcaré¨ãâ¦
æé£è ã¨è¢«é£è ã®åä½æ°ã¯æé£ãéãã¦äºãã«å½±é¿ãã¦ãããæã«åæ¹ã®åä½æ°ãå ±æ¯åãããã¨ããããä¾ãã°ãã«ããã®ã«ã³ã¸ãã¦ãµã®(被é£è )ã¨ã«ãããªãªã¤ããã³(æé£è )ã®åä½æ°ã¯ãç´10å¹´ã®å¨æã§å ±æ¯åãã¦ãããéå¤ã§ã¯æ°è±¡æ¡ä»¶ãªã©ã®å½±é¿ãæé¤ãâ¦
åãã¦ã®äººã®ããã®LISP[å¢è£æ¹è¨ç]ã®ã¡ã¢ã§ãï¼ æå:åãã¦ã®äººã®ããã®LISP (第1è¬-第5è¬) - ããã«ã丼ã§ããã㪠第6è¬ ã¾ããå帰ããããå帰ãªã®ã (p.82-) é¢æ°ã«ããä¾ãå¤ãã®ã§é·ãï¼ ãªã¹ãã®é·ã 次ã®é¢æ°lengthã«ããå®ç¾©ããããã®ããªã¹ãâ¦
æ¥ãéãã¨ã©ããããæ°ãç¡ããªã£ã¦ãã¾ãã®ã§èªãã§ããæ¬ã®ãã¼ãã¯å°ããã¤æ®ãã¦ãããã¨æãã¾ãï¼ åãã¦ã®äººã®ããã®LISP[å¢è£æ¹è¨ç]ã®ã¡ã¢ï¼ ç¶ãä¸è¦§ åãã¦ã®äººã®ããã®LISP (第6è¬-第7è¬) - ããã«ã丼ã§ããã㪠åãã¦ã®äººã®ããã®LISP - 第8â¦