2007-10-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¨ããPHPã®è²ã ãå ¨ç¶ããããã®ã§ï¼ãã¨ãã°ããããArrayã£ã¦ã©ãæ¸ããã ãã¨ãè¨ãã¬ãã«ï¼ã対話ç°å¢ããããPerlããphp -r hogehogeãå¼ã³åºãã©ããã ãã ã¨ãã¾ãã«ããã¾ãã ã£ãã®ã§ãPHPã§æ¸ãããã»ãã®å°ãã ãæãå ¥ãã¦ãé¢æ°ã¨ããå®ç¾©ãâ¦
PHPããããããã§ã対話ç°å¢ã¨ã欲ãã¼ãªãæã£ããã©è¦ãããããã£ãããªã®ã§ã§ã£ã¡ãããããããªåä½ã % phpterm.pl php> $x = "hoge"; php> $y = $x . "\n"; php> echo $y; hoge php> ãã æ¯åphp -r inputãã£ã¦ãã ããè¶ ã¦ãã¨ããã©ãããããªãâ¦
OCamlã®ã³ã¼ãã¨ãèãã¦ããæ¸ããã # let newtonMethod f fa cond x0 = let rec iter xn = if (cond f fa xn) then xn else (iter (xn -. (f xn) /. (fa xn))) in iter x0;; val newtonMethod : (float -> float) -> (float -> float) -> ((float -> floaâ¦
ã¤ã³ã¿ããªã¿ã®å¯¾è©±ç°å¢ã§ãã¤ãlsã OCaml # ls ï¼ããééã£ãï¼^CInterrupted. SML/NJ - ls =ï¼ããã¼ï¼^C Interrupt Gauche gosh> ls *** ERROR: unbound variable: ls Stack Trace: Perl(perlsh) main[91]$ ls ls main[92]$ Ruby(irb) irb(main):001:0>â¦
ç¥ãåãã®äººã«ã¢ã«ãã¤ãã«èªããããæè¦ã§OKãããã¦ã£ãããã¹ãã®å¨æ¿ã§ãã¼ãããæãæ©ããæãã£ã¦ãããã¼ãããã®æ²¹ãåã£ã¦ãã«ãã³ã³ãã¢ã«ä¹ããä½æ¥ã¨æ·¡ã ã¨ç¶ãã¦ãæ°ä»ãã°ä¸å¹´ãã£ãã¨ããã§çªç¶ã®è§£éãåå°±è·ãããã«ãé¢æ¥ã§ããã®ä¸å¹´â¦
大å¦ã®å³æ¸é¤¨ã§The Little Schemerãæ¢ããã貸ãåºãä¸ã ã£ãã®ã§ããªããããããã¼æ¬ãã¼ããªã¼ã¨æ¢ãã¦ãããThe Little MLerãªãæ¬ãè¦ã¤ããããããããããªã®ã§åãããèªãã ãããããããã¡ãããèªãã§ãã®ã§åã®æ¹ããã¾ã èªãã§ãªããã©ããã¿â¦
俺ã¯ã©ã¼ãæè¨ã好ããããªãã®ã§ãWindowsã®å³ä¸ã«è¡¨ç¤ºããã¦ãæè¨ãæ¶ãã¦ã¾ããã ãã©ã¾ãããããä¸ä¾¿ãªã®ã§é©å½ã«ãããªããã°ã©ã ãããã°ã©ã åã¯c.exeã¨ãã«ãã¦ããã¦ãã·ã¹ãã ãã£ã¬ã¯ããªã®ä¸ã«æ¾ãããã©ãã¾ããããããã°ãWin+R, c, Enterâ¦
è«æãµã¼ãã¨ã³ã¸ã³ãªãã ãã©ããã®å楽ããããã®åã楽ããã£ã¤ããè«æã楽ããã®ããããããã©ã
ããããã¯ã¦ãªãã¤ã¢ãªã¼ã£ã¦ä¸æ¸ãæ©è½ãã£ãæ°ããããã ãã©ãæ°ã®ããã ã£ããã
ãParrotã£ã¦ãªãã«ï¼ãã¦ãããããªäººã¯ãã¨ããããããã ããã®æã«ããParrot å ¥é - The Parrot Primerã¨ãèªãã¨ããããããªãããªã¨æãã¾ãã ãåçè¨èªåãã«è¨è¨ããã¦ãã¬ã¸ã¹ã¿ãã¼ã¹ãªæ±ç¨VMã ãã¼ãã¨ããããªæãã ã¨æãã¾ããã£ã¨ã ã¾ãâ¦
èªç¶æ¥è¨ãæ¸ããªãã£ã¦ããã§ãããææ¬å±ã§ããè¦ããããä¸æ¥ã§ã§ããå®è·µç°¡åãã¼ã ãã¼ã¸è¡ï¼ãã¿ãããªæ¬ã¨ãã«ã¯ãæ´æ°ããªããã¼ã ãã¼ã¸ã¯ç´ã飽ããããï¼å°ã¾ããªæ´æ°ããæãï¼ãã¨ãæ¸ãã¦ãã£ãæ°ãããããããä»æã®ã¦ã§ããµã¼ãã£ã³ã¯RSSãªâ¦
ã½ã¼ã¹ããã°ã©ã ãé©å½ã«ASTã£ã½ããããã¨ãããã解éå®è¡ããããã«æ¸ããBrainfuckã®ã¤ã³ã¿ããªã¿ã¨ãVMã£ã½ãæ¸ããã®ãæ¯è¼ãã¦ãVMã¯ããã«ãã³ã¤ã¤ï¼ãã¨è¨ãã¤ããã§ããã«ããã«ãããã°ã©ã æ¸ãã¦ããé©å½ã«æ¸ãçµããã % gcc bfi_ast.c -o bfiâ¦
ãã¤ããªãã¼ã¿ã®echoã¨ããã§ããªãããã©ããWikipediaã«ã®ã£ã¦ããããæåãªã³ã¿ãã¼ã©ããã ã£ãã¿ããã http://en.wikipedia.org/wiki/Brainfuck#End-of-file_behavior 16-bitã32-bitã®ã»ã«ãæã¤BFããå¹ççã«ã¯ã©ããªãã ããä»åº¦è©¦ãã¦ã¿ããã â¦
ããã¨ãã£ã¡ãã£ã¦ãã·ã§ã«ã¨ãã¦æåãªzshå çãjavaã³ãã³ãæã£ããããã¨ãã便å©ã§ãã Javaåå¦è ã®äººã % javac HelloWorld.java % java HelloWorld.class Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/classã¨ããã£ã¡â¦
æ å ±å·¥å¦å®é¨ãã¬ã¤ãã³ã¹ã ãã§ç©ºãã³ãã§ããã®ã¨ããã¼ã¾ãå¦æå§ã¾ã£ããªãã¨å°ãæ°åãæã¶ã£ãã®ã§BFã¤ã³ã¿ããªã¿ã§ãæ¸ãã¦è½ã¡çããã¨ã«ããã ä¸çªæéãããã£ãã®ã¯ãswitchãããã¯ã®ãªãã§ä¸ã¤breakãæ¸ãå¿ãã¦ãã¨ããããã£ããã¨ããããªâ¦