[9fans] Sam on 9pm or plan9port

2008-07-22 Thread Benjamin Huntsman
As far as I could find, there isn't a newer version of sam for Windows then the 
one from 9pm, so I started trying to port the plan9port version.  So far, I got 
all of the stuff in the sam/ directory to compile.

I'm stuck on lib9, though, since it doesn't compile on Windows in its current 
form.  I've gotten bits and pieces to build, but not the whole thing, so before 
I end up having to gut it to make it work, I thought I'd ask if anyone might 
know..

might it be more straightforward to modify the plan9port sam to run on 9pm, or 
would the only way to get it running on Windows be to port the whole lib9 from 
p9p at the same time?

... I hate Windows, but alas, it's what I have to live with for my job ...

Thanks in advance!

-Ben
winmail.dat

Re: [9fans] Sam on 9pm or plan9port

2008-07-22 Thread Edward Hirgelt

Benjamin Huntsman wrote:

might it be more straightforward to modify the plan9port sam to run on 9pm, or 
would the only way to get it running on Windows be to port the whole lib9 from 
p9p at the same time?

... I hate Windows, but alas, it's what I have to live with for my job ..
  


Here is a stab in the dark -- could p9p possibly compile and run under 
Cygwin?   If so, that could be one way to get p9p working.  An extra of 
indirection may not be the most efficient thing, but...


Ed



Re: [9fans] Sam on 9pm or plan9port

2008-07-22 Thread Benjamin Huntsman
could p9p possibly compile and run under Cygwin?

Might be an easier port... MinGW might be preferable, as drawterm uses it, and 
again might be easier...
Neither would work out of the box, though.

An extra of indirection may not be the most efficient thing, but...

My approach thus far has been to just grab the bits sam needs and compile it 
static...
It'd be kind of goofy to need -two- compatibility layers just to run an 
editor, but you're right in that doing so may be the only feasible way.

winmail.dat

Re: [9fans] Sam on 9pm or plan9port

2008-07-22 Thread Skip Tavakkolian
dt can be compiled using either mingw or ms tools.  might want to read
rsc's recent post about 9vx port to windows and the relative ease
compared to porting p9p.

could p9p possibly compile and run under Cygwin?
 
 Might be an easier port... MinGW might be preferable, as drawterm uses it, 
 and again might be easier...
 Neither would work out of the box, though.
 
An extra of indirection may not be the most efficient thing, but...
 
 My approach thus far has been to just grab the bits sam needs and compile it 
 static...
 It'd be kind of goofy to need -two- compatibility layers just to run an 
 editor, but you're right in that doing so may be the only feasible way.




Re: [9fans] Sam on 9pm or plan9port

2008-07-22 Thread Steve Simon
I have a long term project to get somthing like p9p running under windows
though my goal is to use a windows box as a plan9 cpu server so /dev/draw
is not a priority.

My approach is very similar to Russ's p9p for windows alpha on swtch.com
but it is many months away from finished - i get a day a week or less to
work on it.

The DLL kernel works and supports most plan9 command line tools,
but has no mount driver yet so no devices and a recent attempt to port
over plan9's devmnt and its prerequisits resulted in more problems than
it solved.

I am happy to share the code I have which might be usefull to you.

-Steve