ãã®ãããé ã¬ã¹ã§ãããLLDiver 㧠@esehara ããã® LT ã§ãã£ã話ã forãããããããã¯ãç¹°ãè¿ããã¨ããåªç¸ããéããããã« ç°¡åã«è¨ãã¨ã 1~10 ã¾ã§ãåºåããæ¹æ³ãè¤æ°èããã¨ãããã®ã for, while, å帰, goto etc.. ã¨åºã¦ãéä¸ã§çµãã£ã¡ãã£ãã®ã§çµè«ã¯ãããããã¾ããã§ãããã Node ã§ã¯ã©ãã使ããã«ã§ãããªãã¨æã£ãã®ã§ã¡ãã£ã¨ä¾ãåºãã¦ã¿ã¾ãã ã¡ãªã¿ã«ãã¿ã¤ãã«ã§ãã¿ãã¬ãã¦ããéãã¤ãã³ãã«ã¼ãã®è©±ã§ãã ããã¦ãããããã¤ãã³ãã«ã¼ãã¨ã¯ä½ããããªãæ¢ãã¦ã¯ãããªãã®ãããprocess.nextTick() ã¨ã¯ä½ãããsetImmediate() ã¨ä½ãéãã®ãã ãªã©ã解説ããè¯ãä¾ã ã£ãã®ã§ãæ¸ãã¦ããã¡ã«å®ã¯ãã£ã¡ãã¡ã¤ã³ã®è§£èª¬ã¨ãªãã¾ããã ãµã³ãã«ã®å®è¡çµæ㯠Node v0.11.13 ã§ãã(æ¸
Bash on Railsä½ã£ã人ãè¦ç¿ã£ã¦ã·ã§ã«ã¹ã¯ãªãã絶è³åå¼·ä¸ã seqã¨è¨ãã³ãã³ããããæ§ã§ãã seq 10ã¨ããã¨ã1ãã10ã¾ã§åºåãã¦ãããã seq 2 10ã¨ããã¨2ãã10ã¾ã§åºåãã¦ãããã ããã使ãã¨ãforæã§ã1ã10ã¾ã§ã®ã«ã¼ãã¨ããç°¡åã«å®è¡åºæ¥ãã for i in `seq 1 10`; do echo "${i}åç®ã®åºå" done ã¨ããã¨ã 1åç®ã®åºå 2åç®ã®åºå 3åç®ã®åºå 4åç®ã®åºå 5åç®ã®åºå 6åç®ã®åºå 7åç®ã®åºå 8åç®ã®åºå 9åç®ã®åºå 10åç®ã®åºå ã¨åºã¦ãããã è¦ãã¦ç½®ããã
â» ãµã³ãã«ãJDK7ã¾ã§ã¨JDK8ã¾ã§ã§æå³ãå¤ãã£ã¦ãã¦ãããã«ããã¨ããææããã£ãã®ã§ãå°ãç´ãã¾ããã â» boxedã使ãæ¸ãæ¹ã ã¨ç¡é§ãªAutoboxingãèµ°ãã¨ã®ææãé ãã¾ããã®ã§mapToObjãå©ç¨ããããã«å¤ãã¾ããã Java8ã®ç®çæ©è½ã®ä¸ã¤ã«Stream APIãããã¾ãã ç®çæ©è½ã ããã£ã¦ãå æ¥ã®Java Day Tokyo 2014ãå«ãã¦è²ããªæã§çºè¡¨ãããã°ã®è¨äºãå ¬éããã¦ããã®ã§ãã©ããªãã®ããç¥ã£ã¦ã人ã¯å¤ãã¨æãã¾ãã Stream APIã¨ããã°ã".parallel()"ã¨æ¸ãã ãã§ä¸¦ååãã¦ã¹ãã¼ãã¢ããåºæ¥ãï¼ãã¨ããé æçãªãã¼ã¯ã¼ãã§ç´¹ä»ããããã¨ãå¤ãã®ã§ã並ååã®ããã®ä»æ§ã ã¨åéãããããã§ãããããã§ã¯ããã¾ããã â» ãã¡ãããããã£ãè¨äºã®ä¸ãã¡ããã¨èªãã°ããåç´ãªè©±ãããªããã¨ãåããã¾ãã ãããã並ååã«é¢ã
func execLoop(list []Item) { for _, item := range list { do_something(item) } } list ã«æ ¼ç´ãããå item ã«å¯¾ã㦠do_something() ãé©ç¨ãããããããã¿ã¤ãã®ã«ã¼ãå¦çã§ãã goroutine ã§ä¸¦ååããã®å¯ä½ç¨ golang ã§ã¯ãã® do_something() ã®é©ç¨ãè¶ ãæ軽ã«ä¸¦ååã§ãã¾ãããããã¡ãã do_something() ã¯ãªã¨ã³ãã©ã³ãã§ããåæã§ããã
å 容ã«é¢ãã質å㯠[email protected] ã¾ã§ 第ï¼å ããã°ã©ã é«éåã®åºç¤ æ±äº¬å¤§å¦æ å ±åºç¤ã»ã³ã¿ã¼ çæ¡åæ´ 1 ï¼ï¼ï¼ï¼å¹´åº¦ è¨ç®ç§å¦æè¡ç¹è«A æ¬è¬ç¾©ã®ä½ç½®ã¥ã 2 ï¼ï¼ï¼ï¼å¹´åº¦ è¨ç®ç§å¦æè¡ç¹è«A è¬ç¾©æ¥ç¨ã¨å 容ã«ã¤ãã¦ ï½ ï¼ï¼ï¼ï¼å¹´åº¦ è¨ç®ç§å¦æè¡ç¹è«ï¼¡ï¼ï¼å¦æï¼æ¨æ3é ï¼ ï½ ï½ ï½ ï½ ï½ ç¬¬ï¼åï¼ããã°ã©ã é«éåã®åºç¤ã2013å¹´4æ11æ¥ ï½ ã¤ã³ãããã¯ã·ã§ã³ãã«ã¼ãã¢ã³ãã¼ãªã³ã°ããã£ãã·ã¥ãããã¯åã æ°å¤è¨ç®ã©ã¤ãã©ãªã®å©ç¨ããã®ä» 第ï¼åï¼MPIã®åºç¤ã2013å¹´4æ18æ¥ ï½ ä¸¦åå¦çã®åºç¤ãMPIã¤ã³ã¿ã¼ãã§ã¼ã¹ãMPIéä¿¡ã®ç¨®é¡ããã®ä» 第ï¼åï¼OpenMPã®åºç¤ã2013å¹´4æ25æ¥ ï½ OpenMPã®åºç¤ãå©ç¨æ¹æ³ããã®ä» 第ï¼åï¼Hybrid並ååææ³(MPIã¨OpenMPã®å¿ç¨)
ãæ¢ãã®ãã¼ã¸ã¯ä¸æçã«ã¢ã¯ã»ã¹ã§ããªãç¶æ³ã«ãããã移åãããã¯åé¤ãããå¯è½æ§ãããã¾ãã ãªã³ã¯ãåãã¦ããå ´åã¯ããã¡ãã®ãåãåãããã©ã¼ã ãããé£çµ¡ãã ããã
é«æ§è½ããã°ã©ãã³ã°ææ³ã®åºç¤ ï¼ï¼ï¼ æ±äº¬å¤§å¦æ å ±åºç¤ã»ã³ã¿ã¼ åææ çæ¡åæ´ ï¼ï¼ï¼ï¼å¹´ï¼ï¼æï¼ï¼æ¥ï¼ç«ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ 1 ã¹ãã³ã³ããã°ã©ãã³ã°ï¼ï¼ï¼ãï¼â ï¼ è¬ç¾©æ¥ç¨ï¼å·¥å¦é¨å ±éç§ç®ï¼ ï½ 1. ã¬ãã¼ãããã³ã³ã³ãã¹ãèª²é¡ ï¼ç· åï¼ 2013å¹´2æ12æ¥ï¼ç«ï¼24æï¼å³å® ï¼ï¼æï¼æ¥ï¼ ã¬ã¤ãã³ã¹ ï¼ï¼æï¼ï¼æ¥ ï¬ 7. ï¼ï¼æï¼ï¼æ¥ ï¬ è¡å-è¡åç©ã®ä¸¦ååï¼ï¼ï¼ è¡åï¼è¡åç©ã®ä¸¦ååï¼ï¼ï¼ ã³ã³ãã¹ã課é¡çºè¡¨ LUå解æ³ï¼ï¼ï¼ LUå解æ³ï¼ï¼ï¼ 並åæ°å¤å¦çã®åºæ¬æ¼ç®ï¼åº§å¦ï¼ 8. ï¼ï¼æï¼ï¼æ¥ ï¬ ï¬ 2. ï¬ ï¼ï¼æï¼ï¼æ¥ï¼ã¹ãã³ã³å©ç¨éå§ ãã°ã¤ã³ä½æ¥ããã¹ãããã°ã©ã å®è¡ 3. ï¬ ï¼ï¼æï¼ï¼æ¥ é«æ§è½æ¼ç®ææ³ï¼ ï¼ã«ã¼ãã¢ã³ãã¼ãªã³ã°ï¼ 9. ï¼ï¼ï¼ï¼å¹´ï¼æï¼æ¥ ï¬ 10. ï¼æï¼ï¼æ¥ ï¬ 4. ï¬ ï¼ï¼æï¼æ¥
Most of my readers will understand that cache is a fast but small type of memory that stores recently accessed memory locations. This description is reasonably accurate, but the âboringâ details of how processor caches work can help a lot when trying to understand program performance. In this blog post, I will use code samples to illustrate various aspects of how caches work, and what is the impa
ã·ã§ã«ã¹ã¯ãªããã§ç¹°ãè¿ãå¦çãè¡ãã¨ãå¿ è¦ã«ãªããã¨ãå¤ãããã°ã°ãããã«ãããã¦ã¿ã¦ãæ¡å¤ããã«è¦ã¤ãããªãã®ã§è¨é²ãã¦ãããã®ã§ããã1ãã100ã¾ã§1ãã¤å¢å ãããªããç¹°ãè¿ãå ´åã¯ãããªæãã for i in `seq 1 1 100` do // do something done ã¯ã³ã©ã¤ãã¼ã§æ¸ããªããããªãã $ for i in `seq 1 1 100`; do // do something; done 1 2 (snip) 99 100 2ãã¤å¢å ããããªã`seq 1 2 100`ã«ããã°è¯ãã ãªãwhileæã§ãåæ§ã®ãã¨ã¯ã§ãããé·ããªããè¤éã§åããã«ããã i=1 while [ $i -le 100 ]; do // do something i=`expr $i + 1` done ã¯ã³ã©ã¤ãã¼ã ã¨è¦ãç®ã®è¤éããããã«å¢ãã $ i=1; w
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}