2007å¹´12æ15æ¥20:00 ã«ãã´ãªLightweight Languages javascript vs perl - ãã©ã¤ãã¼ãå¤æ°ã«ããåæå ã¯ã¦ããè¦ãã¨ãããããã»ãã¨ã«å·®ãåºãã®?ãã¨æã£ã¦ããæ¹ãçµæ§ããã£ããããããªã®ã§ã Life is beautiful: Javascriptãã¯ãã¼ã¸ã£ã使ã£ããã©ã¤ãã¼ãé¢æ°ã®é è½ã«ã¤ã㦠ããã¼ãããããã³ã°ã®ããã®ãªãã¸ã§ã¯ããæ¯åä½ãç´ãã¦ããã¨ããããªãã 以ä¸ã10000åå®è¡ããçµæãããªç§ã§è¡¨ç¤ºãã¾ããããã§_nãnaiveãªå®è£ ã_cãã¯ãã¼ã¸ã£ã¼ã使ã£ã¦å¤æ°åæåãä¸åº¦ã§æ¸ã¾ãã¦ããä¾ã§ããçã£ã¦ããæ¹ã¯ã½ã¼ã¹ãã覧ä¸ããã ããã°ã©ã : p(benchthis(10000, code2name_n, 'ja' )); p(benchthis(10000, code2name_c, 'ja' )); åºå
試ãã¦ã¿ãããã¨è¿½è¨ã»ä¿®æ£ããã 追è¨(2007-09-11T11:20:32+09:00) æ¿ããæ¢åºã ã£ãã(d:id:spiritloose:20060909:1157767723) id:spiritlooseããã¨ããããæ¹åæ§ãããªã被ã£ã¦ããªããw ãã¨ã æ°ããbinary protocol使ãã°ãã£ã¨å·®ãåºããã ããï¼å¾ã§èª¿ã¹ãã åç½®ã ã¡ãªã¿ã«Cache::Memcachedã®1.21*1ãã使ããCache::Memcached::GetParserã®ä»£ãããCache::Memcached::GetParserXSã§ãã newããéã«ã my $cache = Cache::Memcached->new({ servers => $servers, parser_class => ''Cache::Memcached::GetParserXS }); ã®ããã«
Cache-Memcached-XS-0.01 - client library for memcached (memory cache daemon) using libmemcache - metacpan.org libmemcache ã使ã£ã¦æ¸ããã Memcachedã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã 使ãæ¹ã¯ã»ã¼ Cache::Memcached ã¨åãã£ã½ãã é度ã«ã©ã®ãããå·®ãåºãããã³ãã¨ã£ã¦ã¿ãã #!/usr/local/bin/perl use strict; use warnings; use Benchmark qw(timethese cmpthese); use Cache::Memcached; use Cache::Memcached::XS; my $bench = timethese(10000, { 'Cache::Memcached' => sub { m
Blog Search when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${entry.path} [in template "__entry.ftlh" at line 3, column 25] - Reached through: #include "__entry.ftlh" [in template "entry.ftlh" at
æ¦è¦ noteitã¯ä»ããããªãã®ãã¼ã ãã¼ã¸ã«ç°¡åã«ä»ç®ã·ã¹ãã ãå°å ¥ãããã¨ãã§ããã¾ã£ããæ°ããã¸ã£ã³ã«ã®CGIã§ãã noteitãè¨ç½®ã§ãããã以ä¸ã®ä¸è¡ãããªãã®ã¦ã§ããã¼ã¸ã«è¿½å ãã¦ãã ããã <script type="text/javascript" charset="EUC-JP" src="/cgi-bin/noteit.cgi?logID=XXX"></script> noteitã®å°å ¥ã¯ããã§çµããã§ãããã®ä¸è¡ãæ¸ãã ãã§ããªãã®ã¦ã§ããã¼ã¸ã¯ããã«ä»ç®ãè²¼ããã¨ãã§ããããã« ãªãã¾ãã ç¹å¾´ noteitã¯ä»¥ä¸ã®ç¹å¾´ãåãã¦ãã¾ãã æ¢åã®ã¦ã§ããã¼ã¸ã«ä»ç®ãè²¼ããããã«ãªãã Ajaxãªéä¿¡ãç¨ãããã¼ã¸é·ç§»ã®ãªãä»ç®ç·¨éã å¹ åºã対å¿ãã©ã¦ã¶ã ç·¨éå 容ã®RSSã«ããé ä¿¡ã ã²ã¨ã¤ã®CGIã§ã¦ã§ããã¼ã¸ãããã¤ã§ãä»ç®åã 軽ãã(30kbåå¾ãç»
ãµãã¨ã¯å½¼å¥³ã®èªå® è¿ããæ¹åå°é§ åã®ã¹ã¼ãã¼ãã¼ã±ããã§å¾ ã¡åãããããã彼女ã¯èªè»¢è»ã§å¾ãã追ãã¤ãã¨è¨ããåã¯å¤§ããªã³ã¤ã³ãã¼ãã³ã°ã¸è»ãåãããç èãä¸æ¬å¸ã£ã¦ããã¹ã¼ãã¼ãã¼ã±ããã¸åããã¨ãã²ã£ãããªãã«ä¸»å©¦çãªå¥³æ§ããã°ãã¡ãããå ¥ãå£ãåºããå ¥ã£ãããã¦ãããæå»ã¯åå¾5æã«ãªããæè¨ããç®ãä¸ããã¨ãå¾ ããã¡ãã£ãããã¨å¤§ãã¦æªã³ãã¦ãªãæ§åã§ãµããæã¶ãã§ãã£ã¦ããã ã礼ã«æçãä½ãã¨ã¯ããããµãã®å®¶ã«ã¯é£æãåå足ãã¦ããªããããããããã¦ã¹ã¼ãã¼ãã¼ã±ããã«å¯ããã¨ã«ãªã£ãããµãã¯éèã³ã¼ãã¼ããç²¾èã³ã¼ãã¼ã¾ã§ãã¾ãã§åªç§ãªã«ã¼ããã«å°ãããããã«ç¡é§ãªãç¹æ¤ãã¦ãã£ãã欲ããé£æãããã¨ã2ç§éç¨åº¦ããããåè¦ããä¸åº¦æã«åã£ããããããããè±èãããè¿·ããã¨ãªãåãæã£ã¦ããã«ã´ã«æ¾ãè¾¼ãã ãæå¾ã«ã¢ã«ã³ã¼ã«é£²æãå·ãããã¦ããæ£ã®åã¸è¡ãã¨ãç§ã飲ãããã¨ã
ãã¼ã£ã¨ãæè¿ã®ãä»äºã§ãã¼ã¿ãã¼ã¹é¢é£ãã£ã¦ã¾ãã¦ãDBMS ã¨ãã¦ã®æ§è½è©¦é¨ã¿ãããªã®ãå®æ½ãããã¦ï¼ããªãã¦ã¯ãããªãã£ã¦ã»ã»ã»ï¼ãPerl ã§ä½ã£ã¦ã¿ã¾ããã ãããApache bench ã¨ã使ã£ã¦ããããã§ãããhttpd ã®ã¡ã¢ãªä½¿ç¨éã¨ãã馬鹿ã«ãªããªãã®ã§ãPerl ã® ithread 使ã£ã¦æ¸ãã¦ã¿ããã¨ã«ãã¾ããã âPerl ã® ithread 使ãã¨ã¡ã¢ãªä¸æ¯ä½¿ãã®ã§ãçµæçã«åãã ã£ããã©ã»ã»ã»ï¼è¦ç¬ ããã°ã©ã ã®æ§é ã¯ãproducer & consumer ã¢ãã«ã£ã¦ãã¤ã®å¿ç¨ã§ããå ·ä½çã«ã¯ãããªæãã ã§ãè² è·ã¹ã¯ãªãããèµ°ããã¦ããéã«ãã¼ã¿ãã¼ã¹ãµã¼ãã®è² è·ã vmstat ãªããsar ãªãã§è¨æ¸¬ããã°ï¼¯ï¼«ã§ãããã¥ã¼ã«æå ¥ãããªã¯ã¨ã¹ãæ°ï¼producer ã¹ã¬ããã® enqueue æ°ï¼ãå¦çã¹ã¬ããæ°ï¼consumer ã¹ã¬ããã®æ°ï¼ãå¢æ¸
ãµãã¨ã¯å½¼å¥³ã®èªå® è¿ããæ¹åå°é§ åã®ã¹ã¼ãã¼ãã¼ã±ããã§å¾ ã¡åãããããã彼女ã¯èªè»¢è»ã§å¾ãã追ãã¤ãã¨è¨ããåã¯å¤§ããªã³ã¤ã³ãã¼ãã³ã°ã¸è»ãåãããç èãä¸æ¬å¸ã£ã¦ããã¹ã¼ãã¼ãã¼ã±ããã¸åããã¨ãã²ã£ãããªãã«ä¸»å©¦çãªå¥³æ§ããã°ãã¡ãããå ¥ãå£ãåºããå ¥ã£ãããã¦ãããæå»ã¯åå¾5æã«ãªããæè¨ããç®ãä¸ããã¨ãå¾ ããã¡ãã£ãããã¨å¤§ãã¦æªã³ãã¦ãªãæ§åã§ãµããæã¶ãã§ãã£ã¦ããã ã礼ã«æçãä½ãã¨ã¯ããããµãã®å®¶ã«ã¯é£æãåå足ãã¦ããªããããããããã¦ã¹ã¼ãã¼ãã¼ã±ããã«å¯ããã¨ã«ãªã£ãããµãã¯éèã³ã¼ãã¼ããç²¾èã³ã¼ãã¼ã¾ã§ãã¾ãã§åªç§ãªã«ã¼ããã«å°ãããããã«ç¡é§ãªãç¹æ¤ãã¦ãã£ãã欲ããé£æãããã¨ã2ç§éç¨åº¦ããããåè¦ããä¸åº¦æã«åã£ããããããããè±èãããè¿·ããã¨ãªãåãæã£ã¦ããã«ã´ã«æ¾ãè¾¼ãã ãæå¾ã«ã¢ã«ã³ã¼ã«é£²æãå·ãããã¦ããæ£ã®åã¸è¡ãã¨ãç§ã飲ãããã¨ã
Parallel::ForkManagerã使ã£ããã©ã¼ã¯æ ã¤ãã§ã«LWPx::TimedHTTPã¨ã使ã£ã¦æéã¨ã¦ã¿ãã åèãªã³ã¯ CPAN (Parallel::ForkManager) CPAN (LWPx::TimedHTTP) perldoc.jp (Parallel::ForkManager) Parallel::ForkManagerã¯ä½¿ãåæãããã ä¾åã¢ã¸ã¥ã¼ã«ãå°ãªãããåºæ¬ç½®ãã°åãã¯ããèªåã§forkãããããã©ã¯ãã³ã LWPx::TimedHTTPã¯æéã¨ãã®ã«ä¾¿å©ã ãã ä¾ã«ãã¦ãµã³ãã«ã #! /usr/bin/perl use strict; use warnings; use LWP; use LWPx::TimedHTTP qw(:autoinstall); use Parallel::ForkManager; my $pm = new Para
ãã¾ããWeb::Scraperã使ã£ã¦ã¿ã¾ããã 使ããã¿ããªãã£ãã®ãã¹ã«ã¼ãç¶ããä¸çªã®çç±ã ã£ãã®ã§ãããããã§ã¯ãããªãã¨æããCISCO RECORDSã®ååæ å ±ãåå¾ããã¹ã¯ãªããã¨ãããå以å¤èª°ãèå³ããªãã¹ã¯ãªãããæ¸ãã¦ã¿ã¾ããã cisco_scraper.pl #!/usr/bin/perl use strict; use warnings; use Web::Scraper; use URI; use YAML; use Data::Dumper; my $uri = shift; my %scraper; $scraper{'link'} = scraper { process 'a', 'name' => 'TEXT'; process 'a', 'uri' => sub { return URI->new_abs( $_->attr('href'), $u
ã¡ãã£ã¨åã«ãKwikiãã¤ã³ã¹ãã¼ã«ãã¦ãã»ã£ããããã«ãã¦ãã®ã§ãããè¨å®ããã£ã¦ã¿ã¾ããã Kwikiã®ãã©ã°ã¤ã³ã®è¨å®ã¯ãkwiki -new ã§ä½ã£ããã¹(ä¾:/var/www/kwiki)ã® /var/www/kwiki/pluginsãã¡ã¤ã«ã®ä¸ã«è¨å®ãã¾ããæ¬æ¥ã¯ã kwiki -add Kwiki::...ã§ããããã¯ããªã®ã ãã Can't locate object method "plugins_file" via package "Kwiki::Config" atã/home/ktat/svk/kwiki/lib/Kwiki/Command/V1.pm line 132.ã¨ãè¨ã£ã¦ããããã¨èããªãã®ã§ãèªåã§ç·¨éãã¾ããã ãã©ã°ã¤ã³åæ¸ãã ãã§ããã®ã§ãå¥ã«ã³ãã³ã使ããªãã¦ãåé¡ãªãã§ãã ãã ããä¾åæ§ã®åé¡ããã£ããããã®ã§ãããããã¡ãã»ã¼ã¸ãã§ãã
ã ãããã¼ã© ããã News(ãããããã®ããã) madoka 4.2.10 release (2003/11/12) ãµããã«ã ã¼ã <img src="https://www.madoka.org/madokab1n.png"> <img src="https://www.madoka.org/madokab1s.png"> ããã¼ãã§ãã¾ãããã¤ãã£ã¦ãã£ã¦ãã ããã madoka 4.2 madoka 4.2.10 release.(2003/11/12) madoka 4.2.10 ããªãªã¼ã¹ãã¾ããã madoka4 ã®å®å®åãã¼ã¸ã§ã³ã§ãã cvsweb ãããã¾ã madoka 4.0 madoka 4.0.36 release.(2002/11/25) madoka 4.0.36 ããªãªã¼ã¹ãã¾ããã madoka 4.0 ã¯ãå®å®åãã¼ã¸ã§ã³ã§ãã ä»å¾æ°ããªæ©è½ã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}