ToDo:
¤Ê¤ó¤«¡¢ template ¤Ç ¤¤¤Ã¤¿¤ó̾Á°¶õ´Ö¤ÇÀÚ¤ì¤Æ¤ë¤Î¤¬¡¢ ¤³¤ì¤¬¤Þ¤¿¤Ê¤ó¤«ÉԻ׵ĤÊÍÍÑÀ¤òȯ´ø¤·¤Æ¤¤¤ë¤è¤¦¤Ê¡£ µ¤¤Î¤»¤¤¤«¤Ê¤¡¡£
writefln!("hoge %s")("hage") ~~~~~~~~~~~~~~~~~~~~ ¤³¤³¤Þ¤ÇÀÅŪ¡ª¤Ã¤Æ¤¹¤´¤¯¤ï¤«¤ê¤ä¤¹¤¤¤È¤¤¤¦Ïä⤢¤ë¤·¡Ä
¤Þ¤¢¤Í¤à¤¤
(03:44)
¥Á¥ã¡¼¥Ï¥ó¤òºî¤ê¤Þ¤·¤¿¡£ ¤¿¤Þ¤Í¤®¤â¤Ë¤ó¤Ë¤¯¤â¤Ê¤«¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ ÌýÆþ¤ì¤ÆÊÆÆþ¤ì¤ÆŬÅö¤Ë¤¤¤¸¤Ã¤Æ¤«¤é¡¢ »×¤¤½Ð¤·¤¿¤è¤¦¤Ë¥³¥·¥ç¥¦¤ò¤«¤±¤Æ¡¢ »×¤¤½Ð¤·¤¿¤è¤¦¤ËÂë¤ÎÄޤȡ¢ ¤Ê¤ó¤Ç¤â¤ª¤¤¤·¤¯¤¹¤ëÉԻ׵ĤÊÌý¤Ç¤¢¤ë¤È¤³¤í¤Î ¥´¥ÞÌý¤òÆþ¤ì¤Æ¡¢Å¬Åö¤ËÍñÆþ¤ì¤Æ¡¢ ¥·¥ç¥¦¥æ¤ò½¬¤Ã¤¿Ä̤ê¤Ë¤Á¤ç¤Ã¤È ¾Ç¤¬¤·¤Æ¤«¤é¤¬¡¼¤Èº®¤¼¤¿¤é¤ª¤¤¤·¤¤¥Á¥ã¡¼¥Ï¥ó¤Î¤Ç¤¤¢¤¬¤ê¡ù
¤ª¤¤¤·¤«¤Ã¤¿¤Ç¤¹¤¬¡¢¥¿¥Þ¥Í¥®¤¢¤Ã¤¿¤éÎɤ«¤Ã¤¿¤Î¤Ë¡£
(04:24)
D ¤Î pragma msg ¤ò»È¤Ã¤Æ¡¢ 0Byte °Ê¾å¤Î compile time quine ¤òºî¤ë¤³¤È¤Ï¤Ç¤¤ë¤«¡£
ËͤϤǤ¤Ê¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤È»×¤Ã¤¿¡£ ¤È¤¤¤¦¤Î¤Ï pragma msg ¤ÎºÇ¸å¤Ë¡¢¾¡¼ê¤Ë²þ¹ÔÆþ¤ë¤Î¤¬Äˤ¹¤®¤ë¡£ ¤µ¤é¤Ë¡¢ pragma msg ¤Ë¤Ï·×»»·ë²Ì¤òÅϤ»¤Ê¤¤¡£
¤·¤«¤·¡¢¤¤¤ä¡¢¤Ç¤¤ë¤È¤Ï»×¤¦¤ó¤À¡£
(05:04)
(05:26)
¹â¹»¤Î»þ¤Îͧã¤Ë³ÎΨ¤ÎÌäÂ꤬¿¤«¤Ã¤¿¤±¤É ¿ô³Ø¤ÎÌäÂê¤ò½Ð¤·¤Æ¤¯¤ë¿Í¤¬¤¤¤Æ¡¢ ¤½¤Î¿Í¤¬½Ð¤·¤Æ¤¤¿ÌäÂê¤òÃë´Ö¹Í¤¨¤Æ¤ï¤«¤ó¤Ê¤«¤Ã¤¿¤é¡¢ ÌÀÆü¤Þ¤ÇÂԤäƤ¯¤ì¤½¤·¤¿¤éÅú¤¨¤Ï½Ð¤»¤ë¤È¤«¸À¤Ã¤Æ¡¢ ŬÅö¤Ë¥×¥í¥°¥é¥àÁö¤é¤»¤Æ¤ª¤é¡¼Åú¤¨¤Ï½Ð¤¿¤¼ ²òÀÏŪ¤Ê²óÅú¶µ¤¨¤í¡¢¤È¤«¤ä¤Ã¤Æ¤¿¤Î¤ò»×¤¤½Ð¤·¤¿¡£
Åú¤¨¤¬½Ð¤Æ¤ì¤Ð²òÀÏŪ¤Ê²óÅú¤Ï ¤ï¤«¤ó¤Ê¤¯¤Æ¤â¤È¤ê¤¢¤¨¤ºÎɤ·¤È¤·¤Æ¤¤¤¿ »×¹Í¤¬ÌÌÇò¤¤¤Ê¤¡¤È¤Õ¤È¡£ ¤½¤·¤Æº£¤â¤¢¤Þ¤ê¤½¤Î»ÑÀª¤ÏÊѤï¤Ã¤Æ¤Ê¤¤¤Ê¤¡¡£
¤³¤ì¤À¤«¤é²¶¤Ï
(06:54)
import std.stdio; class HelloWorld {} void main() { writefln(typeid(HelloWorld)); }
Imaichi
http://d.hatena.ne.jp/nazodane/20061205/1165316504
(07:36)
¤¤¤ä¤½¤ì¤Ï TODO ¤Ç¤Ï¤Ê¤¤¤Î¤À¤¬¡£
http://shinh.skr.jp/m/?date=20061119#p07
estutf.cgi ¤Ë @mdate STRD ¤ò¤Ä¤±¤Æ¤ª¤¤¤¿¡£
(08:40)
000050 00 00 00 00 01 00 00 00 00 10 00 00 00 80 04 08 >................< 000060 00 00 00 00 00 00 00 00 00 10 00 00 05 00 00 00 >................< 000070 00 10 00 00 01 00 00 00 00 10 00 00 00 90 04 08 >................< 000080 00 00 00 00 00 10 00 00 00 10 00 00 06 00 00 00 >................< 000090 00 10 00 00 01 00 00 00 00 20 00 00 00 a0 04 08 >......... ......< 0000a0 00 00 00 00 00 10 02 00 00 10 02 00 06 00 00 00 >................< 0000b0 00 10 00 00 01 00 00 00 00 30 02 00 00 c0 e9 b7 >.........0......< 0000c0 00 00 00 00 00 10 00 00 00 10 00 00 06 00 00 00 >................< 0000d0 00 10 00 00 01 00 00 00 00 40 02 00 00 d0 e9 b7 >.........@......< 0000e0 00 00 00 00 00 d0 12 00 00 d0 12 00 05 00 00 00 >................<
¤ò 32Byte ¤º¤ÄÆɤó¤Ç¤Æ
found 15 program headers 8048000-8048000 0 8049000-804a000 1000 b7e9e000-b7e9f000 1000 b7e9f000-b7e9f000 0 b7fcc000-b7fce000 2000
¤È¤Ê¤ë¤Î¤¬¤ª¤«¤·¤¤¡£ 804a000- ¤¬¾Ã¤¨¤Æ¤ë¡£ ¤Ï¤ì¤Û¤ì¡¼¡© ¤³¤Î¥ë¡¼¥×ÊÌ¤Ë continue ¤â¤Í¤¨¤·¤Ê¤¡¡£
(19:40)
mywritefln!("hello %s")("world") ¤Î·ï¡¢ »×¤¦¤Ë mywritefln!("hello %s") ¤¬ compile time duck typing ¤Ê¤â¤ÎÊÖ¤·¤Æ¤ë¤Î¤¬ C++ ¤È¤Î°ã¤¤¤«¤Ê¤¢¡£ ¤Þ¤¡ C++ ¤Ç¤âŬÅö¤Ë class °ì¤Ä¶´¤á¤Ð¤¤¤¤¤ó¤À¤±¤É¡£ ÍפÏÎ㤨¤Ð D ¤À¤È¡¢
template mywritefln(char[] fmt)(T...) { static if (check_puts!(fmt)) alias puts mywritefln; else alias mywritefln_!(fmt) mywritefln; }
¤È¤«¤Ç¤¤ë¤Ã¤ÆÏäȤ¤¤¦¤«¡£ ¤¢¤ë¼ï°ú¿ô¤ÈÊÖ¤êÃͤ¬ÂÐÅù¤Ê´Ø·¸¤Ë¤Ê¤Ã¤Æ¤ëµ¤¤¬¤¹¤ë
(20:20)
import std.stdio; class HelloWorld {} void main() { typeid(HelloWorld).print(); }
¤Ê¤ó¤«°ã¤¦¤Ê¤È»×¤Ã¤¿¤ó¤À¡£
http://shinh.skr.jp/m/?date=20061206#p08
(20:48)
(23:33)
Á° | 2006ǯ 12·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£
¿ô³Ø²°¤¬¤è¤¯¤ä¤ë¤è¤¦¤Ë¡¢´Ø¿ô¤Î°ú¿ô¤ò F(x,y;a,b)¤ß¤¿¤¤¤Ë¡Ö;¡×¤Ç¶èÀڤ줿¤é¤¤¤¤¤Î¤Ë¤Ê¡¼¡£¡Ö;¡×¤è¤ê¸å¤í¤ÏÀÅŪ¡Á¤Ã¤Æ´¶¤¸¤Ç¤Ã¤Æ¤½¤ì¤¸¤ã¤¢printf·Ï¤Ç½ç½ø¤¬µÕ¤Ë¤Ê¤ë¤Î¤«¡Ä
¤ÏÃÖ¤¤¤È¤¤¤Æ¡¢·ÊÉʽ¸¤á·Ï¤ÎÌäÂê¤Ã¤Æ²òÀÏŪ¤Ë²ò¤±¤ë¤ó¤À¤Ã¤±¡©ÀΤÁ¤ç¤Ã¤È¤ä¤Ã¤Æ¤Ç¤¤Ê¤«¤Ã¤¿µ²±¤¬¤¢¤ë¡£Ä¶´ö²¿¤ò°Å»»¤Ç¤¤ë¤è¤¦¤Ê¿Í¤Ê¤é¤Ç¤¤ë¤«¤â¡ª
¤è¤¯¹Í¤¨¤ë¤È C++ ¼°¤Î writefln<"hello %s">("world"); ¤ÎÊý¤¬(C++¤Ç¤Ï¤³¤ì¤Ç¤¤Þ¤»¤ó¤¬)¶³¦¤Ï¤Ï¤Ã¤¤ê¤·¤Æ¤ë¤¸¤ã¤ó¡ª¤È»×¤Ã¤¿¤ï¤±¤Ç¤¹¤±¤É¡¢¤½¤ì¤Ï¤½¤¦¤È¤·¤Æ¡¢
·ÊÉʽ¸¤á¤Ï¤Þ¤À¤è¤¯¤ï¤«¤Ã¤Æ¤Ê¤¤¤Î¤Ç¤¹¤±¤É¡¢ http://chasen.org/~taku/teao/ ¤Î LISP ¤Î¤È¤³¤ò¸«¤ë¸Â¤ê¸«¤ë¤«¤é¤Ë¦²³°¤¹¤³¤È¤Ï¤Ç¤¤Ê¤¤¤Ê¤¡¤È»×¤Ã¤¿¤ó¤Ç¤¹¤¬¡¢¤½¤â¤½¤â¤¨¡¼¤È¡Ö²òÀÏŪ¤Ë²ò¤¯¡×¤Ã¤Æ¤Ê¤ó¤È¤Ê¤¯°ì¸Ä¤Î¿ô¼°¤Ë¤ª¤µ¤Þ¤Ã¤Æ¤ê¤ã¤¤¤¤¤Î¤«¤Ê¤È»×¤Ã¤Æ¤¿¤ó¤Ç¤¹¤¬¡¢¤Ò¤ç¤Ã¤È¤·¤Æ¦²³°¤µ¤ó¤È¥À¥á¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£¤Æ¤¤¤¦¤«²òÀÏŪ´Ø¿ô¤È¤¤¤¦¤ä¤Ä¤Ë¤Ê¤Ã¤Æ¤Ê¤¤¤È¤À¤á¤Ê¤Î¤«¤·¤é¡£
¤Þ¤¡¤È¤ê¤¢¤¨¤º»ä¤Ï¤Ê¤ó¤«¾å¤Î LISP ¤Î¤È¤³¤Î·Á¤òƳ½Ð¤Ç¤¤ì¤Ð¤¤¤¤¤Ê¤¡(¤½¤·¤Æ¤½¤ì¤ò²òÀÏŪ¤È¸Æ¤ó¤Ç¤¿)¤È»×¤Ã¤Æ¤¿¤À¤±¤Ê¤Î¤Ç¤·¤¿¡£
²òÀÏŪ¤Ã¤Æ¤ó¤Ê¤é¤½¤ó¤Ê´¶¤¸¤Î¼°¤Ë¤Ê¤ì¤Ð¤¤¤¤¤«¤Ê¡£
¤Ç¤â¡¢¤½¤³¤ÎLISP¤Î¼°¤Ã¤Æ¤¢¤Ã¤Æ¤ë¤Î¤«¤Ê¤¢¡©
¡Ön²ó°ú¤¤¤Æ12¼ïÎà¤Î¤¦¤Ák¼ïÎ฽¤ì¤ë¾ì¹ç¤Î¿ô¡×¤Ë12¤¬½Ð¤Æ¤³¤Ê¤¤¤Î¤Ï¤Ê¤ó¤Ç¤À¤í¤¦¡©
°ì²ó°ú¤¤¤Æ°ì¼ïÎ฽¤ì¤ë¾ì¹ç¤Î¿ô¤Ã¤Æ12¤À¤è¤Í¤¨¡£
Æó²ó°ú¤¤¤Æ°ì¼ïÎ฽¤ì¤ë¾ì¹ç¤Î¿ô¤Ï12
Æó²ó°ú¤¤¤ÆÆó¼ïÎ฽¤ì¤ë¾ì¹ç¤Î¿ô¤Ï144-12
¤â¤¦¤Á¤Ã¤È¥Õ¥©¡¼¥Þ¥ë¤Ë·×»»¤·¤Æ¤ß¤ë¤«¤Ê¡£
¤¦¡¼¤ó¡£¤Ò¤ç¤³¤Ò¤ç¤³Æ¬¤Ò¤Í¤Ã¤Æ¤¿¤ó¤Ç¤¹¤¬¤¦¤Þ¤¯¤¤¤«¤º¡£¤È¤¤¤¦¤«º£Æ¬¤À¤ë¤¤¤Î¤Çº£Åٹͤ¨¤Þ¤¹¤ë¡Ä
¤È¤¤¤¦¤«¸µµ¤¤è¤¯¤Æ¤â¤ï¤«¤é¤ó´¶¤¸¤¬¤¹¤´¤¯¤¹¤ë¤Î¤Ç¤ï¤«¤Ã¤¿¤é¶µ¤¨¤Æ¤¯¤À¤µ¤¤¤½¤¦¤Ç¤¹¶µ¤¨¤Æ·¯¤Ç¤¹¡£