2008-03-01ãã1ã¶æéã®è¨äºä¸è¦§
glibcã®mallocã¯ptmallocã使ã£ã¦ããããããããã¯ãdlmallocããã«ãã¹ã¬ããåãããã®ãããã jemallocã¯FreeBSDã®mallocããã¼ã¹ã«ãã«ãããã»ããµã«é©ããããã«ãããã®ããããFreeBSDã®mallocã¯phkmallocãæ¸ãç´ãããã®ãããã
Launchpad newsããã ãã¡ã¤ã«ã®å ¬éæ©è½ãã§ãããããããã®ãããã§èæ¶å¤±æ§ã®é«ãå ´æãã§ããã®ã§ã翻訳ããã«ãã½ã¼ã¹ã¨ã®åé¢ãããäºå®(ãã generated from fooãæ¸ãã¦ãªãèªåçæãã¡ã¤ã«ãç¡ãããªãã¨ãªã)ã ãã¨ãã¼ã åä½ã®MLãã§ããããâ¦
以ä¸ãã¿ãã¬å«ãã å ¨ä½ã¨ãã¦ã¯è¯ãã£ãããâ¦ãç©èªã®å¤§çã¨ãã¦ããã«ãããã®ã¯ããã¨ãã¦ãå±éã大çãé²ããã ãã«ä½¿ãããã(4話)ãæ»ãã®ãã®ã«ã¤ãã¦ã®ã¡ã¿çãªä½ãã足ããªãã£ããã¾ã¨ã¾ã£ã¦ãªãã£ãããæå¤ãªä½ããç¡ãã£ããã¨é常ã«æ®å¿µãªåºâ¦
ä½ã£ã¦ä½¿ã£ã¦ã¿ããã®ã®mysortã§ã¯ãã¼ãã«å¼ãããé ããªããªã(å®éã®ã³ã¼ãã¯ãã®ã¨ããã§ã¯ç¡ãããåç´æ¯è¼ã¯ã§ããªããã©)ã !!ã£ã¦ã©ããªã£ã¦ãã®ãæ°ã«ãªã£ãã®ã§ã¢ã»ã³ãã©ã調ã¹ã¦ã¿ãã uint ntz(uint x){ if(!x) return 32; x = x&(-x); uint rvâ¦
ãã¼ã«ã«å¤æ°ã®alignã«å¯¾å¿ãã¦ãªã? (alignä»ãã®structã使ãã°ããã®ã ãããã©) ã¤ã³ã©ã¤ã³ã¢ã»ã³ãã©ã使ã£ãé¢æ°ã¯-inlineãä»ãã¦ãã¤ã³ã©ã¤ã³åãã¦ãããªã? ã¤ã³ã©ã¤ã³ã¢ã»ã³ãã©ã¯ã¬ã¸ã¹ã¿ã®èªåå²ãå½ã¦ã使ããªãã gdcãªãgasã¨always_inlineâ¦
splintãgccã®-Wextraããã£ã¨è¨èªã«è½ã¨ããªãã®ããªããè¦åã¯æè©®è¦åã ãã æ»ãå¤(ãããã¯out/ref)ã使ããªãã¨ã¨ã©ã¼ã«ããå±æ§ åºæ¬åã®å¶ç´ unused varianbleã®ã¨ã©ã¼ã¨unsedå±æ§(gcc -Wallã§ã¯ãã¦ãããã__attribute*1ããããä»ã¯ç¥ããªãã) dâ¦
å¼ãã³ãã¬ã¼ãã®ä¸ã«ã©ã¤ãã©ãªä½ããã¨ãããéè¦ãªåé¡ãçºè¦ããã é¢æ°ã®ä¾åæ§ãå¤ããã¨ãã§ããªãã対å¿ããã«ã¯ãªããã£ãã¤ã¶å¤ããªãã¨ãããªãã¯ã? å®è£ ãããã¨ãã¦ã¿ãã"Error: variable _N is used before initialization"ãåãåããããâ¦
æå³ãã¦ãªãã£ãã®ã«ããããªã³ã¼ããéããã¨ã«æ°ã¥ããã writefln((_0+_1)(_0-_1,_0)(4,2)); ã£ã¦ãã¨ã§ããããªã³ã¼ããéãã auto add = _0 + _1; auto sub = _0 - _1; writefln(add(sub(_1,_!(2)),_0)(2,3)); é¢æ°åæktkrã f!(writefln)(f!((int aâ¦
Cè¨èªã«æ¸ãç´ãã¦ã¿ãã__attributeã¨ãgasã¨ã使ã£ã¦ãã®ã§gccä¾åã http://www4.pf-x.net/~nazodane/cgi-bin/index.cgi?mode=upload:show&name=sort2.c dmdã¨gccã®æé©åãæ¯ã¹ããã¨æã£ããã©ãCã®randã¯intãªä¸ã«æ大å¤ãä½ããããªãã extern(C)使â¦
ãããè¨èªã®å£! 表ç¾ã®å£! ã³ã³ãã¤ã©ã®ãã°! http://www4.pf-x.net/~nazodane/cgi-bin/index.cgi?mode=upload:show&name=expression.d è±èªãæªããã®ã¯ãã¤ãã®äºã¨ãã¦ãã³ã³ãã¤ã©ã®ãã°ãã©ãã©ãæµ®ãã¦ãããªãã ãã¨opReturnType*ãæ§æã®é½åä¸ã§â¦
ã¡ã¢ãªãã¯ã¼ã¹ãã±ã¼ã¹ã§ãn*32ã§è¯ããªã£ããå ¥åãããã¡ã«åºåããããã«ããã®ã§ãé åã¹ã©ã¤ã¹ãGCã®ç¡ãCè¨èªã§ãå®è£ ã§ããããã«ãªã£ããé«éåãããã¾ã ä¸ã¶æé«éåéä¸ã®ç®æãããã©ãããããã é度çã«ã¯ãDè¨èªã®å é¨ã½ã¼ã(ç¬èªå®è£ ã®qsoâ¦
éãããã¼ãã«ä½¿ã£ã¦ã¿ããé ãã£ãã®ã§ã¤ã³ã©ã¤ã³ã¢ã»ã³ãã©ã§æ¸ãç´ãããæ©ããªã£ããã³ã³ãã¤ã©ã¯å½ã¦ã«ã§ããªããªãã invariant ubyte[152] table=[ 0, 0, 1, 0, 2, 0, 8, 9, 3,10, 0,16,17,11,18, 0, 4, 0,19, 0, 0,12, 0, 0,24,25,20,26, 0, 0, 0,2â¦
O(n)ã§æåqsortãç®æããåã¦ãªããªãã ã¢ã«ã´ãªãºã èãã¦ãã¨ãããåãã£ã¦ããã©ãã¡ã¢ãªå°ãã¾ãããã¯ã¼ã¹ãã±ã¼ã¹ã§n*33bytesãå°ãã ãã¨ntzã¯ãã£ã¨æ©ãæ±ãããã¨ã§ããæ°ãããã uint bit_count(uint bits) { bits = (bits & 0x55555555) + â¦
âåéããã¦ããuint[] nextã使ãã°ãªãã¸ã§ã¯ãæ¯ã½ã¼ãã§ããã import std.stdio; int[] mapsort(int min, int max)(int[] arr){ size_t[max-min+1] len; foreach(i;0..arr.length) len[arr[i]-min]++; size_t c; foreach(i;0..max) foreach(j;0..len[i]â¦
è² æ°ã¯æªå¯¾å¿ã import std.stdio; uint[] sort(uint[] arr){ scope uint[] buf = new uint[arr.length]; foreach(k;0..uint.sizeof){ size_t[0x101] count; foreach(a;arr) count[((a>>(8*k))&0xff) + 1]++;//FIXME: 0xffã®æã¯æ°ããªãã¦ããã foreach(i;â¦
ã¾ã 確èªã¯ie6 (msxml3? 2?)ã ãã å¤æ´ããç¹ xml-stylesheetãapplication/xmlããtext/xslã«(msxmlã®ãã°åé¿) xsltã®outputãåé¤(msxmlã®shift-jisã«ãªã£ã¦ãã¾ããã°åé¿) dtdã®ä¿®æ£(w3cã®flat-dtdã®ã¨ã³ãã°ä¿®æ£ãmsxmlã®ãã°åé¿) æ¨æºãç¡è¦ããªãâ¦
b3ã®ä¸å ·åãæ¸ã£ã¦ã¦ããæããããã¨å ¨ä½çã«æ©ããªã£ã¦ãã ãã placesã¯ãã£ã¨æ©ããªã£ã¦ãããªãããªãã ãã¨ãb2r+defaultExã®å ¨ä»¶è¡¨ç¤ºãã¾ã é ã(1000ã¬ã¹ã§5s)ã #ãããããAlt+Enterã¯ä½å¦è¡ã£ã? ããåºã¾ããæ®å¿µã
è¡çªããã¨ãèããã®ããã©ãããä¸ã®ä¸ã«è¯ããªãæ¹ã«ãã¨ããã£ã¦ãã丸æãæãã è¡çªç¡è¦ãã¦æ³å¾ä½ã£ã¦ãã«ãã³ããè£å¤å®ãããã«è¨ãã£ã¦ããããçãªã ã¾ãæ²æ³ã¯è¦æ±ä»æ§çãªãã®ã ããããã¨ãã¦ããæ³å¾ã¾ã§ããã ã¨å°ãç½ ã æ²æ³ã®èæ¡ä½ã£ã¦â¦
/etc/default/pulseaudioã®PULSEAUDIO_SYSTEM_STARTã1ã«ããã /etc/init.d/pulseaudio restartãããã ãã¡ã¤ã«åãæå®ãã¦å®è¡->"cmd"ããã "C:\Program Files\andLinux\pulseaudio\pulseaudio.exe" -D ãå®è¡ã timidity -Oeã§é³é³´ã£ããmplayerãé³´â¦
å¾ã§è¿½å ããã°ããã¨èãã¦xfceã®ãå ¥ããã ã¡ã¢ãª256Mããã¡ã¤ã«ã·ã¹ãã ã¯cofsã«ããã ãªããèµ·åãé ãã uname -aã¯ãããªæã: Linux andLinux 2.6.12-co-0.7.1 #1 Sat Jul 14 12:13:49 UTC 2007 i686 GNU/Linuxãã«ã¼ãã«ãå¤ããã©ã大ä¸å¤«ãªã®ã â¦
ã¾ã 使ã£ã¦ãªããã©ãæ¹å転æãã¦åãè¯ããªã£ã¦ãããMSã®æ¬æ°krkr? ã¨æã£ããaddEventListenerã__proto__ãSVGãxhtmlã«æªå¯¾å¿ãããâ¦ããããMSã UIé¢ã§ã¯ã¤ãã«webã¨ã®èåktkrããã®Activitiesã¯OSå ¨ä½ã«æ¸¡ã£ã¦ä½¿ããããã«ããã¹ãã ãããªãã¨æâ¦
IFTI implicit function template instantiation
structã«ãã¹ãã©ã¯ã¿ã¨ã³ãã¼ã³ã³ã¹ãã©ã¯ã¿ãä»ãããC++ã¨ã®å®å ¨äºæã§ãç®æãã¤ããã ãããããããããªããªãã¬ã¼ã·ã§ã³ãªã¼ãã¼ãã¼ãã鬼éã«ãªãããã ãâ¦ã >Added compile time error for comparing class types against null. ã¯è§£èª¬å¾ ã¡ãif(iâ¦
vcssetup.exeãè½ã¨ãã winbindãã¤ã³ã¹ãã¼ã«ãã(sudo aptitude install winbind)ã ææ°çã®gitã«ä»¥ä¸ã®ããããå½ã¦ãã http://www.winehq.org/pipermail/wine-patches/2006-February/023886.html http://www.winehq.org/pipermail/wine-patches/2008-â¦
Acid2ã®ãããã§ãè¯ãã¯ãªã£ã¦ã¯ããããç¸å¤ãããxml/xhtmlå¨ããè²ã ã¨ãããããªããxsltã«å¯¾å¿ãã¦ãªãããã ããACCEPTã«application/xhtml+xmlè¿ãã¦ãªãããã®æ±ããå¤ãªæ°ããããã¨ãããããããxmlã«å¯¾å¿ãã¦ãã®ã ããã? å¾ãJavascriptã®äºâ¦
hardyä»å±ã®ã以å使ã£ãã¨ã(0.13)ããè¯ããªã£ã¦ãã®ã§ã¬ãã¥ã¼ã gtk#ãSystem.Windows.Formsã¨ç°ãªã£ã¦ãã®ã§è¦ããªãããªãã¨ãããªããªãããããããªã¼ãã³ã³ããªã¼ãã§èª¬æãåºã¦ããªãâ¦ã Gtk.MessageDialogã®ã³ã³ã¹ãã©ã¯ã¿ãããã«å¼æ°ãå¤ãå¿ è¦â¦
次ã«ãå®è£ ãã¦ããã¾ããã¾ãã¯ãå¼æ°ã®å¶éã追å ãã¾ãã string multiReplace(repstrs...)(string s){ /*static */assert(~repstrs.length & 1, "invalid repstrs.length"); mixin(genMultiReplaceCode(s.stringof, [repstrs])); } ãã°ã§static assertâ¦
ã¾ãéå½¢ã¨ãã¹ãã±ã¼ã¹ãä½ãã¾ããååã¯replace.dã¨ãã¾ããã³ã³ãã¤ã«åã³å®è¡ã¯rdmd -unittest replace.dã§è¡ãã¾ããã¡ãªã¿ã«ãã®ãã¹ãã±ã¼ã¹ã¯ã¾ã æããå¤ãã¨ãããã¨ãè¦ãã¦ããã¦ãã ããã module replace; import std.stdio; /* * multiReplaâ¦
.replace("",">")ããã¾ãæé©åãããä¸ã®ä¸ãªãã¦ç¡ããæé©åãç 究ãã¦ãã°ã§ããã®ã ãããã©ãå人çã«ã©ã®ã³ã³ãã¤ã©ãæååã¾ããã®æé©åã®å®è£ ã¯é ãã¦ãå°è±¡ããããã¨ããããã¾ãèãããã¨ç¡ããã¨ãããã¨ã§é»éè¡ã£ã½ãmixinã§è§£æ±ºãã¾ããâ¦
gdcã®d/target-ver-syms.sh辺ãã§è²ã versionãçæããã¦ãã gdcã®phobosã«ã¯std.stdintã§Clong_tã¨Culong_tãå®ç¾©ããã¦ãã¿ããã ãåãã¦ç¥ã£ãããã¨ã__builtin_Clongã__builtin_Culongã__builtin_machine_intã__builtin_machine_uintã__builtin_â¦