Linked by WJMoore on Tue 1st Nov 2016 00:01 UTC
OSNews, Generic OSes

Redox, a Unix-like operating system written in Rust, recently rewrote its kernel:

Since August 13, the kernel is going through a complete rewrite, which makes the kernel space ultra-small (about the size of L4). Everything which can run outside the kernel in practice, will do so.

It is almost complete and will likely be merged in the coming week.

The reasons cited for the rewrite include memory management, concurrent design, SMP support, and 64-bit by default.

Thread beginning with comment 636334
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Not magic after all
by DrJohnnyFever on Tue 1st Nov 2016 04:58 UTC in reply to "Not magic after all"
DrJohnnyFever
Member since:
2012-03-07

You can still write code that is incorrect or has a flawed design. Rust is designed to eliminate common errors in dealing with memory pointers, one subset of bugs. It doesn't make a flawed algorithm work, just makes it a bit harder to accidentally botch an implementation of good design.

Rust isn't really any more "magic" than say Python. But unlike Python it is usable for programming traditionally left to C. Which is pretty unique.

Edited 2016-11-01 05:00 UTC

Reply Parent Score: 4

RE[2]: Not magic after all
by Alfman on Tue 1st Nov 2016 15:52 in reply to "RE: Not magic after all"
Alfman Member since:
2011-01-28

DrJohnnyFever,

Rust isn't really any more "magic" than say Python. But unlike Python it is usable for programming traditionally left to C. Which is pretty unique.


While it's true python shouldn't generate segfaults or experience memory corruption or anything like that, which are some of the most dreaded kinds of faults to track down. I'd argue that rust is safer than python on account of verifying code at compile time. Python won't even tell you until run time that you are using an undeclared variable. It will detect the error and throw an exception, but in a system that's designed not to fail, it's not great that the earliest detection of a fault is at the time of execution.

Reply Parent Score: 2