Find a file
2016-10-31 21:54:56 -06:00
arch Remove rd/wrfsbase 2016-10-31 18:04:28 -06:00
bootloader Remove rd/wrfsbase 2016-10-31 18:04:28 -06:00
crates Smp (#23) 2016-10-31 10:49:00 -06:00
drivers Smp (#23) 2016-10-31 10:49:00 -06:00
filesystem Remove debugging 2016-10-31 19:40:27 -06:00
initfs/etc Debug all driver activity to display:1, use format to avoid line splitting 2016-10-22 19:35:23 -06:00
installer@7056abcb24 Update submodules 2016-10-26 13:28:04 -06:00
kernel Add null: and zero: 2016-10-31 21:54:56 -06:00
libstd@b42d1d7232 Update libstd, remove openlibm (now inside of libstd) 2016-10-31 12:37:29 -06:00
libstd_real Smp (#23) 2016-10-31 10:49:00 -06:00
paper Remove algorithmicx package 2016-09-02 08:52:21 -06:00
programs Update tar 2016-10-31 15:50:01 -06:00
ralloc@be2a916a25 Update libc 2016-10-15 21:12:40 -06:00
res/fonts Make rusttype optional for vesad 2016-09-29 13:17:19 -06:00
rust@123d08b3d3 Smp (#23) 2016-10-31 10:49:00 -06:00
schemes Smp (#23) 2016-10-31 10:49:00 -06:00
syscall@5a687dfeb5 Add syscall as submodule 2016-10-31 11:50:10 -06:00
.gitignore Build with filesystem 2016-09-27 21:56:29 -06:00
.gitmodules Update libstd, remove openlibm (now inside of libstd) 2016-10-31 12:37:29 -06:00
.travis.yml Add travis.yml 2016-10-26 13:59:31 -06:00
arm-unknown-none.json Arm! 2016-08-25 17:03:01 -06:00
bochs.x86_64 Fix path in bochs 2016-09-10 18:48:36 -06:00
Cargo.toml Fix for new goblin, fix of accidental swap of fusermount -u and sudo umount 2016-10-16 13:58:45 -06:00
krustc.sh Seperate kernel and userspace targets 2016-09-09 19:08:04 -06:00
krustdoc.sh Allow rustdoc 2016-10-16 14:06:01 -06:00
LICENSE Add license 2016-08-13 16:28:33 -06:00
Makefile Update libstd, remove openlibm (now inside of libstd) 2016-10-31 12:37:29 -06:00
README.md Format readme 2016-09-29 15:02:05 -06:00
rustc.sh Seperate kernel and userspace targets 2016-09-09 19:08:04 -06:00
rustdoc.sh Allow rustdoc 2016-10-16 14:06:01 -06:00
rustfmt.toml Proposed rustfmt file 2016-10-05 14:44:46 -06:00
x86_64-unknown-none.json Relocatable kernel 2016-09-10 16:27:11 -06:00
x86_64-unknown-redox.json Enable SSE and FPU 2016-09-22 16:14:45 -06:00

kernel

A collaborative effort to rewrite the kernel with focus on correctness and code quality.

Why?

The kernel code was getting increasingly messy to the point where only the original writer would be able to find and fix bugs. Fortunately, the kernel of Redox is relatively small and such a project is estimated to take only a few months.

What?

The aims of the new kernel should be clear in their order:

  1. Correctness: Above anything else, the kernel should be correct. No hacks, despite how the tiny cool shortcuts might seem, it gives severe backslash later on. Keep it correct and well-written.

  2. Readability and documentation: The code quality should be high, with that follows a detailed documentation, including both API docs (on every item!) and careful comments for anything non-trivial.

  3. Performance: If you can, go for it.

Guidelines

A rotten house is built on a rotten fundament.

Don't fool yourself. You are likely not getting back to the ugly code. Write it the right way first time, and make sure you only move on when it's done right.

Comments

Do not hesitate to put comments all over the place.

Documentation

Every public item should contain API documentation.

Debug assertions

Abusing debug assertions is a wonderful way to catch bugs, and it is very much encouraged.

Statical checking

Rust provides a lot of type-system features which can be used to create wonderful safe abstractions, and you should use them whenever you get the chance.

Unsafety should be avoided, and if it is triggered only under some addition insert an assertion. Despite this being a kernel, we prefer kernel panics over security vulnerabilities.

If the condition is (or should be) unreachable, but if not upheld, leading to UB, put an assertion in the start of the function.

Be gentle

Don't just write as much code as you can as quick as possible. Take your time and be careful.

Commits

Use descriptive commits. One way to force yourself to do that is to not pass the -m flag, which will make your editor pop up, so that you can conviniently write long commit messages.