Live data from Hacker News

Redox – A Unix-Like Operating System Written in Rust

redox-os.org

91–100 of 215 posts

Re: Redox – A Unix-Like Operating System Written in Rust

#91
post #9

I'm pretty impressed that 37 people are capable of writing an entire OS with a gui in under a year. Looks really cool.

Its actually much easier then it sounds, we had an undergrad write an entire windowing system on-top of implementing the rest of the OS for undergraduate operating systems at UW in a single quarter (2.5 months~).

Re: Redox – A Unix-Like Operating System Written in Rust

#92
post #63

Earlier quoted context omitted.

Read the MINIX book. It's basically a walk-through (with source code) of entire operating system.

The book is over a hundred dollars. As someone who is working on a simple os and a college student, this saddens me. I'll have to see if my library has one.

well, it is a textbook after all. perhaps the textbook industry isn't so virulent in your neck of the woods.

Re: Redox – A Unix-Like Operating System Written in Rust

#96

Oh man if we could get hard realtime scheduling in early, large, critical embedded systems like medical would benefit greatly!!!$$$

While I'm not sure this fits with Rust's existing concepts of safety and correctness, it would be interesting (and not just for RT purposes) to have a language in which one could mark functions as <= some complexity (given the usual simplifying assumptions) or provably terminating, and have the compiler throw an error if it can't prove that those constraints are met. Does something like this exist?

i don't know, but wow, that's a really cool idea.

Re: Redox – A Unix-Like Operating System Written in Rust

#97
post #33
post #22

Earlier quoted context omitted.

There are. USB, SATA, SCSI and such share a lot of code between the drivers - but drivers are huge.

I would guess, that most of the size comes from history. Like, once it seemed a good idea to have it like that and later people found out there are a bunch of things missing. Now many of them have to be implemented on the driver side over and over again.

Have you read the USB specs recently? They're publicly available here:

http://www.usb.org/developers/docs/

Just making a standards compliant implementation takes a huge quantity of code. And with a standard this complex people inevitably get it wrong, so you'll need workarounds for all the broken devices too.

Re: Redox – A Unix-Like Operating System Written in Rust

#98
post #84

Very nice. It was time to do this. There are three near-term products to develop on this: - A small router (home/small office, not data center) - A DNS server - A BGP server Those are standalone boxes which do specific jobs, they're security-critical, and the existing implementations have all had security problems. We need tougher systems in those areas.

I was worried a whole UNIX might be too big a project so I gave him old school recommendations before. Essentially told him to make a split system that lets you run on tiny kernel bare metal, run UNIXy apps with different API, and let them communicate through some IPC mechanism. That way, like security & MILS kernels, people can write security critical components in isolated partitions with checks at interfaces. Already done with Ada and embedded Java. Rust is best one to try it with now.

Far as your recommendations, I like those. I'll add a web server, Redox or UNIX compatible, that's efficient enough to be deployed in all these web-enabled embedded devices. The dynamic part can just be Rust plugins or something. However, just a robust Ethernet stack, networking stack, time API, and simple filesystem could be used to implement all of yours, the web server, and more. So, I encourage people building these OS projects to stay on 80/20 rule hitting features almost all critical things use. Others can jump in at application layer from there.

Re: Redox – A Unix-Like Operating System Written in Rust

#99
post #23

Earlier quoted context omitted.

This looks outstanding, thanks for the link.

Project lead here. I haven't had time in the last few weeks to work on this, so the book is pretty far behind the kernel itself at the moment. Playing the long game. I was hoping to do some more today, in fact...

[deleted]

Re: Redox – A Unix-Like Operating System Written in Rust

#100

Earlier quoted context omitted.

Ours didn't have a GUI. It took us less than a year to write and the team was never larger than 6 people. It's less complicated than it seems at first sight. There are a lot of things about machines that you need to understand, but the technology itself is relatively well-understood and sane practices are encouraged. It blows my mind that less than twenty people can string up something non-trivial with Node.js et co.…

As somebody who develops significantly complex in Node.js and considers operating systems to largely be black magic, I'd love to have a chat about this some day, and compare notes :)

I second Minix as Linus started with it when figuring out how to write Linux. Also, Dijkstra's THE system, Niklaus Wirth's Oberon books with source code, and Hansen's stuff are all educational. Wirth and Hansen have a simplicity focus that makes it easier.

Matter of fact, Wirth's people make OS's with type-safe code that are so straight forward I've always recommended starting with an AOS or A2 Bluebottle port to your language of choice.

Post reply on HN