From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 4 Dec 2009 21:03:09 -0700 From: Lyndon Nerenberg To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: <20091205035632.GD8759@nipl.net> Message-ID: References: <20091205031747.GA8759@nipl.net> <20091205035632.GD8759@nipl.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [9fans] ideas for helpful system io functions Topicbox-Message-UUID: a7fb6e56-ead5-11e9-9d60-3106f5b1d025 > My proposed type of CGI would have an advantage (?) that it presents a > bidirectional socket to the script, rather than a file that was already read > and saved to disk and a write-only socket. CGI chat over a single http > connection for example would be possible (if the browser/client also supported > it). Your CGI scripts aren't going to run on Plan 9 anyway. For the work it will take to port stuff you're better off inventing a better method that takes advantage of Plan 9's facilities. I'm interested in what can be done on Plan 9, not on mythical utopias for other OSes intractable problems. Ditch CGI, replace the execed scripts with long-running servers, and turn httpd into a dispatcher that hands off FDs based on a URL matching scheme. You could probably even hack up the plumber as the dispatcher. --lyndon