bulknews.typepad.com Tatsuhiko Miyagawa's blog to discuss mostly tech and nerdy stuff. In the last couple of (or even more :) days Yuval and I have been endlessly discussing what the asynchronous response API would look like in PSGI applications. And that was also becoming one of the most frequently asked questions on my side, since many people from AnyEvent, POE and perlbal (Danga::Socket) land a
POE ã¯çµæ§å¥½ããªãã ãã©ã使ã£ã¦ãã«ã¤ãã¦ããããä¸æºãåºã¦ããã Client::HTTP ããã®ä¸ã¤ã§ãã¬ã¹ãã³ã¹ãåãåãã³ã¼ã«ããã¯ã« CodeRef ãæå®ã§ããªããã¦ãã¡ãã¡ã¹ãã¼ããä½ããªãã¨ãããªãã®ãå«ãªã®ã§ããããªã®ãä½ã£ã¦ã¿ã¾ããã POE::Component::Client::HTTPDeferred MochiKit ã®ã¤ã³ã¿ãã§ã¼ã¹ãåèã«ãã¦ã¾ãã ãããªæãã§ä½¿ãã use POE qw/Component::Client::HTTPDeferred/; use HTTP::Request::Common; POE::Session->create( inline_states => { _start => sub { my $ua = POE::Component::Client::HTTPDeferred->new; my $d = $ua->re
JSON-RPCã¯ã©ã¤ã¢ã³ãã»ãµã¼ãã¼ã¢ã¸ã¥ã¼ã« Webã¢ããªã±ã¼ã·ã§ã³ãä½æãã¦ããã¨ãæéã®ãããã¸ã§ããªã©ãWebã¢ããªã±ã¼ã·ã§ã³ã¨åãé¢ããã¨ããã§åããããã¨ããå ´é¢ãããã¾ãã ãããã£ãå ´åãWebã¢ããªã±ã¼ã·ã§ã³ã¨ã¯å¥ã«è£å´ã§ã¸ã§ãããã»ã¹ãä½æãããã¨ã«ãªãã¾ãããããã»ã¹éã§ã®ãã¼ã¿ã®ããåããåé¡ã«ãªãæãããã¾ãã å¼ç¤¾ã§ã¯POE::Component::IKCãå©ç¨ãã¦ãã¾ããããä»åã¯âãã£ã¨ã·ã³ãã«ãªå®è£ ãã»ããï¼âã¨ãããã¨ã§ãTCPãã¼ã¹ã®JSON-RPCãµã¼ãã¼ã¢ã¸ã¥ã¼ã« POE::Component::Server::JSONRPC ã¨ãåããã¯ã©ã¤ã¢ã³ãã¢ã¸ã¥ã¼ã«ã® JSONRPC::Transport::TCP ãä½æãããã¾ããã åè¨ã®IKCã§ã¯ãperlã®ããã»ã¹å士ã§ããããåããã§ããªãã®ã§ãããJSONRPC::Transport::T
This example contains a trivial application server using POE::Component::IKC, and a corresponding client using POE::Component::IKC::ClientLite. IKC stands for "Inter-Kernel Communication" and is used to pass events between POE processes. The ClientLite library allows non-POE programs to interact with POE-based services. In this example, the server adds up a list of number and returns their sum. Th
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
æè¿ä¹ ãã¶ãã«Cometã¨ãFlashã®XML-Socketã¨ãã調ã¹ã¦ãã¾ãã Cometã¨ããã°ãã£ããã«ä»£è¡¨ãããããã«ãããã¹ããç»åã®é ä¿¡ããé ã«æãæµ®ãã³ã¾ããã ä»åã¯jsonpã§ä»»æã®ã¤ãã³ããéãè¾¼ãä¾ã¨ãã¦ããµã¼ãã«ã¢ã¯ã»ã¹ãã¦ãã人ã®ãã©ã¦ã¶ã好ãåæã«åããã¦ã¿ããã¨ãããããæªãããªãµã³ãã«ãæ¸ãã¦ã¿ã¾ããã ä»çµã¿ã¯ãããªæãã ãµã¼ãã¯POEã§åä½ãã¾ããHTTPã®åãå£ã¨ã³ãã³ãã©ã¤ã³ãåãä»ããå£ãæã£ã¦ãã¾ãã ã¯ã©ã¤ã¢ã³ãå´ããã¯jqueryã使ã£ã¦XHRãªlong_pollã»ãã·ã§ã³ãå¼µã£ã¦ããã¾ãã ãµã¼ãããã¯ä»»æã®ã¿ã¤ãã³ã°ï¼ã³ãã³ãã©ã¤ã³ãåãä»ããã¿ã¤ãã³ã°ï¼ã§jsonpãéã£ã¦ããã¾ãã ã¯ã©ã¤ã¢ã³ãã¯åãåã£ãjsonpã«ãã£ã¦ããããããã¼ããã¦ãããããã¤ãã®é¢æ°ã®ãã¡ãã©ãããããã¯ããã ã¨ãããããªæ§æã§ãã å®éã«ã©ããªãã
From POE to Erlang A Perl programmer's journey into concurrency-oriented programming (Perlããã°ã©ãã«ãã並è¡æåããã°ã©ãã³ã°) Ever needed to write a concurrent program in Perl? (Perlã§ä¸¦è¡ããã°ã©ã ãæ¸ããªãããããªããªã£ããã¨ã¯ããã¾ããï¼) As usual, you have lots and lots of options... (ä¾ã«ãã£ã¦é¸æè¢ã¯ããããããã¾ã) Usually something else (the OS) helps out (ãµã¤ãã¯ã»ãã®ãã®ãå©ãã¦ããã¾ã) Best example is Apache: multiple Perl processes (Apacheããªã«ããã®ä¾ã§ããã) Pe
1 :çç¬ã´ãªã© â 2022/01/23(æ¥) 20:11:09.18 CAP_USER9.net 1/23(æ¥) 19:57 ãªãªã³ã³ ããªããå¶æÃç«è³ã§ã¦ã¤ã³ã¯ããã¡ã³æåãããã¯ååã ããªã ï¼Cï¼ORICON NewS inc. ãã³ã¹ãã¬ã¤ã¤ã¼ã®ããªãã23æ¥ãèªèº«ã®ã¤ã³ã¹ã¿ã°ã©ã ãæ´æ°ãç«è³ãã¤ããä¸ä¹³ã
1対1ãã£ãã 1対1ã§ãã£ããããcometãã¼ã¹ã®ä»çµã¿ãä½ã£ã¦ã¿ã¾ããï¼ã¯ã©ã¤ã¢ã³ãå´ã¯ã¾ã ãã©ãã·ã¥ã¢ãããã¦ãæä¸ã§ããï¼ãµã¼ãå´ã®ã³ã¼ãã¯è½ã¡çãã¦ããã®ã§ã¾ã¨ãã¦ã¿ã¾ãï¼ãã®ãµã¼ã㯠html, css, jsãã¡ã¤ã«ã®ãã¦ã³ãã¼ã /sendã«ã¯ã©ã¤ã¢ã³ããæãã¦ããpostã¡ãã»ã¼ã¸ã®åä¿¡ /helloã«ã¯ã©ã¤ã¢ã³ããJSONã§æãã¦ããgetã¡ãã»ã¼ã¸ã®åä¿¡ åä¿¡ããpostã¡ãã»ã¼ã¸ãï¼getã¡ãã»ã¼ã¸ã¸ã®responseã¨ãã¦ç¹å®ã®ã¯ã©ã¤ã¢ã³ãã«JSONPå½¢å¼ã§éä¿¡ æ»æ´»ç£è¦ãå ¼ãã¦ï¼ã·ã¹ãã ã«ãã°ã¤ã³ä¸ã®ã¦ã¼ã¶ä¸è¦§ãgetã¡ãã»ã¼ã¸ã¸ã®responseã¨ãã¦å ¨ã¯ã©ã¤ã¢ã³ãã«JSONPå½¢å¼ã§éä¿¡ ã¨ããæ©è½ãæã£ã¦ãã¾ãï¼ POE::Component::Server::HTTP my $server = POE::Component::Server::HTTP->
ãPerl ã®éåæI/Oã¢ã¸ã¥ã¼ã« POE ã使ã£ã¦ VPN-Warp relayagent ãæ¸ãã¦ã¿ã¾ãããã« ç¶ãã¦ã åãã POE ã使ã£ã¦ VPN-Warp ãªã¬ã¼ ãµã¼ããæ¸ãã¦ã¿ã¾ããã ããã§ããªã¼ãã³ã½ã¼ã¹ã ãã使ã£ã¦ VPN-Warp ãå®ç¾ãããã¨ãã§ãã¾ãã ä»ã¾ã§ãã BIGLOBE ã® VPN ã¯ã¼ãã®ãã¼ã¸ãã証ææ¸ãåå¾ããã°ã æé¡ 525å㧠VPN-Warp ã試ãã¦ã¿ããã¨ã¯ã§ããããã§ããã ã¡ãã£ã¨è©¦ãã¦ã¿ããå ´åãªã©ã ææã§ãããã¨ãããã¯ã§ããæã¯å¦ãã¾ããã§ããã ç¹ã«ã 常æ¥é ãããªã¼ãã³ã½ã¼ã¹ã使ãããªãã¦ããæ¹ã ã ã¨ã ã¡ãã£ã¨ä½¿ã£ã¦ã¿ããã ããªã®ã«ãéãæãã®ã¯ããã ã¨æã£ã¦ãã¾ãã®ã§ã¯ãªãã§ããããã ããããç§ãã ç¡æãã試ãçãã®ãµã¼ãã¹ãã½ããã¦ã§ã¢ã«æ £ããã£ã¦ãã¾ã£ã¦ããã®ã§ã 試ãã«ä½¿ã£ã¦ã¿ããã¨ããå ´åã«ã
Comet ã«ã¤ãã¦ã¯ãæ®åãããã©ããã¨ãã以åã«ãã©ã使ãã°ããã®ããæ£ãã使ã£ãå ´åã«ä½ãã©ãã¾ã§ã§ããã®ããã¨ããç解ãå ±æããã¦ããªãããã«æãã¾ãããªã®ã§ã(ããã¾ã§ç§è¦ã§ãã) 使ç¨ããã¹ã©ã¤ãã®ä¸é¨ãå ¬éãããã¨æãã¾ãããããããã°ããããã ããã ãµã¤ãã¦ãºã©ãã®å¥¥ããã«ãã Comet ã®ãµã¼ãã¼å¨ãã®è³æããã°ããããC10K ã«å¯¾ãã¦ã©ã®ãããªã¢ã¼ããã¯ãã£ãã¨ãã®ãè¯ããã¨ã®èå¯ãç¹ã«åå¼·ã«ãªãã¾ããã ã¾ããåé¡ãæ¹åãã¹ãç¹ãããã°ãæãã¦ããã ããã°å¹¸ãã§ãã ã¨ããã®ã§åé¡ãæ¹åãã¹ãã¨ããããã§ã¯ãªãã§ãã Perl å¨ãã®è©±ã§å°ãè£è¶³ãã è³æä¸ã®ãåå¿è ã¸ã®ãªã¹ã¹ã¡ã PoCo::Server::HTTP ã§ããã©ã¼ãã³ã¹ã欲ãã人ã«ã¯ Sys::Syscall qw/:epoll/ãã®ç¹ããããã Perl ã§ã epoll ã使ãã¾ããã¨ããã
POE's Cookbook is a collection of illustrative examples for doing things (wonderful and mundane) with POE. It was started in the spirit of the [Perl Cookbook]. This cookbook is meant to be comprehensive, but it can't be without your help. Please add suggestions to the end, or feel free to create your own examples. If you wrote a component you'd like to see here, add an example. Unless otherwise st
Evolution of a POE Server by Rocco Caputo and Socko the Puppet. Copyright 2002. All rights reserved. This tutorial is free text. It may be distributed (but not modified) under the same terms as POE. For the Impatient This tutorial presents the same TCP server at four different levels of abstraction. If you're good with Perl and already know the basics of POE, you should have no trouble figuring ou
PoCo::HTTP 㧠Comet ãã£ãããµã¼ããä½ã - daily dayflower ã試ãã¦ã¿ããé¢ç½ãã ã¤ãã§ã« spread ã使ã£ã¦ãComet ãã£ãããµã¼ããã¯ã©ã¹ã¿ãªã³ã°ããå®é¨ããã¦ã¿ãã POE::Kernel->run(); ã®åã«ãPoCo::SpreadClient ãã»ããã¢ããã use POE::Component::SpreadClient; POE::Component::SpreadClient->spawn( 'spread' ); POE::Session->create( inline_states => { _start => \&spread_start, _sp_message => \&spread_message, } ); POE::Kernel->run(); sub spread_start { $poe_kernel-
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}