2008-11-01ãã1ã¶æéã®è¨äºä¸è¦§
ãã¤ã¯ãã¹ã¬ããã®æ¯è¼å¯¾è±¡ã®ã²ã¨ã¤ã¨ãã¦lua5.1ã使ã£ã¦ã¿ããã©ãLuaã£ã¦æè¿ã®è¨èªã¨æ¯ã¹ã¦çµæ§ç¬ç¹ãªé¨åãå¤ããªã¨æãã¾ããã以ä¸ãã¯ã¾ã£ãã¨ãã: Tableãé å風ã«ä½¿ãã¨ãã®éå§ã¤ã³ããã¯ã¹ã¯1ã§ãããã¨ãå¿ãã Tableã®åå¨ããªãã¤ã³ããã¯ã¹â¦
http://b.hatena.ne.jp/bellbind/ http://b.hatena.ne.jp/entry/http://www.reddit.com/r/programming/comments/7fcaq/oo_programming_why_traits_rule_and_mixins_and/
æ°ããã¯ã¦ãã¯ä¸è¦§ãã¼ã¸ã§ãæ¬æãåãè¾¼ãããã«ãªã£ããã©ãã©ãããã®æ¬æã¯ãã¤ãºãå¤ããã¦ãä¸è¦§æ§ã«ãæ¯éãããã®ã§ãStylishã使ã£ã¦ã¦ã¼ã¶ã¼CSSã§æ¶ããã¨ã«ãã¾ãããã¿ã°ã§çµãè¾¼ãã¨é表示表示ãåãæ¿ããããã®ã«ãçµãè¾¼ã¾ãªãã¨ããããªâ¦
rails風ã«webã¢ããªãä½æã§ãã話é¡ã®merbã使ã£ã¦ã¿ã¾ããã ã¤ã³ã¹ãã¼ã« ãã§ã«gem,rails,mongrelãå ¥ã£ã¦ããcygwinä¸ã«ããã¦ã¿ã¾ãã*1ãã¾ãã¯gemã®æ´æ° gem update gem cleanããã¦merbãå ¥ãã gem install merbå ¥ã£ãã®ã¯merb-1.0.1ã§ãããããâ¦
linuxä¸ã§gcc-4.3ã使ã£ãå ´åãéãã¯ptråãlongãlong doubleãsize_tãtime_tãªã©ã§èµ·ããã x86 sizeof(int) = 4 sizeof(void *) = 4 sizeof(size_t) = 4 sizeof(ptrdiff_t) = 4 sizeof(wchar_t) = 4 sizeof(void) = 1 sizeof(clock_t) = 4 sizeof(timeâ¦
fgetcã§æ¸ããã°ãfreadã§æ¸ãã - ã©ã·ã¦ã©ã§ã¯ãfgetcããfreadã使ãããã«å¤ãã¾ãããããã¯æ©æ¢°çã«å¤æããã ãã§ããããããããã¤ãã¯1æåã¥ã¤ã³ãã¼ãã¦ããé¨åããmemcpyã使ç¨ãã¦ããããã¯åä½ã§ã³ãã¼ããããã«å¤ãã¦ã¿ã¾ãããã ã¾ããªâ¦
åå¿è ã§ã¯ãfgetcã§ä¸æåã¥ã¤å¦çããã³ã¼ãã¯è¨è¿°ã§ããã®ã«ããããã¡ã使ãfreadã§æ¸ãã®ã«æ©ã人ããã¾ããåç´ã«fgetcã§ä¸æåã¥ã¤å¦çããã³ã¼ãã¯ã以ä¸ã®ãããªå½¢ã«ãªãã§ããã for (;;) { int ch = fgetc(file); if (ch == EOF) break; ... } ãâ¦
Pythonã§ã®DSL風è¨è¿°ã«ææ¦ãããããPythonã§ã®Prolog風ã®ã½ã«ãã¼ãä½ã£ã¦ã¿ã¾ãããã¨ã³ã¸ã³ã®å®è£ ã¯ã åä½µã®ãç¥ããï½OKIã½ããã¦ã§ã¢ ããã¼ã¹ã«ãã¦ãã¾ããPythonã§Prologã®DSLããã£ã¦ããã®ã¨ãã¦ã¯ã以ä¸ã®ãã®ãããã¾ãã: http://code.activeâ¦
Cã使ããã¨èªç§°ãã人ã§ãæ¬å½ã«Cè¨èªã®æå³ãç解ã§ãã¦ã人ã¯ãããã ã£ãããã¾ããã¨ããããªãã¡ã¬ã³ã¹ããã¥ã¢ã«çãè¦ããã¨ãç¡ã人ãå¤ãã£ããããããããããåèã«ãããªã½ã¼ã¹ãä»æ§ãç解ãã¦æ¸ããã¦ãããã©ããæªãããã®ãå¤ããå®è£ ãâ¦
é åã·ã£ããã«ãCè¨èª(ISO C89)ã§æ¸ãã¨ä»¥ä¸ã®ããã«ãªãã¾ã: #include <stdlib.h> #include <math.h> #include <stdio.h> static void shuffle(const char ** const array); static void swap(const char ** const array, int i, int j); static const char * names[] = { "taro", "j</stdio.h></math.h></stdlib.h>â¦
é åã®ã½ã¼ãã¯ãã¾ããããã¾ã§ãç¡ãã¢ã«ã´ãªãºã ã§ããããªããæåã«ããã¢ã«ã´ãªãºã ãããã«ã½ã¼ãã ã£ããããã®ã¯ãªãã§ãããããæ£ç´ããã«ã½ã¼ãã¯ç´æçã«ãããã«ããã¨æãã¾ããæ¯è¼çããããããã®ã¯é¸æã½ã¼ãã ã¨æãã¾ãããä¸çªå°ããâ¦
風éªã§å¯ã¦ãããã ãé çãªé ã§ãªããé åã®ã·ã£ããã«ããã¢ã«ã´ãªãºã ã®ãã¨ãæãåºããä¹±æ°ã¨ä½¿ãæ¹ã®è½ã¨ãç©´ã«ã¤ãã¦èãã¦ã¾ãããã·ã£ããã«ã¯ããã¨ãã°è¼ªèªã®é çªã決ããã¨ãã«ã¤ããã¾ããåç°¿ãæåãããããé ã«ä¸¦ã¹ã¦é åã«å ¥ãã¦ããã¦ã·â¦
å®è¡ããã¨èªåèªèº«ã®ã³ã¼ããåãåºãããã°ã©ã ãããããã®ã£ã¦ãªãã¦ãããã ã£ããèªå·±è¤è£½ï¼ ã³ã¼ãâæååã®å¤æã®ã¨ã¹ã±ã¼ããä¸è¦ã«ãªãrubyãä¸çªä½ããããã¦ãããã¿ãç解ããããããã注æããã¨ããã¯ãæ¹è¡æåãç´æ¥ä½¿ããªãããã«ãããâ¦