News for hackers. Stuff that matters.
Re:Redox – A Unix-Like Operating System Written in Rust by chc4 on Tuesday November 13, 2018 @02:01PM (#18443740)
It's Unix-like, not a Unix clone. In particular they settled on a "everything is a URL" instead of "everything is a file", with different URIs being delegated to userspace services.

It still draws quite a bit from Unix though, and provides a shim translating `/dev/proc` to `proc:` or whatever.

Re:Redox – A Unix-Like Operating System Written in Rust by skybrian on Tuesday November 13, 2018 @03:07PM (#18444412)
"Everything is a URL" is a win for browsers because everything with a URL can be linked to and bookmarked.

But it seems like for type safety, you wouldn't want different OS services with different API's to have the same type? If they aren't actually interchangeable, pretending they are with a common naming scheme is just a source of bugs.

Re:Redox – A Unix-Like Operating System Written in Rust by nine_k on Tuesday November 13, 2018 @03:49PM (#18444745)
I think e.g. a different protocol may give an idea of differently typed namespace. Imagine (not from real Redox:)

   block-device://sata/disk1/partition2
   ethernet://eth1
   usb://hid/keyboard1
   i2c://temperature/chassis1
   net://vpn1/node/somewhere/else
Re:Redox – A Unix-Like Operating System Written in Rust by ori_b on Tuesday November 13, 2018 @02:13PM (#18443873)
Well, that's a major imstake -- now I need to know what service I'm talking to, which means that I can't transparently replace my /dev/net with a userspace proxy. Unix half screwed this up, and they took the mistake and perfected it.
Re:Redox – A Unix-Like Operating System Written in Rust by bluejekyll on Tuesday November 13, 2018 @02:22PM (#18443972)
Redox is a microkernel. All drivers are run in userspace. I'm not clear on what your criticism is here.
Re:Redox – A Unix-Like Operating System Written in Rust by winklock on Tuesday November 13, 2018 @02:21PM (#18443956)
You can replace anything transparently, the Redox kernel supports scheme namespacing.
Re:Redox – A Unix-Like Operating System Written in Rust by ori_b on Tuesday November 13, 2018 @02:25PM (#18444000)
So, for example, can I replace my network traffic with a file for testing, by binding a scheme to a file on disk?
Re:Redox – A Unix-Like Operating System Written in Rust by Tuna-Fish on Tuesday November 13, 2018 @05:20PM (#18445473)
To do that, you need to use a driver that translates between a file: and ip: (or ethernet:, tcp:/udp: or network:, allowing binding at different levels of the stack), because the protocols allow different operations. Said driver of course runs in userspace (because microkernel) and already exists. (Because it's absolutely needed for development.)
Re:Redox – A Unix-Like Operating System Written in Rust by Koshkin on Tuesday November 13, 2018 @07:24PM (#18446211)
> driver that translates

That's something new... So, for the N-th device type in addition to the device driver I might need 2*(N-1) translating drivers!

Re:Redox – A Unix-Like Operating System Written in Rust by Tuna-Fish on Wednesday November 14, 2018 @12:09AM (#18447665)
Most of those would be meaningless, or require enough decisionmaking that the program between them cannot reasonably be called a driver. What kind of driver translates between audio and window system objects?

In any case, you only need 2N for translating both ways between file: and whatever: to get the same experience Unix does, and wherever that makes sense it is usually provided.

The win is of course that each of those protocols can be strongly typed and provide exactly all the operations that make sense for that protocol. Basically, think of all the things IOCTL does and give them their own names.

Re:Redox – A Unix-Like Operating System Written in Rust by ori_b on Wednesday November 14, 2018 @10:38AM (#18450633)
Ioctl was a horrible mistake, since it prevents configuring and introspecting devices with general interfaces and ad-hoc scripts.

This elevates the mistake, and polishes the worst of the early Unix conceptual fuckups.

Re:Redox – A Unix-Like Operating System Written in Rust by LeoPanthera on Tuesday November 13, 2018 @03:38PM (#18444667)
Is there any advantage to be gained from that versus having file:// urls? With the latter, every file is also a url.
Re:Redox – A Unix-Like Operating System Written in Rust by jcelerier on Tuesday November 13, 2018 @04:50PM (#18445237)
> Is there any advantage to be gained from that versus having file:// urls? With the latter, every file is also a url.

it can be used as a primitive typing layer

Re:Redox – A Unix-Like Operating System Written in Rust by anoncake on Tuesday November 13, 2018 @03:19PM (#18444520)
That sounds a lot more different from Unix than Linux, which is commonly described as Unix-like.
Re:Redox – A Unix-Like Operating System Written in Rust by saghm on Tuesday November 13, 2018 @03:26PM (#18444568)
Assuming that "Unix-like" is a spectrum, why does Linux have to be the furthest point from Unix?
Re:Redox – A Unix-Like Operating System Written in Rust by Koshkin on Tuesday November 13, 2018 @07:29PM (#18446244)
Well, Linux seems to be the Unix of today.