Monoceros というPSGI/Plackサーバ書きました https://metacpan.org/release/Monoceros https://github.com/kazeburo/Monoceros StarmanやStarletのようなPreforkなアプリケーションサーバでは、コネクションの維持イコールプロセスの占有なので、HTTPのKeepAli... 続きを読む
Having some free time during the Christmas break, I decided to give a shot at a small project that I had in mind for a while, and that was to develop a PSGI-compliant(-ish) web server with support for the SPDY protocol. In case you haven’t h... 続きを読む
だいぶ以前 Plack::Server::AnyEvent::Prefork というのを書いて某所で使っていたのですが、ここ数日で事例がもうひとつ増えたついでに Twiggy ベースに書き直してCPANリリースしました。 https://metacpan.org/module/Twiggy::Prefork 使うには、 $ plackup -s... 続きを読む
Plack::Test + HTTP::Request::Common世の中には Plack::Test + HTTP::Request::Common という方法もあるが、この場合ブラウザを模したようなテストを書くと意外にも破綻しやすい。とりわけセッション周りの挙動が必須になると大変な手間になる。LWP::UserAgent... 続きを読む
A weblog about Programming, Tech, gadgets, Japan and San Francisco. Today I was looking around a way to override/patch Net::HTTP requests to a Sinatra app in tests, and happily found that the sham_rack gem exactly does that. ShamRack.at("rack... 続きを読む
PerlAmon2::Lite というモジュールを Amon2 に添付してみました。 - TokuLog 改メ tokuhirom’s blogでAmon2::Liteが出てきて、Mojolicious::Liteのようにアプリが書けるようになったので、Mojolicious::Liteを使ってMarkdownをリアルタイムプレビューしてみた ... 続きを読む
PerlではPSGIという仕様があり、その実装としてPlackというものがあるみたいだ。 PSGI/PlackはRubyでいうところのrackのようなもので、サーバとフレームワークの中間を取り持ってくれるものらしい。 少なくともこれからPerl始める人間としては、こっちに乗って... 続きを読む
詳細は後で書く use strict; use warnings; use Encode; use JSON; use Data::Section::Simple; use Text::Xslate; use Plack::Request; use Plack::Builder; #$ENV{TWIGGY_DEBUG} = 1; my $vpath = Data::Section::Simple->new()->get_data_section(); my $tx ... 続きを読む
Perl¶ The perl service can host any Perl web application compatible with the PSGI standard. That includes Perl web frameworks like Mojolicious or Dancer. Other applications can use the awesome Plack library to implement PSGI. There are also m... 続きを読む
Perl5 の PSGI アプリケーションが死ぬほど簡単につかえる dotcloud の beta 版がリリースされ、一部の Perl monger に invitation がばらまかれているとともに、id:miyagawa さんがdotcloud に join したというニュースもあり、ゴールデンウィークまっただなか... 続きを読む
CAMでオープンソーシャル関連の開発をしている、 hogemone (TwitterID) と申します。 いきなりですが、 弊社でのWEBサービス開発環境は、 基本は Apache2 + mod_perl2 + Perl + Sledge となっております。 がしかし PSGI/Plack + AnyEvent が良さそう。 という... 続きを読む
PSGI is a specification of interface protocol between Perl web applications and web servers, inspired by Python's WSGI and Ruby's Rack. Plack is a Perl module and namespace to contain set of reference PSGI server implementations, middleware a... 続きを読む
perl, plack | 14:12 | 現在、Server::Starter + Starman で運用している環境があるのですが、週に1回ほど古いワーカーが終了しないで残り続けるという現象が起こっています。FCGI 起動の名残りで、毎時間 HUP を投げていたのですが、普段は問題なく starman プ... 続きを読む
Loading… Flash Player 9 (or above) is needed to view presentations. We have detected that you do not have it on your computer. To install it, go here. Plack at YAPC::NA 2010 - Presentation Transcript Plack Superglue for Perl Web Frameworks T... 続きを読む
Plack at YAPC::NA 2010 by miyagawa 300 views, 1 favs, 0 embeds 続きを読む
Perl Hackers Hub 第1回 PSGI/Plack―フレームワークとサーバをつなぐエンジン (1) 2010年6月1日 初出:WEB+DB PRESS Vol.55(2010年2月24日発売) 宮川達彦 Perl, PSGI, Plack, フレームワーク, サーバ フレームワーク, アプリケーション, インタフェース, ... 続きを読む
最近リリースされた Hatena::Let (ラボ) や、1年ぐらい前にリリースしたはてなコピィ (ラボ) は PSGI を喋るように対応した Ridge (はてな社内フレームワーク) を使っています。 (過程で Plack を利用させてもらっています)。今のところは現状それぞれ、let は ... 続きを読む
http://github.com/spiritloose/mod_psgiPSGIを実装したApache2モジュール。 % make && make install でインストールできて、 LoadModule psgi_module modules/mod_psgi.so /psgi> SetHandler psgi PSGIApp /path/to/app.psgi で動く。 がーっと書いたのでまだ... 続きを読む
Loading… Flash Player 9 (or above) is needed to view presentations. We have detected that you do not have it on your computer. To install it, go here. Kansai.pm 10周年記念 Plack/PSGI 入門 - Presentation Transcript CGI mod_perl Catalyst FastC... 続きを読む
perl+web5年ほど前に作ったレガシーな自作フレームワークを、この度PSGI化した際の記録です。単なる記録であって、「PSGIへの対応はこうやるといいよ!」いう内容ではありません*1が、興味があればどうぞ。レガシーオレオレフレームワークの概要Oreore::Applica... 続きを読む
CPANでPlack関連の情報はないかと漁っているとstarmanライクなPSGI仕様のサーバ Starlet があると聞いて早速ためしてみました。 http://search.cpan.org/dist/Starlet/ 今まで自分の所ではplackで利用できるWAFを自前で書いてそいつをStarman + Server::Starter... 続きを読む
Tatsumakiのeg/chatをほとんどそのまま流用しました。それぞれの概要TatsumakiTatsumaki - Non-blocking web framework based on Plack and AnyEventTwiggyTwiggy - AnyEvent HTTP server for PSGI (like Thin)ニコ生アラートサーバニコニコ生放送というサービ... 続きを読む
bulknews.typepad.com Tatsuhiko Miyagawa's blog to discuss mostly tech and nerdy stuff. Now we have 4 (or actually more) PSGI standalone web servers. Here's a quick cheat sheet to compare them: HTTP::Server::PSGI - core in Plack. Should work o... 続きを読む
http://github.com/tokuhirom/p5-router-simple my $router = router { connect '/' => {controller => 'Router', action => 'index'}; submapper('/entry/{id:[0-9]+}', controller => 'Entry') ->connect('/show', {action => 'show'}) ->connect('/edit', {a... 続きを読む
2010年3月9日火曜日 [Plack] response bodyを変更するMiddlewareの試作 Webアプリケーションが見事にコードリファレンス一つに抽象化されているPSGIでは、あるアプリケーションに前処理・後処理を追加して、動作をちょっと変更するMiddlewareという仕組みがあっ... 続きを読む
perlQRコードを表示するだけの簡単なお仕事を大量にさばきたいって言われたので書いてみた。 use Imager::QRCode; use Plack::Request; my $qrcode = Imager::QRCode->new( size => 2, margin => 2, version => 1, level => 'M', casesensitive => 1, lightcolo... 続きを読む
Plack/Starman Daemontools Run File With Complete Deploy Bundle 注1:まだ本番にはデプロイしてませんが、テストでは使いました。 注2:以下スクリプトは開発者の労力を減らすためのスクリプトで、万全なデプロイ方法だとか言うわけではありません。 注3... 続きを読む
Plack::Server::Standalone系を使ったウェブアプリケーション開発と運用の実際 - JPerl Advent Calendar 2009 Perl に関するちょっとした Tips をのっけてみるよ。ちゃんと続くかな? 既存の環境に対する不満 Perl のウェブアプリケーションを構築するにあたっ... 続きを読む
Starmanというmiyagawaさんが目下開発中のPerl製Webサーバがあります。 PSGIをサポートして高速であることが特徴です。 おとといにバージョン0.1000がCPANにアップロードされたばかりという新しいものですが、 とあるエロサイトでStarmanを導入したので、その件... 続きを読む
perl去年の年末、FlashのXMLSocket通信を横取りしてダンプするアプリを書こうとしたのですが、その時に見つけたのがLee AylwardさんのPlack::App::Proxyです。HTMLを置換してFlashの接続先を横取りしつつ、自前のXMLSocketサーバを立ち上げるってのが1プロセス... 続きを読む
perl最近Middlewareを書くことが多かったのでまとめときます。MiddlewareとはPSGI的には、Middlewareは外から見るとPSGI Applicationsですが、別のPSGI Applicationsを動かす能力を持っているものです。平たく言えば、「$app をラップして 新たな $app として振... 続きを読む
ヒゲをはやして、髪をモヒカン気味に切って、ベストを着ていたら「dankogaiさんですか!」と呼ばれまくって失礼ですがショックを受けてしまい、とりあえずヒゲを剃ってみたyusukebeです。気合い入れて書きます。 はじめに さて、今回はPlack::RequestやTemplate... 続きを読む
This repository is private. All pages are served over SSL and all pushing and pulling is done over SSH. No one may fork, clone, or view it unless they are added as a member. Every repository with this icon () is private. This repository is pu... 続きを読む
NAME PSGI::FAQ - Frequently Asked Questions and answers QUESTIONS General How do you pronounce PSGI? We read it simply P-S-G-I. So what is this? PSGI is an interface between web servers and perl-based web applications akin to what CGI does fo... 続きを読む
This repository is private. All pages are served over SSL and all pushing and pulling is done over SSH. No one may fork, clone, or view it unless they are added as a member. Every repository with this icon () is private. This repository is pu... 続きを読む
PSGIircで聞いたときはうまく説明できなかった&tokuhiromさん、Yappoさん、kazuhoさんに直接教えてもらったのでまとめとくなり。Proxyサーバーを作ることになった。こんな感じのやつ。で、これの問題として対抗のサーバーの応答速度が遅い場合があってそこにPr... 続きを読む
Plack - Perlウェブサーバー 検索エンジンの皆様こんにちは。2010年以降のPerlウェブサーバーといえばPlack/PSGIですね。そんなSEOな記事です。 私がPerlでWebアプリ的な物を初めて書いたのは1999~2000年にかけての事なのでそれ以来ほぼ10年たっているわけです... 続きを読む
Twitter経由でPlack::Testを見た。なにこれ。もうCGIいらないじゃん。 PlackやPSGIを知らない人は先に適当なページでも見て頂きたい。そんなんよりPSGIのエントリ書いてほしいって方はコメント残しておいてください。でももう半年も経つからググればいっぱい見... 続きを読む
via www.flickr.com Some people still seems do not "get" Plack/PSGI, so here's the overview. The picture might scare you like "holy cow that's a lot of layers!" but actually, No, PSGI interface is a Perl code reference that's executed inline, ... 続きを読む
24 days of Plack and PSGI tips and tricks.The most important step to get started is to install Plack and other utilities. Because PSGI and Plack are just like normal Perl module distributions, the installation is as easy: just launch your CPA... 続きを読む
perl+web, メモPSGI Specificationが1.03に更新されています。新しく psgi.streaming が追加されました (Tatsumakiでも使ってる)。最初にとても大事な注意このエントリはPSGI 1.03の仕様について勉強したことを書いてます。PSGIの仕様はまだ流動的なので、かな... 続きを読む
メモ, perl+webTatsumakiを触ってみたいなあと思ったらなんかPSGI/Plackの迷路に入ってしまい、つぶやいてたらid:miyagawaさんが色々教えて下さったので、せっかくなのでまとめておきます。教えてもらってない自分で調べたことも書いてるので、間違ってたらごめ... 続きを読む
YAPC::Asia 2009 1日目 西5号館mylist/15370462 続きを読む
Friday, October 16, 2009 Event driven PSGI I spent most of today bikeshedding event driven PSGI with miyagawa on #http-engine. We seem to have converged on something that is both fairly portable to different event driven implementations, with... 続きを読む
PSGI/Plackにおいて、非同期にレスポンスが返せるstreamingという仕様/機能が追加されました。 PSGI/Plack streaming is now complete これを使うと、streamingをサポートしたサーバから非同期/nonblockingにhttpやGearmanを利用して外部へ問い合わせを行い、そ... 続きを読む
bulknews.typepad.com Tatsuhiko Miyagawa's blog to discuss mostly tech and nerdy stuff. In the last couple of days Yuval and I have been endlessly discussing what the asynchronous response API would look like in PSGI applications. And that was... 続きを読む
mod_psgi をインストールしてみたをみて速くなるなら試してみようということでmod_psgiを試してみますた。 まずはこんな感じの簡単なPSGIアプリで。 my $app = sub { return ['200', [Content-Length => '5'], ['hello']]; }; [hello] mod_psgi Requests per se... 続きを読む
Tatsuhiko Miyagawa / Plack-0.9000 - search.cpan.org Some yak have been shaved and bikeshed was done, and now Plack and PSGI are uploaded to CPAN! Some server backends like AnyEvent, FCGI::EV, Coro, Danga::Socket, ReverseHTTP and ServerSimple ... 続きを読む
This repository is private. All pages are served over SSL and all pushing and pulling is done over SSH. No one may fork, clone, or view it unless they are added as a member. Every repository with this icon () is private. This repository is pu... 続きを読む