Why Nostr? What is Njump?
2024-08-31 11:44:54
in reply to

Asahi Lina (朝日リナ) // nullptr::live on Nostr: In the end, coding kernel code in Rust is a *huge* change from coding C. With C you ...

In the end, coding kernel code in Rust is a *huge* change from coding C. With C you have two options:<li>Wing it and either hope reviewers catch it or suffer debugging subtle oopses</li><li>Spend hours understanding the code before you dare use it, and hope you caught everything.</li>

This adds extra reviewer and maintainer workload too! It means that they need to review submissions to ensure they follow all these hidden rules that aren't documented. Sometimes they miss things. Sometimes the problem is major enough the code needs a big refactor.

All that just goes away with Rust. Poof. Gone. If it compiles it's safe and won't oops or leak references (except unsafe code, but then you only have to review THAT and the rule is it has to be carefully documented).

Of course we still need code reviews, and help from experts in specific subsystems. Rust doesn't magically make code perfect.

But it does get rid of all the silly low level problems and mistakes, so you can focus on the high level ones.
Author Public Key
npub1cxqje22r8ewnr30rt625d58cr8gpdjnw405cq5765m2qsvghnmpquz6wtz