Live data from Hacker News

Redox – A Unix-Like Operating System Written in Rust

redox-os.org

41–50 of 215 posts

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

#41
post #17

How many "unsafe" declarations should one expect in regions of the code that will need to deal with untrusted data (like networks, syscalls)?

From the book[1]: A quick grep gives us some stats: The kernel has 16.52% unsafe code, a 50% improvement in the last three weeks. Userspace has roughly ~0.2%.

1: http://www.redox-os.org/book/book/introduction/unsafes.html

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

#42
post #18

Earlier quoted context omitted.

Operating systems aren't that big, and if you know your stuff, I'm sure it's not too hard to pull off. Here's an example I borrowed from StackExchange: According to cloc run against 3.13, Linux is about 12 million lines of code. 7 million LOC in drivers/, 2 million LOC in arch/, and only 139 thousand LOC in kernel/. ( http://unix.stackexchange.com/a/223753 ) Edit: Would be nice to have the numbers for the latest Mini…

Warning: I have no idea about systems programming. I understand that the amount of lines of driver code comes from the variety of devices. But still, it looks completely unbalanced, when compared to the kernel code itself. So I have some questions here: 1) Shouldn't there be common interfaces / abstractions for most of the devices? 2) If they exist, could they be improved somehow? 3) A bit unrelated, but how fun / in…

The header file for compatible OpenGL 4 will run to 50kloc. The jump table and normalization routines will be twice that. That's more LOC than the Linux kernel, and all it does is sigbus.

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

#46
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...

I'm reading through now, and would love to contribute. I've been trying to break into this space (systems programming, especially OS and compilers) for a long time and the biggest hurdle for me has been to actually do it. I really appreciate that this project is focused on explaining just enough to jump in, complemented with nods to further resources that can add on to whatever knowledge the reader brings.

Steve, thanks for all your work on this and with Rust. Your attitude toward teaching and your writing ability go a long way in encouraging people to learn and in having the lesson be worthwhile.

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

#47
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.

it's actually a pretty common task in undergrad CS programs for an individual or a small group (3-4 students) to write an *nix-like OS from the ground up, including most of the core utils, scheduler, process management, etc.

This is obviously much more full featured (includes a GUI), so this is actually a very nicely sized team for the task.

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

#50
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...

This is great and so much clearer than osdev wiki. I've wanted to learn os development for quite some time and I think this is where I'll start.
Post reply on HN