Rust-Based, Memory-Safe PNG Decoders "Vastly Outperform" C-Based PNG Libraries

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Veto
    Senior Member
    • Jun 2012
    • 534

    #61
    Originally posted by Steffo View Post
    This is simply not true. Because Rust makes strong safety-guarantees, the compiler can optimize more aggressively than in C. Further, developers tend more to parallelize more code, because of the safety-guarantees of Rust.
    Yes, and don't get me started on the crazy null-terminated C-strings and the unsafe string handling functions...

    Comment

    • amxfonseca
      Phoronix Member
      • Sep 2019
      • 88

      #62
      Originally posted by sophisticles View Post

      Where do you think compilers come from?
      Compilerland?

      What is your point? What are you even trying to prove?

      Programmers who write compilers focus on making the output as correct/performant/compact as possible. That is what compilers need to do (oversimplifying it), so the programmers spend countless hours focusing on that, since you know, it's their job.

      More news at 11!

      Same way the programmers that wrote the Rust png crate focused on writing the most efficient code, so it would perform faster than the existing libraries. Because you know, it's their job.

      The same applies to the programmers of the libpng. They also focused on performance, and to achieve that they wrote optimised code for several different architectures, because it was also their job!

      Who are those people? Well, you can check it yourself. Most projects have a list of contributors, otherwise you can also use the git history for that.

      I can also ask the same questions:
      - Where do you think operative systems come from?
      - Where do you think kernels come from?
      - Where do you think CPU microcode comes from?

      Or more simply, where do you think electrons come from? Would love to see those dumb compiler programmers coming up with their own electrons. Bunch of amateurs
      Last edited by amxfonseca; 09 December 2024, 04:35 PM.

      Comment

      • brad0
        Senior Member
        • May 2012
        • 1003

        #63
        Originally posted by entropicdrifter View Post
        Genuinely hilarious comment to read given that any time Rust is mentioned on Phoronix in any context at all, people come out of the woodwork to complain about Rust and "Rust proponents" and throw around ridiculous bad-faith arguments and childish namecalling
        I can't help it if it is the truth. Whether it's on Phoronix, Reddit, YouTube, you name it. Mention Rust and it's like a bunch of retarded mental case rabies infected loonies come out of the woodwork.

        Comment

        • TheMightyBuzzard
          Senior Member
          • Sep 2021
          • 381

          #64
          "Is this production-ready?

          Yes!​
          And that right there is a major reason why I'm not a fan of so many Rust projects or Rust fanbois. They like to call something "production-ready" as soon as they think they're done writing the code (or even before in many cases). Production-ready actually means something though. I know that's easy to overlook in a time when changing definitions to suit your desires is so common but it's important to remember that it's only you and your equally deluded friends that actually believe that crap when you do it.

          Comment

          • cynic
            Senior Member
            • Oct 2011
            • 1082

            #65
            Originally posted by Raka555 View Post

            Can you see why people prefer Python?
            Nope!

            Comment

            • bacteriamanicure
              Phoronix Member
              • Feb 2024
              • 66

              #66
              Originally posted by TheMightyBuzzard View Post

              And that right there is a major reason why I'm not a fan of so many Rust projects or Rust fanbois. They like to call something "production-ready" as soon as they think they're done writing the code (or even before in many cases). Production-ready actually means something though. I know that's easy to overlook in a time when changing definitions to suit your desires is so common but it's important to remember that it's only you and your equally deluded friends that actually believe that crap when you do it.
              What still needs to be done for it to become production ready?

              Comment

              • TheMightyBuzzard
                Senior Member
                • Sep 2021
                • 381

                #67
                Originally posted by bacteriamanicure View Post

                What still needs to be done for it to become production ready?
                Telling you would just make you want to argue. Everyone who knows what, knows what, and everyone who doesn't is going to throw a fit so they don't look stupid.

                Comment

                • bacteriamanicure
                  Phoronix Member
                  • Feb 2024
                  • 66

                  #68
                  Originally posted by TheMightyBuzzard View Post

                  Telling you would just make you want to argue. Everyone who knows what, knows what, and everyone who doesn't is going to throw a fit so they don't look stupid.
                  Well we all know you're excellent at winning those (despite Amnesty's and the pope's objections) so idk what you think you'll lose
                  Last edited by bacteriamanicure; 09 December 2024, 06:30 PM. Reason: List the pope as an agent of hamas

                  Comment

                  • sdack
                    Senior Member
                    • Mar 2011
                    • 1716

                    #69
                    Originally posted by bacteriamanicure View Post
                    What still needs to be done for it to become production ready?
                    It depends on who you ask. There is a list of criteria I have before I would use it, but I do not want to make this about me. One thing I believe to be common practise is to up a version number to 1.0, or even 1.1, once code is considered stable. And this is not the case yet.

                    Rust PNG has a version number of v0.17.15.
                    Zune PNG has a version number of 0.4.10.
                    Wuffs PNG has a version number of 0.4.0-alpha9.

                    The claim of being production-ready seems like an unfortunate choice of words when I look at those version numbers.

                    Comment

                    • Daktyl198
                      Senior Member
                      • Jul 2013
                      • 1538

                      #70
                      Originally posted by sophisticles View Post

                      That just means you are a lousy programmer.

                      Not something to be proud of.
                      No, it just means the code in question is perfectly readable. I don't fancy myself an amazing programmer, but at least I don't pretend like extremely basic boilerplate code is "unreadable garbage". If one of us can read Rust and the other can't, who's really the lousy programmer?

                      Comment

                      Working...
                      X