This isn’t Linux, but Linux-like. Its a microkernel built from the rust programming language. Its still experimental, but I think it has great potential. It has a GUI desktop, but the compiler isn’t quite fully working yet.

Has anyone used this before? What was your experience with it?

Note: If this is inappropriate since this isn’t technically Linux, mods please take down.

  • callyral [he/they]@pawb.social
    link
    fedilink
    English
    arrow-up
    8
    ·
    11 months ago

    (notice: I am not a Rust or C/C++ expert)

    Doing all that is creating a completely separate programming language from C. Rust is that programming language.

    Fix shitty imports

    Rust does that with modules and crates.

    Improve syntax rule

    You mean having consistent/universal style guidelines? Rust pretty much has that with rustfmt.

    Improve memory management

    Safe Rust is memory safe (using things like the borrow checker), and Unsafe Rust is (usually?) separated using the unsafe keyword.

    Although Unsafe Rust seems to be quite a mess, idk haven’t tried it

    Other new misc features

    Rust has macros, iterators, lambdas, etc. C doesn’t have those. C++ probably has those but in a really weird C++ way.

    • LalSalaamComrade@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      11 months ago

      I should have framed my words better, I guess. Rust is a radically different language, and honestly, none of the feature it offers fixes the main issue, that is technical debt - I mean yes, there’s incline C or FFI, but that’s still going to be a radical migration.

      What I’m trying to propose is an alternative project, independent from the ISO. Maybe it could be a C-to-Rust, or a C-to-Vale migration project. It could be any of the modern language, I don’t really care. But that particular compiler/transpiler/migrationpiler/<something>-piler should have the ability to do step-by-step migration.

      • Spore@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        11 months ago

        I’d say no. Programming safely requires non-trivial transformation in code and a radical change in style, which afaik cannot be easily done automated.

        Do you think that there’s any chance to convert from this to this? It requires understanding of the algorithm and a thorough rewrite. Automated tools can only generate the former one because it must not change C’s crooked semantics.

        • LalSalaamComrade@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          11 months ago

          I was planning to learn C23 for quite some time. It’s a pity that I’ve been planning to learn RISC-V with it, sigh. I guess I’m gonna move over to Rust or Zig, whichever makes sense. But I’d probably switch, when Vale becomes a legit language.

          • Spore@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            11 months ago

            I think there’s no need to stick with one particular language. It benefits to learn more languages and bring the “good parts” of their design into your code whatever you are writing it in.

            Btw It happens that I’ve learned a bit of RISC-V, with Rust.