On Sun, Mar 26, 2017 at 09:26:00AM -0700, Lyndon Nerenberg wrote:P.S. A fun example of the simplicity of the
plan9 network API is this implementation of rlogin:
http://plan9.bell-labs.com/sources/contrib/rsc/rlogin
So while that is really neat, I personally think that's part of why Plan 9didn't take off. It's too clever, at least for me. I know the rlogincode pretty well and if you showed me that code and asked me what it was,without the comments, I don't think I would have put it together. Onthe other hand, show me the C code and I'd be able to figure it out.It's perhaps because I'm not the sharpest tool in the shed, but I reallylike how blindingly obvious a lot of the original Unix code was. Not sayingit was all that way, but a ton of it was sort of what you would imagine itto be before you saw it. Which means I understood it and could bugfix it.-- ---Larry McVoy lm at mcvoy.com http://www.mcvoy.com/lm
perhaps that was a rather extreme example, you can write rlogin in shell script, but con(1) is more typical - in C.
perhaps this is closer to what you would expect.
The network stuff is all wrapped up in the dial(2) library func, but note rawon and rawoff are pretty neat.
-Steve