Announcement

Collapse
No announcement yet.

Rust-Written Coreutils 0.0.25 With Improved GNU Compatibility

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    Originally posted by Quackdoc View Post
    having a single statically built binary with LTO can save a lot of space​
    Dynamic linking would actually save space while also not being a toolchain-wide regression of comical proportions.

    Comment


    • #22
      Originally posted by imaami View Post

      Dynamic linking would actually save space while also not being a toolchain-wide regression of comical proportions.
      This isn't true. while yes you can save some space dynamic linking, it isn't as much as you save by building a single binary with LTO.

      Comment


      • #23
        Originally posted by Blademasterz View Post
        The downside of rust and rust programs for me is the compile time even for a simple programs it takes twice or even 3 times longer than C++ written porgrams
        Newsflash: the borrow checker actually has work to do.

        Comment


        • #24
          Originally posted by bug77 View Post
          Newsflash: the borrow checker actually has work to do.
          Thus what he said is true. C++ is already slow enough as it is.

          Comment


          • #25
            Originally posted by Blademasterz View Post
            The downside of rust and rust programs for me is the compile time even for a simple programs it takes twice or even 3 times longer than C++ written porgrams
            C++ is already painfully slow enough as it is to compile. That is pretty awful.

            Comment


            • #26
              Originally posted by bug77 View Post

              Newsflash: the borrow checker actually has work to do.
              Last week's This Week in Rust has an interesting blog post about this:

              Rust compilation times is an ongoing topic that generates many discussions online1. Most people don’t really care about what exactly takes time when compiling Rust program; they just want it to be faster in general. But sometimes, you can see people pointing fingers at specific culprits, like LLVM or the borrow checker. In this post, I’ll try to examine who is the culprit in various situations, based on data gathered from a fun little experiment. Probably also offline. ↩


              Contrary to a popular misconception, it's apparently not the borrow checker (or the other static checks) that takes so much time, it's the codegen.

              Comment


              • #27
                Originally posted by brad0 View Post

                C++ is already painfully slow enough as it is to compile. That is pretty awful.
                It's an ongoing problem to be sure. It is true that thanks to rust-analyzer and other tools (cargo check etc) you don't recompile nearly as often as in C++, but yes, Rust's compilation times are a big pain. There are efforts to address it and while it will almost certainly never be in the same league as Go, achieving C++-like build times is a realistic goal. In the meantime, a promising and very useful project is Miri.

                Comment


                • #28
                  Not sure where you got the "Rust compilation is slower than C++" from. At best, they are both on par, since Rust has incremental compilation. However bulk of the time is spent in linking.

                  Comment


                  • #29
                    Originally posted by hedonist View Post

                    i believe there is a speed increase, the main benefit is memory safety however (less bugs), and also less bloat (gnu software is infamously spaghetti code)
                    And the MIT license.

                    Comment


                    • #30
                      Originally posted by ayumu View Post

                      And the MIT license.
                      Thats a downside. It just means that overall it will get less quality contributions.

                      Comment

                      Working...
                      X