9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] python
@ 2001-12-06  7:29 Russ Cox
  2001-12-06  7:17 ` Lucio De Re
  2001-12-06 16:12 ` [9fans] My "plan9" stuff for Linux (last reference, I promise) Ronald G Minnich
  0 siblings, 2 replies; 5+ messages in thread
From: Russ Cox @ 2001-12-06  7:29 UTC (permalink / raw)
  To: 9fans

g% 8.out
'import site' failed; use -v for traceback
Python 2.0.1 (#0, Dec  6 2001, 02:11:16) [C] on unknown
Type "copyright", "credits" or "license" for more information.
>>> from plan9 import *
>>> from plan9 import _exits		# underscore hides from *
>>> read(open("/dev/sysname", OREAD), 100)
'17genr'
>>> if rfork(RFPROC)==0:
... 	write(2, "child\n")
... 	_exits("")
... else:
... 	write(2, "parent\n")
...
child
parent
7
>>>

it's still rough, but i'm willing to put it into
lucio's cvs repository so people can hack
on getting it up to speed.  send me mail if you're
interested.

unlike the other os-specific modules, i think the plan9
one should include just the system calls and
then have the rest implemented as python code
rather than the fairly difficult c layering.

the eventual goal is to bring in the ``stackless
python'' patches, so we can have really cheap
continuations and build a csp-style threading
module that has neither stack overflow concerns
nor ridiculously large stacks.

russ



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

end of thread, other threads:[~2001-12-06 16:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-06  7:29 [9fans] python Russ Cox
2001-12-06  7:17 ` Lucio De Re
2001-12-06 16:12 ` [9fans] My "plan9" stuff for Linux (last reference, I promise) Ronald G Minnich
2001-12-06 16:53   ` Boyd Roberts
2001-12-06 16:57   ` Matt

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).