2008-09-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¨ããäºæ ã«ãããWindowsãUNIXç³»OSãWindowsä¸ã®MSYSï¼ã¾ãã¯Cygwinï¼ã®3ã¤ã®ç°å¢ã§åä¸ã®ã¹ã¯ãªãããåããããã®ã§ããæåãbashã®ã·ã§ã«ã¹ã¯ãªããã3ã¤ã®ç°å¢ã§ä½¿ããã¨æã£ã¦ããã®ã§ããããªããªãã«é£ãããããã§ãPerlã«ããããã¨èãç´ãã¾â¦
ããã£ã¨ãããããªãã¯ã¯ãªããã®ãï¼ãã§æ¬¡ã®ãããªé¢æ°ãåºãã¾ããã unsigned _mark;void mark(int arg) { _mark = *(unsigned *)(&arg - 1); }ããã¯ãå¤æ°_markã«ãå¼ã°ããæç¹ã§ã®æ»ãçªå°ãä»£å ¥ããé¢æ°ã§ããç°å¢ã«ä¾åãã¾ãããå¤ãã®å ´åãæ»â¦
次ç·ã¯ãããã£ã¡ã ãã³ãããåãã¦æ°´ãã¸ã¥ã¼ã¹ããã¼ãã¦ãããå æ¥ããç´ãããã³ã®ä¸ã«ã³ãããä¹ã£ã¦ããã®ã«ãå¼·å¼ã«ç´ãããã³ãå¼ãã¦åã£ãã®ã§ï¼ç¶è¦ªï¼ããããªãã¨ããããã³ãããåãã¦ãæ°´ããã¼ããã ããããã(â¦èª¬æâ¦)ã次ç·ï¼ãâ¦â¦ãç¶è¦ªâ¦
ããã£ã¨ãããããªãã¯ã¯ãªããã®ãï¼ãã®è¦ç¹ã¯ããCãããç¹å®ã³ã¼ãã®ã¢ãã¬ã¹ãã©ããã£ã¦ç¥ããï¼ãã¦ãã¨ã§ãã ååãä»ããé¢æ°ã®å ¥ãå£ã¯ &func ã§åããã gccãªã &&label ã¨ãã¦ã©ãã«ã®ã¢ãã¬ã¹ãåããã ã¹ã¿ãã¯ãã¬ã¼ã ã®æ§é ãåãã£ã¦ãâ¦
æªãµããã§æ¸ããCã³ã¼ãã§ãããã¼ãã¦ã§ã¢ã¨ã³ã³ãã¤ã©ã«ãããä¾åãã¾ããIA-32ã®CPUã¨gccã§ãã£ã¦ãã¾ãã[追è¨]注æäºé ãããã¾ã â Cã§ãé¢æ°ã®å¼æ°ãå¾å§æ«ããã®ã¯å¼ã³å´ã ã£ããã[/追è¨] /* countdown.c */void countdown(int *); void mark(intâ¦
ããã³æ¬¡ç·ï¼ãã¼ããããã³å«ãã次ç·ï¼ããã¤ã¿ã±ã¾ãããã·ã¤ã¿ã±ãã¤ã¤ãã次ç·ï¼ããªãã¨ãé£ããã®ã¯ãããã¿ã±ã ãã ãª*1ããªã«ãè¨ã£ã¦ãããã ããã¾ãã¯ãå·®ç°ã¨å®ç¾©æ¬¡ç·ï¼ããã¨ããããã風åã¨æ¸©æ³ã¯ã©ãéããç¥ã£ã¦ãï¼ãç¶è¦ªï¼ãä¼¼ããããªâ¦
ãErlangå®é¨å®¤ï¼ã³ãã³ãã©ã¤ã³ãã使ãerlãã«ã¦ï¼ ãããçãªå®è¡ã§ã¯ .erlang ãéªéã«ãªããã¨ãããã¾ãã~/.erlang ã使ãã®ãããããããã¼ãã¹ã¯ãªãããä½ãç´ããã¨ã«ãªãã§ãããï¼åã¯ãã£ããã¨ããã¾ããï¼ã ãã£ã¦ã¿ã¾ãããErlang/OTPãªâ¦
伯æ¯ã亡ããªã£ãã®ã§ãéå¤ã¨è¬åã§ææ¥å¸°çãã¾ãã æ¥é±ã¯ããã¤ãã©ããã«æ»ã£ã¦ãã¾ãã
åã¯ããã¾ãPerlã¯ä½¿ããªãã®ã§ããããã¾ã¼ã«.plæ¡å¼µåã®ãã¡ã¤ã«ï¼ã¤ã¾ãPerlã®ããã°ã©ã ï¼ãä½ãã¾ããä»æ¥ãä½ãã¾ãããGUIããè¦ãã¨ããªãããã¼ã«ã®ã¢ã¤ã³ã³ãããªããããããï¼ã ã¯ãªãã¯ããã¨ãJIPrologã£ã¦ã®ãç«ã¡ä¸ããã¾ãããå ¨ç¶æ¶ãã¦â¦
次ç·ï¼ããã«ãã¡ãããå¦æ ¡ã§å¯ããã¨ããï¼ãé·ç·ï¼ããã¼ã3å¹´çã®æãããã¾ãã¾ã1æéçç¡ã ããç¶è¦ªï¼(ãã·ã)ããããªããèªæ ¢ã«ãªããï¼ å¯ããªã次ç·ï¼ããã¨ãããã¯å¯ããã¨ãªãã®ï¼ãç¶è¦ªï¼ããªãããå°å¦çã§ã¾ãã¾ã1æéçç¡ã£ã¦ãèãããâ¦
ãã®ä»¶ï¼ alc.co.jpã®ããã«ããã©ã¦ã¶ï¼IEã¨Firefoxï¼ããã¯ãã¾ãèªããªããµã¤ãã§ãã次ã®ãããªç´ æ´ã«HTTPã¹ããªã¼ã ãèªãã ããªããã¼ã¿ãåãåãã¾ã*1ã import java.net.*; import java.io.*;public class UrlReader { public static void main(Stâ¦
ã¤ã³ã¿ã¼ãããã«æ¥ç¶ã§ããªãã°ããããLANå ãç¹ãããªããªãã¾ããï¼ä¾ãã°ãããªã³ãã¢ã¦ããã§ããªãï¼ãããããã¯ãã«ã¼ã¿ã¼ããã¡ã«ãªã£ãããã§DHCPãµã¼ãã¼ãããªããªã£ã¦ãTCP/IPãæ©è½ããªããªã£ãã®ã§ããããå£ãã¦ãã¾ã£ããã®ã¯ãããããªãâ¦
é常ãerlï¼ã¾ãã¯werlï¼ã³ãã³ãã¯å¯¾è©±çãªã·ã§ã«ï¼EShellï¼ãèµ·åããããã«ä½¿ãã¾ãããé対話çã«ä½ããã®ä½æ¥ããããããã«ä½¿ããã¨ãã§ãã¾ããHelloWorldããã°ã©ã ãã³ãã³ãã©ã¤ã³ããå®è¡ããã«ã¯æ¬¡ã®ããã«ãã¾ãã $ erl -boot start_clean -noâ¦
ç°å¢å¤æ°ERL_LIBSã便å©ã ã¨ããã¾ãããåã¯ãERL_LIBS以å¤ã®ç°å¢å¤æ°ã使ãæ©ä¼ããªãã®ã§ãããERTSã¯ãã£ããããããã®ç°å¢å¤æ°ãåç §ãã¦ããããã§ãã以åãç°å¢å¤æ°ãåç §ãã¦ããå ´æãæ¢ãããã¨ãããã¾ããã½ã¼ã¹ãã¡ã¤ã«åã¨ããã§ä½¿ããã¦ãâ¦
ãã¼ãããããã°ãæè¿ã®Erlang/OTPã§ã¯ERL_LIBSã£ã¦OSç°å¢å¤æ°ã使ãããã§ãããããã¯ããã便å©ã§ããERL_LIBSã«ãç°å¢å¤æ°PATHãªããã¨åãæ¸ãæ¹ã§ãã£ã¬ã¯ããªã並ã¹ã¦ããã¨ããããã®ãã£ã¬ã¯ããªãErlang/OTPã®lib/ã¨åãããã«æ±ã£ã¦ããã¾ããâ¦
以åã次ã®3ã¤ã®è¨äºã§ãErlangã®ããã¥ã¡ã³ãã¼ã·ã§ã³çæãã¼ã«EDocã§ã¨ããããæ¥æ¬èªã使ãæ¹æ³ãç´¹ä»ãã対ççæ³çãªããããä»ãã¦ããã¾ããã Erlangå®é¨å®¤ï¼EDocã§æ¥æ¬èªã使ãæ¹æ³ Erlang EDocãä¸çç¸ã§ã¯ãããªãã Erlang EDocããããªã£ã¡ãâ¦
åã®æãåããã§ã大å¦çãããã®å¹´é½¢ã®ç·åæ°äººãã¯ã¤ã¯ã¤ã¨ãªã·ã£ããªãã¦ãã¾ããããµã¤ãã®ä¼è©±ãªãã ãã©ãããç·ã®åã®çºè©±ãã¨ãã©ããã¢ã¬ãï¼ããªæããã俺ã®ç¥ãåãã®ãªãã¦ãµãããã â¦ãããããããââããããããªããã¨ãªãã·ã£ãããããâ¦
ãã¬ã¼ã¼ã天æ°ã¯ãããããæ¼é£¯ã¯é ãã¾ã§è¡ããã
ãªããå®æçã«è¸ãè¿ãã¦ãã話é¡ãªã®ã§ãããããããã°ã©ãã®å¸¸èãã£ã¦ãªã«ãï¼ãã«æ¸ãããããªãã¨ãã¤ã¾ããã³ã³ãã¥ã¼ã¿ã®åºæ¬çãªã¡ã«ããºã ã«é¢ããç¥èã®è©±ãªãã§ããï¼ ã¬ã¸ã¹ã¿ãã¢ãã¬ã¹ãã¡ã¢ãªã¨ãã«é¢ãã説æããã£ã¦ãæ©æ¢°èªï¼ã¢ã»ã³ããªâ¦
ãã«ãã«ã空éHã«å¯¾ãã¦ãå対空éï¼dual spaceï¼ã¨å ±å½¹ç©ºéï¼conjuagete spaceï¼ã¨ããæ¦å¿µãããã¾ããHã®å対空éãå ±å½¹ç©ºéã H* ã¨ããè¨å·ã§æ¸ããããã¨ãå¤ãã®ã§ãåã¯æ¨æ¥ã¾ã§åããã®ã ã¨æãè¾¼ãã§ãã¾ãããå®éãå義èªã¨ãã¦æ±ãæµåãããâ¦
ä½èª¿ä¸è¯ã¨ããã»ã©ã®ãã¨ããªããããªãã¤ã¼ãã調åãåºãªããå¯ã¦ãä¼ãã§ãæ´»åãå復ããªããããªãããã«ãçãä¸ãã£ã¦ãããã
é·ç·ï¼ããã¨ãããã¯æ è¡ã«ãããªãã©ããããï¼ãç¶è¦ªï¼ãããã ãªãã¹ãã¤ã³ã®åã®ã»ãã¨ãããªå³¶ã¨ããé·ç·ï¼ãã¤ã¾ããªãããç¶è¦ªï¼ããããã©ããé¢ç½ããã ããé·ç·ï¼ãåæé®®ãªãã¦ã©ãï¼ãç¶è¦ªï¼ãè¡ããããªããé·ç·ï¼ãã¢ãã¬ãã¹ã¿ã³ã¯ï¼ãç¶è¦ªâ¦
次ç·ï¼ããã¨ããããæä¼è¡ã£ããã¨ããï¼ãç¶è¦ªï¼ãããã¾ãè¡ã£ããã¨ãªããªã2,3åã¯ããããªãé·ç·ï¼ã俺ã¯10å以ä¸è¡ã£ããã¨ãããã次ç·ï¼ãããã¼ãã»ãã¨ãï¼ãç¶è¦ªï¼ããã¼ããã«ãã¡ããã¯æä¼ããã£ã¦ããä¿è²åã«éã£ã¦ããããã確ãã«æä¼ã¯â¦
ãã³ã½ã«è¨ç®ã®è©±é¡ãã¯ããã¦åºããã®ã¯ããã³ã½ã«ï¼å®ç¾©ã¨ãå¨è¾ºã®è©±ã¨ããããããã ã¨æãã¾ãããã以æ¥ããã¾ã¼ã«ãããªãããªã¨ãã³ã½ã«è¨ç®ã®è©±ããã¦ãã¾ããæè¿æ¸ãããä¼çµ±çãã³ã½ã«è¨ç®ãç解ãããã³ããã®ç¶ããæ¸ããã¨ãæã£ã¦ããã®ã§ãâ¦
2008-04-28ã®åã®ã¨ã³ããªã¼ãã·ããã³ã³ãã¬ãã¯ã¹ãæ°å®¿ãã«ã9ãã®é©åãã¹ã大ãã«æä½ã·ã¹ãã ããªãã§ãããTKããããã®æè¿ï¼2008/08/28ï¼ã®æ å ±ã«ããã¨ï¼ ããã§ãããå®éããã«ãï¼ãã§ã°ã°ã«ã¨é ï¼ã¤ãã«åºã¦ãã¦ããã ãï¼ è²¬ä»»ãªãã¨ã¯è¨ããâ¦
æ¬æ£ããæ¬ã1ååºãåã«ãå¿ ã2åãã¾ãããªã«ãæ¸é¡1é¨ãããªã³ã¿ã§å°å·ããã¨ãã¯ãæ¸é¡ã2é¨æ¨ã¦ããããããã°ããããã¯é¨å±ããããã«ãªãã¯ãã ãåççã«ã¯ã
é»ç£æ°å¦ã¨ããªã¼ãã³å¹¾ä½ã¨ãã§ã¯ããã³ã½ã«è¨ç® -- ã¤ã¾ãä¸ä»ãä¸ä»ãã®æ·»åãã¦ã¸ã£ã¦ã¸ã£åºã¦ãã¦ããªã«ããã¡ã³ãã¼ãããªè¨ç® -- ãåºã¦ãã¾ããä¼çµ±çãª*1ãã³ã½ã«è¨ç®ã¯å®éã°ãã£ã°ãã£ãã¦ããã®ã§ããããé¿ããå®å¼åãããã¾ãããå®å ¨ã«æé¤â¦
è¨èãæã¨å ±ã«å¤åããã®ã¯å½ããåã®ç¾è±¡ã§ãéå»ã®æ£çµ±çç¨æ³ãå®ãããã¯ãç¾å¨ã«ããã¦ä¸è¬çã«éãããã¨ãããéè¦ã ãã¨åã¯æã£ã¦ãããã§ããæ©ã¾ãããã¨ããè¨èã ããæè¿ã¯ããªã«ãé£ããç¶æ³ã«ãã£ã¦å¤æã«è¦ããã§ãããã¨ãã£ãæå³ã§ä½¿ãâ¦
次ç·ãã2æ³ãããã®é ã«æ°ã«å ¥ã£ã¦ããçµµæ¬ããªããå¼ã£å¼µãåºãã¦ãã¦ãèªãã§ãã¨ãããã¯ãããã®ãã¡ã¡ããããã® ãã¡ã¡ (0.1.2.ãã»ã)ä½è : ã¤ã¡ã¯ãã¨ããåºç社/ã¡ã¼ã«ã¼: ç¦é³é¤¨æ¸åºçºå£²æ¥: 1998/06/10ã¡ãã£ã¢: åè¡æ¬ ã¯ãªãã¯: 1åãã®ååãâ¦