ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
ã¯ã³ã¿ã¤ã åæå ä¸é¨ã® C ã©ã¤ãã©ãªã¼ã¯ãåçãªåæåç¨ã«è¨è¨ããã¦ãã¾ãããã®åæåã§ã¯ãã©ã¤ãã©ãªã¼å ã®æåã®ããã·ã¼ã¸ã£ã¼ãå¼ã³åºãããã¨ãã«ãã©ã¤ãã©ãªã¼ã®ã°ãã¼ãã«åæåãè¡ããã¾ããåä¸ã¹ã¬ããã®ããã°ã©ã ã§ã¯ãããã¯æ®éã¯æ¬¡ã®ã³ã¼ãã»ãã©ã°ã¡ã³ãã®ããã«ãåã«ã¼ãã³ã¸ã®å ¥ãå£ã§å¤æ°ã調ã¹ããããéçå¤æ°ã使ç¨ãã¦ã¤ã³ããªã¡ã³ãããã¾ãã static int isInitialized = 0; extern void Initialize(); int function() { if (isInitialized == 0) { Initialize(); isInitialized = 1; } ... } ãã«ãã¹ã¬ããã»ããã°ã©ã ã«ããã¦åçã«ã©ã¤ãã©ãªã¼ãåæåããã«ã¯ã1 ã¤ã®åæåãã©ã°ã ãã§ã¯ä¸ååã§ãããã®ãã©ã°ããã©ã¤ãã©ãªã¼é¢æ°ãåæã«å¼ã³åºãã¦ãã
Section: GNU Tools (1) Updated: 1998/12/16 Index JM Home Page roff page å称 gcc, g++ - GNU ããã¸ã§ã¯ã C ããã³ C++ ã³ã³ãã¤ã© (gcc-2.95.3) æ¸å¼ gcc [ option | filename ]... 注æ ãã®ããã¥ã¢ã«ã«æ¸ãããæ å ±ã¯ GNU C ã³ã³ãã¤ã©ã®å®å ¨ãª ããã¥ã¡ã³ãã¼ã·ã§ã³ããã®æç²ã§ããããªãã·ã§ã³ã®æå³ã®è¨è¿°ã«ã¨ã©ãã¾ãã ãã®ããã¥ã¢ã«ã¯ãã©ã³ãã£ã¢ã®ã¡ã³ããã³ã¹ãè¡ãªãããæã«ã®ã¿æ´æ°ãã ããã®ã§ã常ã«ææ°ã®æ å ±ã示ãã¦ããããã§ã¯ããã¾ããã ãããã®ããã¥ã¢ã«ã¨å®éã®ã½ããã¦ã§ã¢ã®éã«çç¾ç¹ãããã°ã æ£å¼ãªããã¥ã¡ã³ãã§ãã Info ãã¡ã¤ã«ã®ã»ããåç §ãã¦ä¸ããã ãã®ããã¥ã¢ã«ä¸ã®å¤ãè¨è¿°ãé大ãªæ··ä¹±ãä¸å ·åãããããã¨ã«ãªãã°ã ãã®ã
ã¯ããã«ãã¹ã¬ããï¼threadï¼ã¯ã代表çãªéåæå¦çã®ä»çµã¿ã®1ã¤ã§ãä¾ãããªãããã»ã¹ã®ä¸ã§åãããã»ã¹ã¨ããæãã§ã軽éããã»ã¹ï¼lightweight processï¼ã¨å¼ã°ãããããã¾ããpthreadã¯POSIXãä»æ§åããã¹ã¬ããã¢ãã«ã§ãPOSIXä»æ§ãæºããã¦ããOSéã§ã¯åºæ¬çã«ã¯ç§»æ¤ãå¯è½ã§ãããå人çãªææ³ã§ã¯ã主ã«UNIXç³»OSã§ä½¿ç¨ããã¦ããããã§ããã大å¤ä¾¿å©ãªãã§ããããããè¤æ°ã®ã¹ã¬ãããçç¾ç¡ãåããäºã¯ã¨ã¦ãé£ãããã¾ããããã¯ãå°é£ã§ãä½ãã誤ãã¨ç°å¢æ¬¡ç¬¬ã§åããéã£ãããã¾ããæç¨ãªå®è£ æ¹æ³ã¯ãããä¸ã§ãããç¨è¦å½ããããæ¬ãå°ãªãããã«è±æãå¼·å¼ã«è¨³ãã¦ãã ãã®å¤ãæ¬ã°ããã§ããªããªãç解ãå°é£ã ã¨æãã¾ãããå½ã¬ãã¼ãã¯pthreadã«é¢ãã調æ»ã»è©¦è¡é¯èª¤ããçµæãèºããããç®æãå®è£ ä¾åã¨æãããç®æçãç¬æã¨åè¦ã¨èª¤è§£ã¨ããããã®ãµã³ãã«
3. å ±æã©ã¤ãã©ãªå ±æã©ã¤ãã©ãªã¯ãããã°ã©ã èµ·åæã«ãã¼ããããã©ã¤ãã©ãªã§ãã å ±æã©ã¤ãã©ãªãé©åã«ã¤ã³ã¹ãã¼ã«ãããã¨ããã®å¾ã«èµ·åãããå ¨ã¦ã®ããã°ã©ã ã¯ãèªåçã«ãã®æ°ããå ±æã©ã¤ãã©ãªã使ããã¨ã«ãªãã¾ãã å®éã«ã¯ããããããã¯ããã«æè»ã§æ´ç·´ããã¦ãã¾ãããªããªããLinux ã«ãããå ±æã©ã¤ãã©ãªã®å®ç¾æ¹æ³ã®ãããã§ã次ã®ãã¨ãå¯è½ã¨ãªãããã§ãã ã©ã¤ãã©ãªãæ´æ°ããªãããããã®ã©ã¤ãã©ãªã®å¤ãã¦å¾æ¹äºææ§ã®ãªããã¼ã¸ã§ã³ã使ãããã¨ããããã°ã©ã ããå¼ãç¶ããµãã¼ããããã¨ãã§ããç¹å®ã®ããã°ã©ã ãå®è¡ããã¨ããç¹å®ã®ã©ã¤ãã©ãªããããã¯ã©ã¤ãã©ãªå ã®ç¹å®ã®é¢æ°ã§ããããªã¼ãã¼ã©ã¤ããããã¨ãã§ããæ¢åã®ã©ã¤ãã©ãªã使ç¨ãã¦ããã°ã©ã ãåãã¦ããéã«ãããããå ¨ã¦ããããªããã¨ãã§ãã 3.1. ç´æãã¨ãããã®æã¾ããç¹æ§ãã¹ã¦ãå ±æã©ã¤ãã©ãªããµãã¼ããããã
2000.03.11 åç ã©ã¤ãã©ãªã¯ãåå©ç¨ãç®çã¨ãã¦ä½æãããã³ã³ãã¤ã«æ¸ã¿ã®é¢æ°ã®éåã§ãã linux以å¤ã®OSå¥ Shared Library ã®æ§ç¯ã»ä½¿ç¨ã¬ã¤ãã¯ã http://www.dais.is.tohoku.ac.jp/~kabe/vsd/dynald.htmlã¸ã©ããã ã©ã¤ãã©ãªã®ååã®å é ã¯ãlib ããå§ã¾ãã¾ããLinux ã®ã©ã¤ãã©ãªã«ã¯æ¬¡ã®ï¼ç¨®é¡ããã¾ãã ã¹ã¿ãã£ãã¯ å ±æ ãã¤ããã㯠ã¹ã¿ãã£ãã¯ã©ã¤ãã©ãªã¯ãã³ã³ãã¤ã«æã«ã³ã¼ããããã°ã©ã ã«çµè¾¼ã¾ãã¾ãã ã¢ã¸ã¥ã¼ã«ãµã¤ãºã大ãããªãã¾ãããå¥ã®ãã·ã³ã«ãã¤ããªã§é å¸ããã¨ãã« ãã®ã©ã¤ãã©ãªããªãã¦ãåä½ãã¾ãã .a ã§çµãããã¡ã¤ã«ã§ãã å ±æã©ã¤ãã©ãªã¯ãããã°ã©ã ã®å®è¡æã«ãã¼ãããã¾ãããã·ã³ã«ãã£ã¦ã¯ã ãã®å ±æã©ã¤ãã©ãªããªãã£ããããã¼ã¸ã§ã³ãéã£ãããã¦ãåä½ããªããã¨ã
Boost C++ Librariesã«å«ã¾ããã©ã¤ãã©ãªè¦ç´ ã®å¤ãã¯ãåã«ããããã¡ã¤ã«ãã¤ã³ã¯ã«ã¼ãããã ãã§ä½¿ç¨ãããã¨ãã§ãã¾ããããããããã¤ãã®ã©ã¤ãã©ãªè¦ç´ ã¯ã©ã¤ãã©ãªããªã³ã¯ããªããã°ãªãã¾ãããæ¯è¼çããå©ç¨ããæ£è¦è¡¨ç¾ããã¡ã¤ã«ã·ã¹ãã é¢é£ãã©ã¤ãã©ãªã®ãªã³ã¯ãå¿ è¦ã§ãã 使ç¨ãã¦ããå¦çç³»ãVisual C++ã§ããã°ã#pragma commentæ令ãç¨ãã¦èªåçã«ãªã³ã¯ãã¦ãããã®ã§ããã®ã§ãããGCCãªã©ã§ã¯ãMakefileã®ä¸ã§æ示çã«ã©ã¤ãã©ãªãæå®ããå¿ è¦ãããã¾ããããã§åé¡ã«ãªã£ã¦ããã®ãã©ã¤ãã©ãªåã§ãã Boost C++ Librariesã®ã©ã¤ãã©ãªåã¯ããããã次ã®ãããªå½¢å¼ã«ãªã£ã¦ãã¾ãã ããã§ã[ ] ã§å²ã¾ããé¨åã¯ãã©ã¤ãã©ãªã®ç¨®é¡ã«ãã£ã¦æç¡ãç°ãªããã®ã§ãã< > ã§å²ã¾ããé¨åã«ã¯é©åãªæååãé©ç¨ããã¾ãã å é ã® li
Node:Top, Next:G++ and GCC, Previous:(dir), Up:(dir) Introduction ãã®ããã¥ã¢ã«ã§ã¯ãGNU ã³ã³ãã¤ã©ã®ä½¿ãæ¹ãã¤ã³ã¹ãã¼ã«æ¹æ³ã移æ¤æ¹æ³ããæ°ããæ©è½ãäºææ§ã®ç¡ãé¨åãããã«ãã°ã¬ãã¼ãã®æ¹æ³ãªã©ã«ã¤ãã¦èª¬æãã¦ãããGNU CC ã®ãã¼ã¸ã§ã³ 2.95 ã«å¯¾å¿ãã¦ããã(æ¥æ¬èªçãã©ãã-17 July 2001) G++ and GCC: C ã C++ ã®ããã°ã©ã ãã³ã³ãã¤ã«å¯è½Invoking GCC: gcc ã®ã³ãã³ãè¡ãªãã·ã§ã³Installation: GCC ã®ã¤ã³ã¹ãã¼ã«æ¹æ³C Extensions: C è¨èªã® GNU ã®æ¡å¼µC++ Extensions: C++ è¨èªã® GNU ã®æ¡å¼µGcov: gcov: GCC ã®ãã¹ãã«ãã¬ã¼ã¸ããã°ã©ã Trouble: GCC ã®ã¤ã³ã¹ãã¼ã«ã§åé¡ãèµ·
並ååæ£ã½ããã¦ã§ã¢ é»åã»æ å ±å·¥å¦ç³» æ°å é <[email protected]> ãã®ãã¼ã¸ã¯ã次㮠URL ã«ããã¾ãã http://www.hlla.is.tsukuba.ac.jp/~yas/sie/pdsoft-2000/2001-02-01 ãããã¯ã次ã®ãã¼ã¸ããæç¹°ã£ã¦ãããã¨ãã§ãã¾ãã http://www.hlla.is.tsukuba.ac.jp/~yas/sie/ http://www.is.tsukuba.ac.jp/~yas/index-j.html http://www.hlla.is.tsukuba.ac.jp/~yas/index-j.html â ã¹ã¬ããåºæãã¼ã¿ â大åå¤æ°ãéçå¤æ° ã·ã³ã°ã«ã¹ã¬ããã»ããã°ã©ã ããã«ãã¹ã¬ããã»ããã°ã©ã ã«å¤æ´ããã㨠ããæã« externå¤æ°ã static å¤æ°ãã©ããããã å ¨ã¹ã¬ããã§å ±æã
Pthread â IEEEã®POSIX(Portable Operating System Interface)æ¨æº P1003.1c ã®ã¹ã¬ãã. Pthreadã®ä»ã«, UNIXã¹ã¬ããæ¨æºããã. â ããã»ã¹ â UNIXããã»ã¹ã¨, ã¡ã¢ãªåã³ãã®ä»ã®ãªã½ã¼ã¹ãåç¬ã«ææããã¹ã¬ããã1ã¤æã£ã¦ãã. ããã»ã¹éã®éä¿¡ã«ã¯, IPC(ãã¤ããã½ã±ãã)ã使ã. ããã, ãã®æºåã¨ãã¼ã¿ã®ã³ãã¼ã®ãªã¼ãã¼ãããã大ãã. â ã¹ã¬ãã â è¤æ°ã®ã¹ã¬ããã, ããã»ã¹ã®å é¨ã«ããã¦ã¢ã¯ãã£ãã«ãªããã¨ãã§ãã. ã¹ã¬ããã¯, UNIXããã»ã¹ã®ããã«ã¹ã±ã¸ã¥ã¼ãªã³ã°ããã. ã¹ã¬ããã¯, ããã»ã¹ä¸ã®å ¨ã¦ã®ã¡ã¢ãªãå ±æãã. ã¹ã¬ããéã®ãã¼ã¿éä¿¡ã§ã¯, ãã¼ã¿ãã¤ã³ã¿ã渡ãã ãã§è¯ã. â
ã¸ã£ã³ãï¼ã¹ã³ã¼ããã¾ããã¸ã£ã³ãï¼é¢ä¿ãå ¨é¨çã¥ãããæãã¤ãéãã®å¯¾å¿ããããã©ãã¾ã æ®ã£ã¦ããã ãããªãã ã¨ããããã§ãYARV ã§ãããªããã°ã©ã åãããªã©ãªã©ãã¨ããä¾åéã [ruby-dev:26657] ã¯ãYARV ã§ã¯ãã¡ãã¨åãããããã£ãã i = 0 ary = (1..100).to_a class Array def map i = 0 ret = [] while i<self.size ret << yield(self[i]) i+=1 end ret end end while i<30000 i+=1 ary.map{|x| x * 1} end #=> ruby 7.500000 0.032000 7.532000 ( 7.568000) # ruby ç map yarv 1.329000 0.016000 1.345000 ( 1.34300
ãªãã¡ãã£ã¦å人æ å ±ã¯ãGenerator of the Yearãã«ã¦ã便å©è³ããåè³ãããã¾ããï¼ï¼ æ票ãã¦ä¸ãã£ãã¿ãªãã¾ãæ¬å½ã«ãããã¨ããããã¾ããã ä»å¾ãã©ãã©ã使ã£ã¦ãã£ã¦ä¸ããã ããã°ã©ã çã«ä½¿ãããããããªãå人æ å ±ã®ãã¹ãç¨ãã¼ã¿ãä½æã§ãã¾ããç¹ã«èª¬æãå¿ è¦ãªãã®ã§ããªãã®ã§ãã¨ãããããã£ã¦ã¿ã¦ããã ããã°ãããã¨æãã¾ãã 念ã®çºæ¸ãã¦ããã¾ãããçæããå½å人æ å ±ã«ããçºçãããããªãæ害ãå½æ¹ã¯ä¸åé¢ç¥ãã¾ããããã¾ãã¾ååãå®å¨ã®äººç©ã¨åå§ååã«ãªã£ã¦ãã¾ãããããã¾ããããç¹ã«é»è©±çªå·ãæºå¸¯ã«ã¤ãã¦ã¯å®éã«ä½¿ããã¦ããçªå·ã¨éãªããã¨ãããã¾ããããæ±ãã«ã¯åå注æãã¦ä¸ããã ä½ããè¦æã¨ãããã¾ããããæ°è»½ã«ããã°ã¾ã§ã³ã¡ã³ãä¸ããã HTML ã·ã³ãã«ãªHTMLã®ãã¼ãã«ã§åºåãã¾ãã XML ã«ã¼ãã<records>ãåã¬ã³ã¼ãã<reco
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}