Writing an OS in Rust to run on RISC-V

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • haxe

    Haxe - The Cross-Platform Toolkit

  • c2rust

    Migrate C code to Rust

  • This is arguably already the state of things.

    Rust might get compiled down through MIR, down through LLVM IR, down to assembly or wasm... which then might be JIT or AOT (re)compiled into other bytecodes... which might perhaps be decompiled back up to C... and C might be retranslated back to horrific unsafe-spamming Rust by the likes of https://c2rust.com/. We've come full circle!

    The main issue is that retranslating high level languages into other high level languages isn't something that there's actually a lot of demand for, especially commercially, especially given the N x M translation matrix going on. So a lot of the projects "stabilize" (get abandoned). And automatically translating between the idioms of those languages gets even nastier in terms of matrix bloat.

    Well, you've got stuff like MSIL and JVM bytecodes which are higher level, and preserve more type information, and can be compiled to / decompiled from while still preserving more structure, but they still form competing incompatible ecosystems.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • xous-core

    The Xous microkernel

  • Xous, the OS that runs on the precursor, may be of interest to look at too:

    https://github.com/betrusted-io/xous-core

    It is written in Rust and is targeted for a RISC-V

  • ferros

    A Rust-based userland which also adds compile-time assurances to seL4 development.

  • When we add WASM support to https://github.com/auxoncorp/ferros it'll sorta be like what you're angling at there in your description.

  • mirage

    MirageOS is a library operating system that constructs unikernels

  • MirageOS is not Rust, but in the ballpark!

    https://mirage.io/

  • xv6-rust

    Discontinued A faithful port of the 32-bit xv6 learner's operating system to the Rust programming language (by connorkuehl)

  • is there any updated xv6-rust (prefer X64, but at least X86)?

    I already tried:

    - https://github.com/connorkuehl/xv6-rust

  • xv6-rust

    xv6 implementation in rust (by tiqwab)

  • - https://github.com/tiqwab/xv6-rust

    Cannot build both succesfully with latest Rust on Mac. Maybe I need to use Linux for this purpose...

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • osv

    OSv, a new operating system for the cloud.

  • I have also found OSv to be interesting.

    https://osv.io/

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts