ToDo:
¤¢¤Ä¤«¤Þ¤·¤¯ Larry ¤Î¥µ¥¤¥ó¤â¤é¤¿¡ª ¤â¤¦²¶¤Ï¤½¤ì¤ÇÁ´¤ÆÎɤ¤¡£
²¿ÅÙ¤«¸ì¤Ã¤Æ¤ë¤È»×¤¦¤±¤É¼Â¤Ï¤½¤ó¤Ê¤Ë¸ì¤Ã¤Æ¤Ê¤¤¤«¤â¤·¤ì¤Ê¤¤¤±¤É¡¢ ËͤϤ½¤ó¤Ê¤Ë¹¥¤¤Ê¥×¥í¥°¥é¥à½ñÀҤȤ«¤½¤ó¤Ê¤Ë¸ì¤ì¤Ê¤¤¤ó¤À¤±¤É¡¢ ¤¤¤ï¤æ¤ë¥é¥¯¥ÀËܤÏÂç¹¥¤¤ÊËܤǡ¢ ¤¹¤Ã¤Ý¤¹¤Ã¤Ý¤Î¥×¥í¥°¥é¥ß¥ó¥°¸À¸ì C++ ¤È¤«¤È Ʊ¤¸ÄøÅ٤ˤϱƶÁ¤È¤«¤Ï¤¢¤ëµ¤¤¬¤¹¤ë¤ó¤À¡£ ¤Þ¤¡ËͤÏËܤ˱ƶÁ¤µ¤ì¤ë¤È¤«º£°ì¤Ä¥Ô¥ó¤È¤¤Æ¤Ê¤¤¤Î¤Ç¤¢¤ä¤·¤¤¤±¤É¡£
¥µ¥¤¥ó¤â¤é¤Ã¤¿µÇ°¤Ë Perl ¤ò¥Ù¥¿¥Ü¥á¤¹¤ë¡£
Perl ¤Ã¤Æ¤¤¤¦¤Î¤Ï¤³¤¦¡¢ÊÑÂÖ¸À¸ì°¦¹¥²ñ¤Ë¤È¤Ã¤Æ¤Î LISP ¤È ¹Í¤¨¤Æ¤âÁ´¤¯ÌäÂê¤Ê¤¤¤È»×¤¦¡£ ¥ä¥Ä¤é¤Ï¤³¤¦10ǯÀè¤ò¹Ô¤Ã¤Æ¤ë¤È¹Í¤¨¤Æ¤è¤¯¡¢ LL ¤È¤«¹¥¤¤Ê»Ò¤¬¤³¤ó¤Ê¥Ï¥Ã¥¡¼¤Ê¤³¤È¤ä¤Ã¤¿¤¼!! ¤Ã¤Æ¤¤¤¦¤Î¤Ï¡¢ ¡Ö¤¢¡¼¤½¤ì Perl ¤¬ 3000ǯÁ°¤ËÄ̤ä¿Æ»¡× ¤ß¤¿¤¤¤Ê¤³¤È¸À¤ï¤ì¤Æ¤â¤ª¤«¤·¤¯¤Ê¤¤ÄøÅÙ¤Ë¤Ï ¤¹¤´¤¤¤È¤¤¤¦¤Î¤òǧ¼±¤·¤Æ¤«¤é¤ÎÊý¤¬°Â¿´¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç¤¹¡£
Î㤨¤Ðº£Æü¤È¤« Perl Golf ¤È¤¤¤¦¤Î¤ò Web ¥Ù¡¼¥¹¤Ç¡Ä ¤È¤«¤Û¤²¤Û¤²»Ê²ñ¤Î¤«¤¿¤¬¤ª¤Ã¤·¤ã¤Ã¤Æ¤¿¤±¤É¡¢ ¤¢¤ì¤Ï¤¿¤Ö¤ó¥¦¥½¤Ç¡¢Åö½é¤Ï newsgroup ¤Ç¹Ô¤Ê¤ï¤ì¤Æ¤¿¤ó¤À¤È»×¤¦¡£ newsgroup ¤È¤«¤¤¤¦»þÂ夫¤é¥´¥ë¥Õ¤ä¤Ã¤Æ¤¿Ï¢Ãæ¤Ê¤ï¤±¤Ç¤¹¤è¡£ ÃΤé¤ó¤±¤É¡£
¤Þ¤¡¥´¥ë¥Õ¤Î¤³¤È¤È¤«½ñ¤¯¤È¤Þ¤¿¤½¤ó¤ÊÏä«Åª¤Ê´¶¤¬¤¢¤ë¤±¤É¡¢ Perl ¤Ç¼Â¹Ô¤Ç¤¤ë»í¤ò½ñ¤¯ perl poem ¤È¤«¡¢ Acme::* ¤È¤«¡¢ JAPH ¤È¤«¡¢ ¤Û¤²¤Û¤²¤È¤«¡¢¤Õ¤¬¤Õ¤¬¤È¤«¡¢
¡Ä¤È½ñ¤¤¿¤«¤Ã¤¿¤ó¤À¤±¤É¡¢¤Ö¤Ã¤Á¤ã¤±¤¢¤ó¤Þ Perl ¤È¤«ÃΤé¤ó¤Ê¡£ ¤Þ¤¡¤½¤¤¤¦»Ò¤Ï¤È¤Ë¤«¤¯ Perl ¤ò³Ø¤Ö¤Ù¤¤Ê¤ó¤Ç¤¹¡£¤¿¤Ö¤ó¡£
¤Ç¤Þ¤¡¥é¥¯¥ÀËܤâ Larry ¤¬¤½¤¤¤¦¤Î¹¥¤¤Ê¤ó¤À¤Ê¤¡ ¤È¤¤¤¦´¶¤¸¤¬¤¹¤´¤¯¤¹¤ë¤Î¤Ç¤³¤¦Îɤ¤¤Î¤Ç¤¹¤è¡£
ÍÑ¿´¤·¤í¤è¡¢ emacs ¤µ¤ó¡£¸À¸ì¤òÆ⢤¹¤ë¤Î¤Ï¡¢·¯¤À¤±¤ÎÀìÇäÆõö¤¸¤ã¤Ê¤¤¤è :-)
¤È¤«¡¢¤Þ¤¡¤³¤¦¤Ê¤ó¤È¤¤¤¦¤«¤³¤¤¤¦¤Î¤¤¤¤¤Í¡£
¤À¤¤¤ÖÁ°¤Ë½ñ¤¤¤¿¤³¤Î¤Ø¤ó¤ÎƬ¤ª¤«¤·¤¤ÏäȤ«¤â Ê̤ËÈë±üµÁ¤È¤«¤¸¤ã¤Ê¤¯¤Æñ¤Ë¥é¥¯¥ÀËܤ˽ñ¤¤¤Æ¤¢¤Ã¤¿¤ï¤±¤À¤·
http://d.hatena.ne.jp/shinichiro_h/20071107#1194442793
(00:49)
http://d.hatena.ne.jp/takkaw/20080830/p2
¤Á¤Ê¤ß¤Ë Python ¤Ë¤â capitalize ¤â¤¢¤ê¤Þ¤¹¡£ (is)?(upper|lower|title) ¤È¤µ¤é¤Ë capitalize ¤¬¤¢¤ë¡¢¤È¤¤¤¦¤Î¤¬¸½¾õ¤é¤·¤¯¡¢ Python ¤ÏÂçʸ»ú¾®Ê¸»úÊÑ´¹³¦¤Îͺ¤È¸À¤Ã¤Æ¤âÎɤ¤¤Î¤Ç¤Ï¤Ê¤¤¤«¤È»×¤¤¤Þ¤¹¡£ iscapitalize ¤¬²¿¸Î¤Ê¤¤¤Î¤«¡¢¤½¤ì¤ò¹Í¤¨¤Æ;À¸¤ò²á¤´¤½¤¦¤«¤È»×¤¤¤Þ¤¹¡£
(00:55)
¤Ç¡¢º£Æü¤ÎÆݤ߲ñ¤Ç¡¢ isakr ¤ß¤¿¤¤¤Ê¤Î¤¬¤¢¤ë¤È¤¤¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤È¤¤¤¦¤³¤È¤Ê¤Î¤Ç ¤µ¤Ã¤½¤¯ºî¤Ã¤Æ¤ß¤Þ¤·¤¿!
class String def akr? # must not be capitalized return false unless self[/^[a-z]/] # there should be continuous upcases return false unless self[/[A-Z][A-Z]/] return true end end puts "defLATE: #{'defLATE'.akr?}" puts "deflate: #{'deflate'.akr?}" puts "Deflate: #{'Deflate'.akr?}" puts "dEflate: #{'dEflate'.akr?}" puts "DEFLATE: #{'DEFLATE'.akr?}" puts "deFLate: #{'deFLate'.akr?}"
¼Â¹Ô·ë²Ì:
defLATE: true deflate: false Deflate: false dEflate: false DEFLATE: false deFLate: true
¤È¤ê¤¢¤¨¤º¸½¼Â¤ÎÎ㤬°ì¤Ä¤·¤«Ìµ¤¤¤Î¤Ç¡¢ »ÅÍͺöÄ꤬Æñ¤·¤½¤¦¤Ç¤¹¤Í¡Ä!
(01:04)
akr? ¤¬¤¢¤ë¤Ê¤é¼ÂÁõ¤Ï¤«¤ó¤¿¤ó
class String def akr akrize = proc{|s|s.split('').map{|_|rand<0.5 ? _.upcase : _.downcase} * ''} until (s = akrize[self]).akr? end s end end 10.times{puts 'deflate'.akr}
¼Â¹ÔÎã
dEFlate deFLaTe dEFlaTE dEFlAte dEFLATE dEFLatE deflATE dEFLATe dEFlAtE dEflATe
¤¤¤«¤Ë¤â¤¤¤ä¤Ê¤«¤ó¤¸¤Î¤â¤Î¤¬
(01:09)
À諤¿»þ¤Ï deflate °ã¤Ã¤¿¤è¤¦¤Êµ¤¤¬¤¹¤ë¤Ê¤¡¡Ä ¤È¤«»×¤Ã¤Æ¤°¤°¤Ã¤¿¤é¤ä¤Ï¤êÊ̤λöÎã¤òȯ¸«¤·¤¿¡£ ¤¦¤óËͤ¬¸«¤¿»þ¤Ï DeFLaTe ¤À¤Ã¤¿¤è¤¦¤Êµ¤¤¬¤¹¤ë¡£
¤È¤¤¤¦¤ï¤±¤ÇÀèÄø¤Î¥³¡¼¥É¤Ë¤Ï½ÅÂç¤Ê¥Ð¥°¤¬¤¢¤ë¤Î¤Ç ¥×¥í¥À¥¯¥·¥ç¥ó¤Ç¤Ï»È¤ï¤Ê¤¤¤è¤¦¤Ë¤ª¤Í¤¬¤¤¤·¤Þ¤¹
(02:01)
¤Û¤²¤Û¤²¤è¤ê C++ ¤ÎÊý¤¬ÃæÆóɤȤ·¤Æ¤Ï¤Û¤²¤Û¤²¤Êµ¤¤¬ ¤¹¤ë¤È¤¤¤¦¤è¤¦¤Êµ¤¤¬¤¹¤ëŪ»ØŦ¡£
¤¿¤·¤«¤Ë¤Û¤²¤Û¤²¤ÏÃæÆóɤ½¤Î¤â¤Î¤À¤È»×¤¦¤±¤É¡¢ C++ ¤Ï¤³¤¦¤ä¤ê¤¿¤¯¤Ê¤ë¤³¤È¤Ï¤ï¤«¤ë¤Ê¤¡ ¤¦¤ó¼ÂºÝ¤Ë¤Ï¤½¤ó¤Ê¤Ë½ñ¤«¤Ê¤¤¤ó¤À¤±¤É¤Í¡¢
¤È¤¤¤¦¤¢¤Ê¤¿
¤ÏÃæÆóɤʤΤÇÌäÂê¤Ê¤¤¤È¤¤¤¦¤è¤¦¤Ê¡£ ¤¤¤ä¤½¤¦¤¤¤¦ÏäÀ¤Ã¤¿¤«
(23:44)
Á° | 2008ǯ 8·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
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°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£