9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] I found this discussion pretty funny
@ 2012-10-17 13:40 ron minnich
  2012-10-17 13:47 ` erik quanstrom
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: ron minnich @ 2012-10-17 13:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

get to the part about why it's so great that pipe is a system call,
not a device.

This is the sort of back-and-forth that reminds me why I can't quite
give up on plan 9 ...

http://yarchive.net/comp/linux/everything_is_file.html

"Do we create pipes by opening /dev/pipe? No. "

and

"Yes, some old-timers could argue that original UNIX didn't have sockets,
and that the BSD interface is ugly and an abomination and that it _should_
have been a namespace thing, but that argument falls flat on its face when
you realize that the "pipe()" system call _was_ in original UNIX, and has
all the same issues."

ah well. It seems that the guy who wrote pipe() might not agree that
he does not know much about Unix ... but so it goes.

ron



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

* Re: [9fans] I found this discussion pretty funny
  2012-10-17 13:40 [9fans] I found this discussion pretty funny ron minnich
@ 2012-10-17 13:47 ` erik quanstrom
  2012-10-17 13:48 ` dexen deVries
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: erik quanstrom @ 2012-10-17 13:47 UTC (permalink / raw)
  To: 9fans

> "Yes, some old-timers could argue that original UNIX didn't have sockets,
> and that the BSD interface is ugly and an abomination and that it _should_
> have been a namespace thing, but that argument falls flat on its face when
> you realize that the "pipe()" system call _was_ in original UNIX, and has
> all the same issues."

appeal to the authority of the unix authors as a defense of sockets?
surely someone has missed a bit.

or another way, since the original was broken, we must not work correctly?

i'm tempted to draw one of those ascii slashdot memes

	unix →

	\o/
	 |
	/\

woosh!

- erik



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

* Re: [9fans] I found this discussion pretty funny
  2012-10-17 13:40 [9fans] I found this discussion pretty funny ron minnich
  2012-10-17 13:47 ` erik quanstrom
@ 2012-10-17 13:48 ` dexen deVries
  2012-10-17 19:04   ` Bakul Shah
  2012-10-17 14:23 ` cinap_lenrek
  2012-10-17 17:54 ` tlaronde
  3 siblings, 1 reply; 13+ messages in thread
From: dexen deVries @ 2012-10-17 13:48 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wednesday 17 of October 2012 06:40:45 ron minnich wrote:
> get to the part about why it's so great that pipe is a system call,
> not a device.
> 
> This is the sort of back-and-forth that reminds me why I can't quite
> give up on plan 9 ...
> 
> http://yarchive.net/comp/linux/everything_is_file.html
> 
> "Do we create pipes by opening /dev/pipe? No. "
> 
> and
> 
> "Yes, some old-timers could argue that original UNIX didn't have sockets,
> and that the BSD interface is ugly and an abomination and that it _should_
> have been a namespace thing, but that argument falls flat on its face when
> you realize that the "pipe()" system call _was_ in original UNIX, and has
> all the same issues."
> 
> ah well. It seems that the guy who wrote pipe() might not agree that
> he does not know much about Unix ... but so it goes.

a technical and organizational problem: back then Linux' /dev consisted of 
special files held on drive, its MAJOR/MINOR schema* getting dangerously 
cramped.

those days Linux' /dev is usually mounted at boot and maintained by kernel, 
somewhat alike /proc; adding some more entries probably isn't that much of a 
problem.


-- 
dexen deVries

[[[↓][→]]]

* MAJOR/MINOR being an unmountable namespace is quite ironic.



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

* Re: [9fans] I found this discussion pretty funny
  2012-10-17 13:40 [9fans] I found this discussion pretty funny ron minnich
  2012-10-17 13:47 ` erik quanstrom
  2012-10-17 13:48 ` dexen deVries
@ 2012-10-17 14:23 ` cinap_lenrek
  2012-10-17 16:31   ` Charles Forsyth
  2012-10-17 17:54 ` tlaronde
  3 siblings, 1 reply; 13+ messages in thread
From: cinap_lenrek @ 2012-10-17 14:23 UTC (permalink / raw)
  To: 9fans

whats the issue? plan9 has a syscall to create anonymous pipes:

#define	PIPE		21

--
cinap



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

* Re: [9fans] I found this discussion pretty funny
  2012-10-17 14:23 ` cinap_lenrek
@ 2012-10-17 16:31   ` Charles Forsyth
  2012-10-17 18:28     ` cinap_lenrek
  0 siblings, 1 reply; 13+ messages in thread
From: Charles Forsyth @ 2012-10-17 16:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

but that just turns round and uses the name space (like a few other system
calls).

On 17 October 2012 15:23, <cinap_lenrek@gmx.de> wrote:

> whats the issue? plan9 has a syscall to create anonymous pipes:

[-- Attachment #2: Type: text/html, Size: 459 bytes --]

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

* Re: [9fans] I found this discussion pretty funny
  2012-10-17 13:40 [9fans] I found this discussion pretty funny ron minnich
                   ` (2 preceding siblings ...)
  2012-10-17 14:23 ` cinap_lenrek
@ 2012-10-17 17:54 ` tlaronde
  3 siblings, 0 replies; 13+ messages in thread
From: tlaronde @ 2012-10-17 17:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Oct 17, 2012 at 06:40:45AM -0700, ron minnich wrote:
> get to the part about why it's so great that pipe is a system call,
> not a device.
>
> This is the sort of back-and-forth that reminds me why I can't quite
> give up on plan 9 ...
>
> http://yarchive.net/comp/linux/everything_is_file.html
>

I like the way the discussion goes. From an outspoken Linus Torvalds
saying "nonsense", to a diving into details that progressively gives
points to some operating system with both "a lot of things are files",
and namespaces---these are related, but not identical.
--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C



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

* Re: [9fans] I found this discussion pretty funny
  2012-10-17 16:31   ` Charles Forsyth
@ 2012-10-17 18:28     ` cinap_lenrek
  2012-10-17 19:47       ` Francisco J Ballesteros
  0 siblings, 1 reply; 13+ messages in thread
From: cinap_lenrek @ 2012-10-17 18:28 UTC (permalink / raw)
  To: 9fans

yeah, like mount... its files all the way down :)

linux is like windows... everything is a HANDL^Wfiledescriptor

--
cinap



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

* Re: [9fans] I found this discussion pretty funny
  2012-10-17 13:48 ` dexen deVries
@ 2012-10-17 19:04   ` Bakul Shah
  2012-10-18  0:35     ` erik quanstrom
  0 siblings, 1 reply; 13+ messages in thread
From: Bakul Shah @ 2012-10-17 19:04 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Oct 17, 2012, at 6:48 AM, dexen deVries wrote:
> a technical and organizational problem: back then Linux' /dev consisted of 
> special files held on drive, its MAJOR/MINOR schema* getting dangerously 
> cramped.
> 
> those days Linux' /dev is usually mounted at boot and maintained by kernel, 
> somewhat alike /proc; adding some more entries probably isn't that much of a 
> problem.

You should explore /sys on Linux. They've embraced namespaces in a major way.

$ df /sys
Filesystem           1K-blocks      Used Available Use% Mounted on
sysfs                       0K        0K        0K   -  /sys
$ ls -lR /sys |wc
  10485   63451  419873
$ ls -l /sys/dev/block/8:1
lrwxrwxrwx. 1 root root 0 Oct 17 11:31 /sys/dev/block/8:1 -> ../../devices/pci0000:00/0000:00:0d.0/host2/target2:0:0/2:0:0:0/block/sda/sda1

Let us see where this leads:

$ ls -Ll /sys/dev/block/8:1
total 0K
-r--r--r--. 1 root root 4096 Oct 17 11:31 alignment_offset
-r--r--r--. 1 root root 4096 Oct 17 11:31 dev
-r--r--r--. 1 root root 4096 Oct 17 11:31 discard_alignment
drwxr-xr-x. 2 root root    0 Oct 17 11:26 holders 
-r--r--r--. 1 root root 4096 Oct 17 11:31 inflight
-r--r--r--. 1 root root 4096 Oct 17 11:31 partition
drwxr-xr-x. 2 root root    0 Oct 17 11:31 power
-r--r--r--. 1 root root 4096 Oct 17 11:25 size
-r--r--r--. 1 root root 4096 Oct 17 11:31 start
-r--r--r--. 1 root root 4096 Oct 17 11:31 stat
drwxr-xr-x. 2 root root    0 Oct 17 11:31 subsystem
drwxr-xr-x. 2 root root    0 Oct 17 11:31 trace
-rw-r--r--. 1 root root 4096 Oct 17 11:31 uevent

Exploring further...

$ ls -l /sys/dev/block/8:1/subsystem
lrwxrwxrwx. 1 root root 0 Oct 17 11:31 /sys/dev/block/8:1/subsystem -> ../../../../../../../../../class/block

Editorial comments left as an exercise to the reader!


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

* Re: [9fans] I found this discussion pretty funny
  2012-10-17 18:28     ` cinap_lenrek
@ 2012-10-17 19:47       ` Francisco J Ballesteros
  0 siblings, 0 replies; 13+ messages in thread
From: Francisco J Ballesteros @ 2012-10-17 19:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

did you notice the discussion was from this century?
surprising!

On Oct 17, 2012, at 8:28 PM, cinap_lenrek@gmx.de wrote:

> yeah, like mount... its files all the way down :)
>
> linux is like windows... everything is a HANDL^Wfiledescriptor
>
> --
> cinap



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

* Re: [9fans] I found this discussion pretty funny
  2012-10-17 19:04   ` Bakul Shah
@ 2012-10-18  0:35     ` erik quanstrom
  2012-10-18  1:10       ` Bakul Shah
  0 siblings, 1 reply; 13+ messages in thread
From: erik quanstrom @ 2012-10-18  0:35 UTC (permalink / raw)
  To: 9fans

> You should explore /sys on Linux. They've embraced namespaces in a major way.
>

what am i missing.  linux' /sys is just a synthetic filesystem.  where do you
see this exploring the idea of namespace?

- erik



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

* Re: [9fans] I found this discussion pretty funny
  2012-10-18  0:35     ` erik quanstrom
@ 2012-10-18  1:10       ` Bakul Shah
  2012-10-18 20:31         ` David Leimbach
  0 siblings, 1 reply; 13+ messages in thread
From: Bakul Shah @ 2012-10-18  1:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, 17 Oct 2012 20:35:12 EDT erik quanstrom <quanstro@quanstro.net>  wrote:
> > You should explore /sys on Linux. They've embraced namespaces in a major way.
>
> what am i missing.  linux' /sys is just a synthetic filesystem.  where do you
> see this exploring the idea of namespace?

Oops.  s/namespace/synthetic filesystem/



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

* Re: [9fans] I found this discussion pretty funny
  2012-10-18  1:10       ` Bakul Shah
@ 2012-10-18 20:31         ` David Leimbach
  2012-10-18 20:45           ` Charles Forsyth
  0 siblings, 1 reply; 13+ messages in thread
From: David Leimbach @ 2012-10-18 20:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 696 bytes --]

On Wed, Oct 17, 2012 at 6:10 PM, Bakul Shah <bakul@bitblocks.com> wrote:

> On Wed, 17 Oct 2012 20:35:12 EDT erik quanstrom <quanstro@quanstro.net>
>  wrote:
> > > You should explore /sys on Linux. They've embraced namespaces in a
> major way.
> >
> > what am i missing.  linux' /sys is just a synthetic filesystem.  where
> do you
> > see this exploring the idea of namespace?
>
> Oops.  s/namespace/synthetic filesystem/
>
> It'd be a lot better if it was a synthetic file system in a restricted
namespace.  I don't think 100% of the processes need to or should have the
opportunity to mess with /sys.   But maybe that's just all this stuff I
learned from Plan 9.  :-)

Dave

[-- Attachment #2: Type: text/html, Size: 1098 bytes --]

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

* Re: [9fans] I found this discussion pretty funny
  2012-10-18 20:31         ` David Leimbach
@ 2012-10-18 20:45           ` Charles Forsyth
  0 siblings, 0 replies; 13+ messages in thread
From: Charles Forsyth @ 2012-10-18 20:45 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

http://planb.lsub.org/ls/octopus.html

is a user interface that includes graphics, exploits name space
representations, and doesn't just mimic the   xerox desktop.

[-- Attachment #2: Type: text/html, Size: 246 bytes --]

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

end of thread, other threads:[~2012-10-18 20:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-17 13:40 [9fans] I found this discussion pretty funny ron minnich
2012-10-17 13:47 ` erik quanstrom
2012-10-17 13:48 ` dexen deVries
2012-10-17 19:04   ` Bakul Shah
2012-10-18  0:35     ` erik quanstrom
2012-10-18  1:10       ` Bakul Shah
2012-10-18 20:31         ` David Leimbach
2012-10-18 20:45           ` Charles Forsyth
2012-10-17 14:23 ` cinap_lenrek
2012-10-17 16:31   ` Charles Forsyth
2012-10-17 18:28     ` cinap_lenrek
2012-10-17 19:47       ` Francisco J Ballesteros
2012-10-17 17:54 ` tlaronde

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