Code Archive Skip to content Google About Google Privacy Terms
http://partake.in/events/bc4eb051-da12-465c-84d8-3ab93a4390de ã¹ã¿ã¼ãC languageé¢ç½è«æç´¹ä»&èªã¿ä¼ã§ãã ã¿ã¤ãã«éãã«ãCè¨èªãªã³ãªã¼ã§ãã ä»ã®ææ¥ç¨ã¨ãã¦ã¯ã9æã¯ICFPã¯ããã¨ãã¦è²ã ããã¾ãã®ã§ã10æã®1æ¥ã«ãã¦ããã¾ããã 7,8æéãããã¯ããããããªã¼ã¨æã£ã¦ãã¾ãã ããã§ã¾ãã¼ãã¯ããããã®ããæã¯ãåå è çãçºè¡¨ããã£ã¦ããã®ãèãã¦ããã®ã§10äººå ¨å¡çºè¡¨ããã¨ãªãã¨ã1人(ããã³ããè°è«ãå«ãã§)45åã ã¨ã45 * 10 = 7.5æéã§ä¸åº¦è¯ãããªãã¿ãããªã ãã¿è¢«ãã¯åºæ¥ãã ãé¿ãããã®ã§ãçºè¡¨ãããæ¹ã¯ã³ã¡ã³ããæ®ãã¦ããããã°ãããreserveã¨ãããã¨ã«ãããã¨æãã¾ãã
å ¬é: 2024å¹´3æ6æ¥23æ40åé ãPHPã®æ¯è¼ã®ç´ æ´ãããå æ¸ã¯æ£å¸¸ (anond.hatelabo.jp)ãã PHPã§ã¯"0x0A"=="10"ãtrueã«ãªãã®ã«ã"0x0A" == "012"ã¯falseã¨ãã話ãç¡è¶ãªè©±ã ãªãã¨æãã¤ã¤ããå®ã¯ããã¥ã¢ã«ãè¦ãã¨ã¡ããã¨æ¸ããã¦ãããããã®ã§ãããã
ã¯ããã« JavaScriptCore (WebKit/Safari ã® JavaScript ã¨ã³ã¸ã³) ã C è¨èªã«çµè¾¼ãæ¹æ³ã調ã¹ã¦ã¿ã¾ããã 解説ã¯ã½ã¼ã¹ã³ã¼ãä¸ã®ã³ã¡ã³ããè¦ã¦ãã ããã ã¾ã 以ä¸ã®ã³ã¼ãã hoge.c ã¨ãããååã§ä¿åãã¾ãã #include <JavaScriptCore/JavaScriptCore.h> static JSValueRef jsGlobalPrint( JSContextRef ctx, JSObjectRef jobj, JSObjectRef jobjThis, size_t argLen, const JSObjectRef args[], JSValueRef* jobjExp); int main(int argc, char** argv) { if (argc == 1) exit(0); // ---- ã°ãã¼ãã«
PHPã¯ã½ã¼ã¹ã³ã¼ããèªãã°ãããã¨ããCè¨èªã§æ¸ãã¦ããã¾ãã ãã®Cè¨èªã®ä¸ã§PHPãã©ããªå¦çããã¦ããã®ãããããã¬ã§ããgdbãç¨ãã¦è¦ããã¨ãã§ããã®ã§ãããç´¹ä»ãã¾ããã¾ãæ®éã®gdbã®ä½¿ãæ¹ãªãã§ãã:p ã½ã¼ã¹ããã¦ã³ãã¼ããã¦ã³ã³ãã¤ã« PHP-5.2.6ã®ã½ã¼ã¹ããã¦ã³ãã¼ããã¾ãã ã¾ã./configureããã¨ã®Makefileãã§ãã¾ãã ãã®Makefileã®ä¸ã§-gãªãã·ã§ã³ãã¤ãã¦ãããã¨ã確èªãã¾ãããã*1 ããããããã¬(gdb)ç¨ã®ãªãã·ã§ã³ã§ãã³ã³ãã¤ã«ããããã¤ããªãã¡ã¤ã«ã«ã½ã¼ã¹ã³ã¼ãã¨ã®å¯¾å¿ä»ããã§ãã¾ãã 次ã«makeãã¾ããæéããããã¾ãã ãµã³ãã«ãã¡ã¤ã« makeãã¦ããéã«æ¬¡ã®ãããªPHPãã¡ã¤ã«ãä½æãã¾ãããã <?php $i = "12"; $k = intval($i); ?> ããã¯æååã®"12"ãintvalé¢
2008å¹´5æ13æ¥ C ã ã¨ä½ã§ãèªåå®è£ ããç http://d.hatena.ne.jp/a2c/20080513/1210649174 æåçãªç¹æ§ã«ããããããã¼ã¿ããªãã£ãªã©ã®ç®ç㧠C ã使ã£ã¦æ¸ãããã©ã¤ãã©ãªã¯å¤é¨ã©ã¤ãã©ãªã¸ãããã¨ä¾åããªãããã«ãããããè¾æ¸åãå¯å¤é·é åãæ¯åèªåå®è£ ããããããã¯åãã©ã¤ã»ã³ã¹ã®å¥ã®ã©ã¤ãã©ãªããæã£ã¦ãããªã©ãã¦å é¨ã«æã¨ãã¨ãã¦ãã¾ããããªãã¨ããããè¾æ¸åã¯ããã·ã¥é¢æ°ãä½ã£ã¦ããã·ã¥ãã¼ãã«ã®ãµã¤ãºã¯ç´ æ°ã§ã©ããããªã©ã¨ãã£ããå¯å¤é·é åã¯èªåã§åå realloc() ãããããããããæ £ããã°ç°¡åã¨ã¯è¨ãæ¯åè»è¼ªãéçºæããã®ã¯ã©ããã¨æããããããå¤é¨ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ããããã¦ã¼ã¶ã¼ã«æ±ããã®ãã ããããªããªã©ã¨æã£ã¦ãã¾ããé ã®ä¸ã«ã¯æ½è±¡åãããã¬ã¤ã¤ã¼ã§ã¯ãªãå¤æ°ãæ ¼ç´ãããã¡ã¢ãªããããç´æ¥æãããã³ã³
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}