2015-01-01ãã1å¹´éã®è¨äºä¸è¦§
volatileã¨atomicã®éãã調ã¹ãããã«ã以ä¸ã®C++ããã°ã©ã ãã³ã³ãã¤ã«ãã¦ã¿ãã #include <atomic> void func1(int *p) { ++*p; ++*p; } void func2(volatile int *p) { ++*p; ++*p; } void func3(std::atomic_int *p) { ++*p; ++*p; } $ g++ -std=c++11 -pthre</atomic>â¦
æèèªç±ææ³(Context Free Grammar) 㨠解æ表ç¾ææ³(Parsing Expression Grammar) ã¯è¨æ³ãä¼¼ã¦ãããã®ã®ããã®æ§è³ªã¯å¤§ããç°ãªã£ã¦ããããããã以ä¸ã®ããã«Haskellã®ã¢ãããç¨ãã¦ãå·¦å帰çã§ãªãæèèªç±ææ³ããã®ã¾ã¾ãã¼ãµã¼ã³ã³ããã¼ã¿ã¼ã¨â¦
端çã«è¨ãã°-pedantic-errorsã使ãã°ããã(ã§ããã°-std=...ãä½µç¨ããã»ããããã ãã)以ä¸è§£èª¬GCCã®C/C++ã³ã³ãã¤ã©ã¯ãç¬èªã®æ¡å¼µæ©è½ãå°å ¥ãã¦ããããããç¡å¹åãããªãã·ã§ã³ã«ã¯2種é¡ãããæå³ãç°ãªãã Cæ¨æºã¨çç¾ããæ¡å¼µæ©è½ãç¡å¹åããâ¦
Alloy (hola) ã®ããã¯ã¨ã³ãã¯SATã½ã«ãã§ãããããã¤ãã®ããã¯ã¨ã³ãããé¸ã¹ãããããã64bit windowsä¸ã®64bit JREã§ã¯ãSAT4J以å¤ã¯åä½ããªãã以ä¸ã®æé ã§èªåã§jarãä½æããã°ãminisatçãåããã¤ããªãä½ããã kodkodã®ãã¤ãã£ãã©ã¤ãã©â¦
C++11以éã§ã¯<random>ãããã§è¯è³ªãªæ¬ä¼¼ä¹±æ°ãå¾ããã¨ãã§ããã #include <random> å¤é¨ããã®ä¹±æ° å¤é¨ããä¹±æ°ãå¾ãã«ã¯random_deviceã使ãã #include <random> #include <iostream> int main() { std::random_device rand_dev; std::cout << rand_dev() << std::endl; std::cout << r</iostream></random></random></random>â¦
ãé«æ ¡çã«ç¸å½ããå¹´é½¢ã ããé«æ ¡çã®æè²æ©é¢ã«å¨å¦ãã¦ããªããå ´åãæ°å¦ãªãªã³ããã¯ãæ å ±ãªãªã³ããã¯ã«ã¯åå ã§ããã®ããã¨ããåé¡ãããã該å½ããçµç¹ã«ç´æ¥è¨ããã®ãæãæ£ç¢ºã ã¨æããããã2015/06/26æç¹ã®è³æãèªãéãããããã以ä¸ã®â¦
Cè¨èªã§åå¨çÏã使ãã«ã¯ M_PI ã使ããã¨çµé¨ã§ç¥ã£ã¦ãã人ã¯å¤ãããããã¯å®ã¯Cè¨èªã®è¦æ ¼ã«ã¯å«ã¾ãã¦ããªããããããå¦çç³»ãM_PIãå®ç¾©ãã¦ã¯ãããªãäºæ (c - Using M_PI with C89 standard - Stack Overflow)ãããã ããã§ã¯ãCè¨èªã®ææ°è¦æ ¼â¦
planexã®ãããããè¨äºãåèã«ä½æ¥ãç°å¢ã¨ãã¦ã¯Raspbian wheezyãä»®å®ãããã¾ããªæµã : ã¾ããä¸æºåã¨ãã¦ã«ã¼ãã«ã¢ã¸ã¥ã¼ã«ã®ãã«ãã«å¿ è¦ãªéå ·ãæãã(æ¢ã«æãã¦ãã人ã¯ã¹ã«ã¼ãã¦ãã)ãç¶ãã¦ããã©ã¤ãã®ã½ã¼ã¹ã³ã¼ããåå¾ããå¿ è¦ãªå¤æ´â¦