9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] webdraw status update 12
       [not found] ` <CAA1C+h1EZtdmpiDJW7yczmBt7H1CqXZ4=i2NYZxVbi57eqGLoQ@mail.gmail.com>
@ 2013-09-29 16:45   ` David Hoskin
  2013-09-30 13:09     ` erik quanstrom
  0 siblings, 1 reply; 2+ messages in thread
From: David Hoskin @ 2013-09-29 16:45 UTC (permalink / raw)
  To: plan9-gsoc, fariborz.t; +Cc: 9fans

Neat, thanks!

I recently committed a version that uses a simplified version of the C
program[*] but doesn't need to go through /srv.

Your version of -srv mode is certainly better though!

An interesting idea would be to combine both of your modes: proxy.go
would always create an unique name for /srv, and then print it to
stdout.  A wrapper shell script could then do

proxy | while read i; do
	(
		mount -b $i /dev
		$*
	) &
done

(Apologies for the unixisms; I couldn't figure out how to read in like
that in rc.)

[*]: None of that threaded copying monkey business I had before; it's
just passed the 9P connection as fd 0 and then calls mount(0, "/dev").

From: Skip Tavakkolian <fariborz.t@gmail.com>
Subject: Re: webdraw status update 12
Date: Sat, 28 Sep 2013 16:47:13 -0700

> Hi,
>
> I tweaked  proxy.go a bit and added an rc script so that runweb.c and
> srvcat.c are not needed.  It's a hack, since rfork is not fully supported
> in Go.  The two modes now work:
>
> ./proxy /bin/games/catclock # and then refresh the page
>
> or
>
> ./proyx -srv & # then refresh the page in the browser and run
> ./wrun.rc /srv/webdraw /bin/games/catclock
>
> -Skip
>
>
>
> On Wed, Sep 25, 2013 at 7:18 PM, David Hoskin <root@davidrhoskin.com> wrote:
>
>> Since the last update, I fixed up masked drawing and implemented
>> rudimentary cons support, so you can even sort of interact with the
>> system!  I'm working to make the server automatic, so that web clients
>> can just connect without manual intervention on the Plan 9 host.  Once
>> that works, I want to implement mouse support and make keyboard input
>> useful.
>>
>> Unfortunately, I didn't implement the window-management functions
>> needed to run rio, and there are still various instances of poor
>> design and hacky student code.
>>
>> This project has been great fun, and I learned a whole lot.  Many
>> thanks to my mentor, Erik Quanstrom, for encouraging me when I was
>> intimidated by scary things like compression!
>>
>> A few demo screenshots may be found here:
>> http://davidrhoskin.com/gsoc/2013/img/
>> and the project, now with a bit of documentation, is at:
>> https://bitbucket.org/dhoskin/9webdraw/
>>
>> So long, and thanks for all the fish!
>> -- David
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Plan 9 Google Summer of Code" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to plan9-gsoc+unsubscribe@googlegroups.com.
>> To post to this group, send email to plan9-gsoc@googlegroups.com.
>> Visit this group at http://groups.google.com/group/plan9-gsoc.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Plan 9 Google Summer of Code" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to plan9-gsoc+unsubscribe@googlegroups.com.
> To post to this group, send email to plan9-gsoc@googlegroups.com.
> Visit this group at http://groups.google.com/group/plan9-gsoc.
> For more options, visit https://groups.google.com/groups/opt_out.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] webdraw status update 12
  2013-09-29 16:45   ` [9fans] webdraw status update 12 David Hoskin
@ 2013-09-30 13:09     ` erik quanstrom
  0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2013-09-30 13:09 UTC (permalink / raw)
  To: root, plan9-gsoc, fariborz.t, 9fans

> proxy | while read i; do
> 	(
> 		mount -b $i /dev
> 		$*
> 	) &

proxy | while(i=`{read} && ! ~ $#i 0){
	{
		mount -b $i /dev
		exec $*
	}&
}

- erik



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-30 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20130925.191817.1220847997350722247.root@davidrhoskin.com>
     [not found] ` <CAA1C+h1EZtdmpiDJW7yczmBt7H1CqXZ4=i2NYZxVbi57eqGLoQ@mail.gmail.com>
2013-09-29 16:45   ` [9fans] webdraw status update 12 David Hoskin
2013-09-30 13:09     ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).