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.

    • weclaw@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      11 months ago

      From my personal experience I can tell you 2 reasons. The first is that this is the first general purpose language that can be used for all projects. You can use it on the web browser with web assembly, it is good for backend and it also is low level enough to use it for OS development and embedded. Other languages are good only for some thing and really bad for others. The second reason is that it is designed around catching errors at compile time. The error handling and strict typing forces the developer to handle errors. I have to spend more time creating the program but considerably less time finding and fixing bugs.

      • LoETR9@feddit.it
        link
        fedilink
        arrow-up
        0
        ·
        11 months ago

        I feel like C++ is as competent as Rust for any project and it’s definitely older.

        • Wooki@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          11 months ago

          Rust was created because c++ was so bad. Just take a look at crates they need a whole lot less maintenance because less bugs.

          • LoETR9@feddit.it
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            11 months ago

            My point wasn’t that C++ is good. My point was that C++ can and is used everywhere (desktop applications, web applications, OSs,…) and is older than Rust. So I feel that “this is the first general purpose language that can be used for all projects” is false. Probably “this is the first general purpose language that I (and many others) like to use for all projects” is true, but is a different claim.

            TLDR: You said Rust was first language capable of system, app and web, it isn’t.

            • Wooki@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              11 months ago

              It is good and rust improves on its gaping weaknesses.

              Yeah I never made that claim the threads OP did.

        • Mubelotix@jlai.lu
          link
          fedilink
          arrow-up
          1
          ·
          11 months ago

          Rust isn’t just a new improved version of C or C++. It’s completely new and it feels completely different to use Rust. In a positive way

        • callyral [he/they]@pawb.social
          link
          fedilink
          English
          arrow-up
          0
          ·
          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.

            • Spore@lemmy.ml
              link
              fedilink
              arrow-up
              0
              ·
              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.